/* ===========================
   CSS VARIABLES & RESET
=========================== */

:root {
    /* Colors - Primary Green Palette */
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-darker: #065f46;
    --accent-green: #10b981;
    --light-green: #bbf7d0;
    
    /* Colors - Background & UI */
    --bg-green: #f0f9f4;
    --border-green: #d1fae5;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #c6ffc7;
    
    /* Colors - Text */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Colors - Borders */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

::selection {
    color: black;
    background: var(--accent-green)
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* ===========================
   LAYOUT COMPONENTS
=========================== */

main {
    padding-top: var(--navbar-height);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    align-items: start;
}

.trip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}


.teachers-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    height: 100%;
}

/* ===========================
   TYPOGRAPHY
=========================== */

.section-heading {
    margin-bottom: 2rem;
}

.section-heading.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h3 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.section-heading h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.section-heading small {
    display: block;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ===========================
   BUTTON COMPONENTS
=========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(187, 247, 208, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-link {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-medium);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.btn-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.route-btn {
    background-color: #16a34a;
    color: white !important;
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 999px;
}

.route-btn:hover {
    background-color: #1eae00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary i,
.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(4px);
}

/* ===========================
   HERO SECTION
=========================== */

.main-hero-section {
    background-image: url('/static/images/jeskyne.webp');
    background-size: cover;
    background-position: center;
    background-color: #00000071;
    color: white;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--navbar-height));
    height: auto;
    display: flex;
    align-items: center;
}

.main-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0000007a;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    color: var(--light-green);
    position: relative;
    background: linear-gradient(135deg, var(--light-green) 0%, #dcfce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: rgba(187, 247, 208, 0.3);
    border-radius: 0.15em;
    z-index: -1;
    animation: highlight-expand 2s ease-out 0.5s both;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    opacity: 0.8;
    cursor: pointer;
}

.scroll-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255);
    font-weight: 700;

    user-select: none;
}

.scroll-arrow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.scroll-arrow i {
    font-size: 1.2rem;
    color: #fff;
}

/* ===========================
   ABOUT SECTION
=========================== */

.about {
    padding: 5rem 0;
    background: var(--bg-accent);
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-text h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.feature-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   LATEST TRIP SECTION
=========================== */

.latest-trip {
    padding: 5rem 0;
    background: white;
}

.trip-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trip-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trip-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trip-meta-item i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

.trip-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.trip-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.trip-map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    user-select: none;
}

.trip-map {
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===========================
   OTHER TRIPS SECTION
=========================== */

.other-trips {
    padding: 5rem 0;
    background: var(--bg-accent);
}

.trips-map-container {
    position: relative;
    margin-bottom: 4rem;
    user-select: none;
}

.all-trips-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 0;
}

.map-legend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-icon.easy {
    background: var(--accent-green);
}

.legend-icon.medium {
    background: #f59e0b;
}

.legend-icon.difficult {
    background: #ef4444;
}

.legend-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trips-view-all {
    text-align: center;
}

/* ===========================
   TRIP CARD COMPONENTS
=========================== */

.trip-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trip-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.trip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-card-image img {
    transform: scale(1.05);
}

.trip-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    user-select: none;
}

.trip-difficulty.easy {
    background: var(--accent-green);
}

.trip-difficulty.medium {
    background: #f59e0b;
}

.trip-difficulty.difficult {
    background: #ef4444;
}

.trip-card-content {
    padding: 1.5rem;
}

.trip-card-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.trip-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.trip-detail i {
    color: var(--primary-green);
    width: 14px;
    text-align: center;
}

.trip-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.trip-card-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.trip-card-link:hover {
    color: var(--primary-green-dark);
}

/* ===========================
   CONTACTS SECTION
=========================== */

.contacts-v2 {
    padding: 6rem 0;
    background: white;
    margin: 0;
}

.teacher-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f9ff;
    height: 100%;
}

.teacher-profile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.teacher-avatar {
    width: 150px;
    height: 200px;
    border-radius: 34px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.15);
    border: 3px solid #ecfdf5;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-details {
    flex: 1;
    min-width: 0;
}

.teacher-details h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.teacher-position {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.teacher-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teacher-contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.teacher-contact-list i {
    color: #059669;
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.teacher-contact-list a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.teacher-contact-list a:hover {
    color: #059669;
    text-decoration: underline;
}

.school-contact-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f9ff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.school-info {
    padding: 3rem 2.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
}

.school-logo {
    width: auto;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.15);
    border: 3px solid #ecfdf5;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-info h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    line-height: 1.3;
}

.school-info address {
    font-style: normal;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

.school-info address p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: fit-content;
}

.school-info address p:last-child {
    margin-bottom: 0;
}

.school-info address i {
    color: #059669;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.school-info address a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.school-info address a:hover {
    color: #059669;
    text-decoration: underline;
}

.school-map {
    flex: 1;
    min-height: 280px;
    border-top: 3px solid #ecfdf5;
}

.school-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   MAP COMPONENTS
=========================== */

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: white;
    border-radius: 50%;
}

.marker-pin i {
    position: absolute;
    transform: rotate(45deg);
    color: var(--primary);
    font-size: 12px;
    width: 24px;
    text-align: center;
}

.marker-pin-start {
    background: var(--primary);
}

.marker-pin-end {
    background: var(--accent);
}

.marker-pin-end i {
    color: var(--accent);
}
/* ===========================
   CUSTOM TRIP POPUP STYLES
   =========================== */

/* Target the custom popup class */
.custom-trip-popup .leaflet-popup-content-wrapper {
    background: white !important;
    color: #1f2937 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(5, 150, 105, 0.1) !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-width: 200px !important;
    max-width: 220px !important;
}

.custom-trip-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    width: auto !important;
    line-height: normal !important;
}

.custom-trip-popup .leaflet-popup-tip {
    background: white !important;
    border: 1px solid rgba(5, 150, 105, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Popup Container */
.custom-trip-popup .map-popup {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-trip-popup .map-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    z-index: 1;
}

/* Popup Image */
.custom-trip-popup .map-popup-image {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: #f0f9f4;
    margin: 0;
    padding: 0;
}

.custom-trip-popup .map-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.custom-trip-popup .map-popup:hover .map-popup-image img {
    transform: scale(1.03);
}

/* Popup Title */
.custom-trip-popup .map-popup-title {
    margin: 0 0 0.5rem 0 !important;
    padding: 0.75rem 0.75rem 0 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    font-family: inherit !important;
}

/* Popup Date */
.custom-trip-popup .map-popup-date {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 0.75rem !important;
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.custom-trip-popup .map-popup-date i {
    color: #059669 !important;
    font-size: 0.75rem !important;
    width: 12px !important;
    text-align: center !important;
}

/* Popup Difficulty */
.custom-trip-popup .map-popup-difficulty {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 0.75rem !important;
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.custom-trip-popup .map-popup-difficulty i {
    color: #f59e0b !important;
    font-size: 0.75rem !important;
    width: 12px !important;
    text-align: center !important;
}

/* Popup Link */
.custom-trip-popup .map-popup-link {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.custom-trip-popup .map-popup-link:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.custom-trip-popup .map-popup-link:visited,
.custom-trip-popup .map-popup-link:active,
.custom-trip-popup .map-popup-link:focus {
    color: white !important;
    text-decoration: none !important;
}

/* Remove default margins and padding from all elements */
.custom-trip-popup * {
    box-sizing: border-box !important;
}

/* Remove any default styling */
.custom-trip-popup .map-popup-link::after,
.custom-trip-popup .map-popup-link::before {
    display: none !important;
}


.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #00000091;
}

.custom-marker i {
    margin: auto;
}

.custom-marker.easy {
    background-color: #4CAF50;
}

.custom-marker.medium {
    background-color: #FF9800;
}

.custom-marker.difficult {
    background-color: #F44336;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes highlight-expand {
    0% { width: 0; left: 50%; }
    100% { width: 100%; left: 0; }
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}


/* ===========================
MOBILE RESPONSIVE STYLES
=========================== */


@media (max-width: 1200px) {
  .trips-grid .trip-card:nth-child(n+3) {
    display: none;
    }
  
}

@media (max-width: 1000px) {
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
  .trip-meta {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }
  /* Layout Containers - Stack grids vertically */
  .hero-container,
  .about-container,
  .contacts-layout,
  .trip-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .teachers-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Section containers - Reduce padding */
  .section-container,
  .hero-container {
    padding: 0 1rem;
  }
  
  /* Typography adjustments */
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  /* Hero section */
  .main-hero-section {
    padding: 4rem 0 2rem;
    min-height: calc(100vh - var(--navbar-height));
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }
  
  /* Sections padding */
  .about,
  .latest-trip,
  .other-trips,
  .contacts-v2 {
    padding: 3rem 0;
  }
  
  /* Trip cards grid */
  .trips-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Trip content reverse order on mobile */
  .trip-content {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .trip-map-container,
  .all-trips-map {
    height: 300px;
  }
  
  /* Contact cards */
  .teacher-profile {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .teacher-avatar {
    width: 120px;
    height: 160px;
    margin: 0 auto;
  }
  
  .school-info {
    padding: 2rem 1.5rem;
  }
  
  .school-logo {
    height: 120px;
  }
  
  .school-info address {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  /* Map legend */
  .map-legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1rem;
  }

  .legend-item {
    margin: 0;
  }
  
  /* About features */
  .feature {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {

    .trip-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
    }
  
  /* Even smaller typography */
  .hero-title {
    font-size: 2rem;
  }
  
  .section-heading h2 {
    font-size: 1.75rem;
  }
  
  .trip-title {
    font-size: 1.5rem;
  }
  
  /* Tighter spacing */
  .section-container,
  .hero-container {
    padding: 0 0.75rem;
  }
  
  .about,
  .latest-trip,
  .other-trips,
  .contacts-v2 {
    padding: 2.5rem 0;
  }
  
  /* Smaller buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Compact trip meta */
  .trip-meta {
    gap: 0.75rem;
  }
  
  /* Smaller teacher profiles */
  .teacher-profile {
    padding: 1.5rem;
  }
  
  .teacher-avatar {
    width: 100px;
    height: 130px;
  }
  
  .teacher-details h3 {
    font-size: 1.2rem;
  }
  
  /* Compact school info */
  .school-info {
    padding: 1.5rem 1rem;
  }
  
  .school-logo {
    height: 120px;
  }
  
  /* Smaller maps */
  .trip-map-container,
  .all-trips-map {
    height: 250px;
  }
  
  /* Custom popup adjustments for mobile */
  .custom-trip-popup .leaflet-popup-content-wrapper {
    max-width: 180px !important;
    min-width: 180px !important;
  }
  
  .custom-trip-popup .map-popup {
    width: 180px;
  }
  
  .custom-trip-popup .map-popup-image {
    height: 80px;
  }
}

/* Large tablets (1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  
  /* Adjust grid gaps */
  .hero-container,
  .about-container,
  .trip-content {
    gap: 3rem;
  }
  
  /* Slightly smaller hero */
  .hero-title {
    font-size: 3.5rem;
  }
  
  /* Trips grid - 2 columns */
  .trips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 1rem 2rem;
  }
  
  .trip-card-link {
    padding: 0.5rem;
    margin: -0.5rem;
  }
  
  /* Remove hover effects that don't work on touch */
  .trip-card:hover,
  .feature:hover,
  .teacher-profile:hover {
    transform: none;
  }
  
  /* But keep the shadow for active states */
  .trip-card:active,
  .feature:active,
  .teacher-profile:active {
    transform: translateY(-2px);
  }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .main-hero-section {
    min-height: calc(100vh - var(--navbar-height));
    padding: 2rem 0 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-scroll-indicator {
    margin-top: 1rem;
  }
}
