/* 
  ==============================================
  Conservancy Website - RESPONSIVE MASTER (CORRECTED COLORS)
  ==============================================
*/

/* 
  ==============================================
  1. BASE & GLOBAL VARIABLES
  ==============================================
*/
:root {
  --primary-darkest: #68724d;
  --primary-medium-dark: #629044;
  --primary-medium-light: #8fd16a;
  --primary-light: #b4c366;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --sidebar-width: 250px;
  --sidebar-bg-rgb: 240, 242, 230;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fdfdfd;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
  ==============================================
  2. HEADER & NAVIGATION (MOBILE DEFAULT)
  ==============================================
*/
.top-bar { 
    background-color: var(--primary-darkest); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.logo-container { 
    width: 100%; 
    background-color: #ffffff; 
    padding: 10px; 
    display: flex; 
    justify-content: center; 
}

.logo-container img { 
    max-height: 80px; 
    width: auto; 
}

.main-nav { 
    width: 100%; 
    padding-top: 15px;
}

.main-nav ul { 
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 8px;
}

.main-nav ul li a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 500; 
    padding: 8px 12px; 
    border-radius: 5px; 
    background-color: rgba(255,255,255,0.1); 
    transition: background-color 0.3s; 
}

.main-nav ul li a.active, .main-nav ul li a:hover { 
    background-color: var(--primary-medium-light); 
    color: var(--text-light);
}

/* 
  ==============================================
  3. MAIN LAYOUT (MOBILE DEFAULT)
  ==============================================
*/
.main-body-container { 
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 150px);
}

.sidebar {
    width: 100%;
    background-color: #f0f2e6;
    padding: 15px;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.sidebar h3 { display: none; }

.sidebar ul { 
    display: flex; 
    gap: 10px; 
    margin: 0; 
    padding-bottom: 5px; 
    list-style: none;
}

.sidebar ul li { display: inline-block; }

.sidebar ul li a {
    display: block;
    background-color: #fff;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Pill shape on mobile */
    color: var(--primary-darkest);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

/* FIX: Restored the Light Green Active State */
.sidebar ul li a.active, .sidebar ul li a:hover {
    background-color: var(--primary-light); 
    color: var(--primary-darkest); /* Dark text on light green background */
    border-color: var(--primary-light);
}

.content-area { 
    width: 100%; 
    padding: 0; 
    background-color: #ffffff; 
}

/* 
  ==============================================
  4. DESKTOP OVERRIDES (Screens > 992px)
  ==============================================
*/
@media (min-width: 992px) {
    .top-bar { 
        flex-direction: row; 
        height: 100px; 
        padding-bottom: 0;
    }
    
    .logo-container { 
        width: var(--sidebar-width); 
        height: 100%; 
        padding: 10px; 
        justify-content: center; /* Center logo in sidebar column */
    }
    .logo-container img { max-height: 100%; }

    .main-nav { 
        width: auto; 
        flex-grow: 1; 
        padding: 0 40px 0 0; 
        justify-content: flex-end; 
    }
    
    .main-nav ul { 
        justify-content: flex-end; 
        gap: 10px; 
    }
    
    .main-nav ul li a { 
        font-size: 1.1rem; 
        background-color: transparent; 
        padding: 10px 18px; 
    }

    /* Side-by-Side Layout */
    .main-body-container { 
        flex-direction: row; 
    }

    .sidebar {
        width: var(--sidebar-width);
        flex-shrink: 0;
        height: auto;
        min-height: 100%;
        border-right: 1px solid #ddd;
        border-bottom: none;
        overflow-x: visible;
        white-space: normal;
        padding: 25px;
    }

    .sidebar h3 { 
        display: block; 
        margin-top: 0; 
        color: var(--primary-darkest); 
        border-bottom: 2px solid var(--primary-darkest); 
        padding-bottom: 10px; 
        font-size: 1.1rem;
    }
    
    .sidebar ul { display: block; }
    .sidebar ul li { display: block; margin-bottom: 5px; }
    
    .sidebar ul li a {
        background-color: transparent;
        border: none;
        border-radius: 5px; /* Square shape on desktop */
        padding: 10px 15px;
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    /* Hover/Active State matches Mobile now (Light Green) */
    .sidebar ul li a:hover, .sidebar ul li a.active {
        background-color: var(--primary-light);
    }

    .content-area { flex-grow: 1; }
    
    .section-padding { padding: 60px 40px; }
    .section-title { font-size: 2.5rem; margin-bottom: 50px; }
}

/* 
  ==============================================
  MISSING MAP STYLES (Restores Beach Page)
  ==============================================
*/

.interactive-map-canvas { 
    width: 100%; 
    height: 450px; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    background-color: #e5e3df; /* Placeholder color */
}

.location-switcher { 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
}

.location-switcher li { 
    border-bottom: 1px solid #ddd; 
}

.location-switcher li:last-child { 
    border-bottom: none; 
}

.location-switcher .map-location-link { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 15px; 
    text-decoration: none; 
    font-weight: bold; 
    color: var(--primary-darkest); 
    background-color: #fff; 
    transition: background-color 0.3s ease; 
}

.location-switcher .map-location-link:hover { 
    background-color: #f7f7f7; 
}

.location-switcher .map-location-link.active { 
    background-color: var(--primary-light); 
    color: var(--primary-darkest); 
}

.location-switcher .map-location-link i { 
    width: 20px; 
    text-align: center; 
    color: var(--primary-medium-dark); 
}

.location-switcher .map-location-link.active i { 
    color: var(--primary-darkest); 
}

/* 
  ==============================================
  5. CONTENT STYLES
  ==============================================
*/
.section-padding { padding: 40px 20px; } /* Mobile Padding */

.section-title { 
    text-align: center; 
    font-size: 2rem; 
    margin-bottom: 30px; 
    color: var(--primary-darkest); 
}

.section-title .highlight { color: var(--primary-medium-light); }
.section-dark { background-color: var(--primary-darkest); color: var(--text-light); }
.section-dark .section-title { color: var(--text-light); }

/* --- HERO SECTIONS --- */
.hero-section, .animal-hero-section {
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    min-height: 40vh; 
    color: #fff; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* FIX: Removed the dark overlay mask completely */
.hero-overlay { display: none; }

.hero-content { 
    position: relative; 
    z-index: 2; 
    padding: 20px; 
}

.hero-content h1 { 
    font-size: 2.2rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
}

.hero-content p { 
    font-size: 1.1rem; 
    font-weight: 300; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7); 
}

/* Animal Hero Specifics */
.animal-hero-section { align-items: flex-end; justify-content: flex-start; }
.animal-hero-section h1 { 
    font-size: 2rem; 
    background: rgba(0,0,0,0.4); /* Text background only for readability */
    width: 100%; 
    padding: 15px; 
    margin: 0; 
    text-align: left; 
}

@media (min-width: 992px) {
    .hero-section { min-height: 50vh; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.4rem; }
    .animal-hero-section h1 { font-size: 3.5rem; background: none; width: auto; padding: 30px 40px; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
}

/* --- GRIDS & CARDS --- */
.story-grid, .visit-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}
@media (min-width: 992px) { 
    .story-grid, .visit-grid { flex-direction: row; align-items: center; gap: 40px; }
    .story-text, .visit-info { flex: 1; }
    .story-image, .visit-map-embed { flex: 1; }
}

.story-image img, .visit-map-embed iframe { 
    width: 100%; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.highlights-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .highlights-grid { grid-template-columns: repeat(3, 1fr); } }

.highlight-item, .feature-card { text-align: center; background: #f9f9f9; padding: 20px; border-radius: 8px; }
.feature-icon { font-size: 3rem; color: var(--primary-medium-light); margin-bottom: 20px; }

/* Recycling 2x2 Grid Logic */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { 
    .features-grid[style*="repeat(2, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 5px; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.03); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }

/* 
  ==============================================
  6. SPECIALTY PAGES
  ==============================================
*/

/* Map Page */
.map-page-container { display: flex; flex-direction: column; height: auto; min-height: 80vh; }
.map-sidebar { width: 100%; height: auto; max-height: 300px; border-bottom: 2px solid #ccc; overflow-y: auto; background: #f0f2e6; }
.map-main-content { width: 100%; height: 50vh; min-height: 400px; }

@media (min-width: 992px) {
    .map-page-container { flex-direction: row; height: calc(100vh - 90px); }
    .map-sidebar { width: 320px; height: 100%; max-height: none; border-bottom: none; border-right: 1px solid #ddd; }
    .map-main-content { height: 100%; }
}

/* Floating Widget */
.pont-floating-widget {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc; border-radius: 8px;
    padding: 10px; width: 130px; text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
@media (min-width: 992px) {
    .pont-floating-widget { top: 200px; bottom: auto; right: 0; border-radius: 8px 0 0 8px; border-right: none; }
}

/* Accordions */
.multi-item-page-layout { display: flex; flex-direction: column-reverse; gap: 30px; }
.multi-item-jumpto-sticky { width: 100%; background: #f9f9f9; padding: 10px; border-radius: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.multi-item-jumpto-sticky a { padding: 5px 10px; background: #fff; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; color: var(--primary-darkest); font-weight: bold; }

@media (min-width: 992px) {
    .multi-item-page-layout { display: grid; grid-template-columns: 1fr 60px; }
    .multi-item-jumpto-sticky { width: auto; background: transparent; display: block; position: sticky; top: 110px; }
    .multi-item-jumpto-sticky a { background: transparent; border: none; padding: 5px; }
}

.multi-item-accordion-header { display: flex; align-items: center; gap: 15px; padding: 15px; cursor: pointer; background: #f9f9f9; border-bottom: 1px solid #ddd; }
.multi-item-accordion-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.multi-item-accordion-content { max-height: 0; overflow: hidden; transition: all 0.5s ease; padding: 0 20px; }
.multi-item-accordion-content.show { max-height: 2000px; padding: 20px; }

/* 
  ==============================================
  7. UTILITIES & BUTTONS
  ==============================================
*/
.btn { display: inline-block; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; transition: 0.3s; }
.btn-primary { background: var(--primary-darkest); color: #fff !important; }
.btn-primary:hover { background: var(--primary-medium-light); }
.btn-secondary { border: 2px solid var(--primary-darkest); color: var(--primary-darkest) !important; background: transparent; }
.btn-secondary:hover { background: var(--primary-darkest); color: #fff !important; }

.booklet-note { background: #f0f2e6; border-left: 4px solid var(--primary-light); padding: 15px; border-radius: 4px; margin: 20px 0; }
iframe { width: 100% !important; max-width: 100%; border: 0; }

/* =========================================
   FIX 1: BIODIVERSITY MAP & FILTERS
   ========================================= */

/* The Layout */
.map-page-container {
    display: flex;
    flex-direction: column; /* Mobile Default */
    height: auto;
    min-height: 80vh;
    width: 100%;
}

.map-sidebar {
    width: 100%;
    height: auto;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f0f2e6;
    border-bottom: 2px solid #ccc;
    flex-shrink: 0;
}

.map-main-content {
    flex-grow: 1;
    height: 500px; /* Mobile height */
    width: 100%;
    position: relative;
}

#sightings-map-canvas {
    width: 100%;
    height: 100%;
}

/* Desktop Override for Map */
@media (min-width: 992px) {
    .map-page-container {
        flex-direction: row; /* Side by Side */
        height: calc(100vh - 100px); /* Full height minus header */
    }
    .map-sidebar {
        width: 320px; /* Fixed width sidebar */
        height: 100%;
        max-height: none;
        border-bottom: none;
        border-right: 1px solid #ddd;
    }
    .map-main-content {
        height: 100%;
    }
}

/* The Filter Toggles (Missing styling) */
.map-sidebar-content { padding: 20px; }
.toggle-switch { position: relative; display: flex; align-items: center; width: 100%; margin-bottom: 12px; cursor: pointer; }
.toggle-switch input { display: none; }
.slider { position: relative; display: inline-block; width: 44px; height: 24px; background-color: #ccc; border-radius: 34px; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: var(--primary-medium-light); }
input:checked + .slider:before { transform: translateX(20px); }
.toggle-label-text { margin-left: 12px; font-weight: 500; font-size: 0.95rem; }
.filter-buttons { margin-top: 15px; display: flex; gap: 10px; }
.filter-buttons button { padding: 8px 12px; border: 1px solid #ccc; background-color: #fff; cursor: pointer; border-radius: 4px; }

/* =========================================
   FIX 2: DESKTOP GRIDS (Weather, Trees, Video)
   ========================================= */

/* General Desktop Grid Logic (Screens > 992px) */
@media (min-width: 992px) {
    
    /* Trees Page */
    .tree-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3+ columns */
        gap: 30px;
    }

    /* Weather Page */
    .data-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 25px;
    }
    .data-grid-4 {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for Wind/Air */
    }

    /* Trail Camera / Videos */
    .video-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 3+ columns */
        gap: 30px;
    }

    /* Beach Webcam Layout */
    .webcam-container {
        max-width: 900px;
        margin: 0 auto 60px auto;
    }
}

/* Webcam Specifics (All sizes) */
.webcam-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 8px;
}
.webcam-placeholder i { font-size: 4rem; margin-bottom: 15px; }

/* =========================================
   FIX 3: DUTY OF CARE BOOKLET STYLES
   ========================================= */

.booklet-container { 
    max-width: 850px; 
    margin: 0 auto; 
}

.booklet-heading { 
    background-color: var(--primary-light); 
    color: var(--primary-darkest); 
    padding: 15px 30px; 
    border-radius: 10px 10px 0 0; 
    margin-top: 40px; 
    margin-bottom: 0; 
    font-size: 1.5rem; 
    font-weight: bold;
    text-align: center; 
}

.toc-section { 
    padding: 30px; 
    background-color: #f9f9f9; 
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px; 
    margin-bottom: 40px; 
}

.toc-list { 
    list-style-type: none; 
    padding: 0; 
    margin: 0 0 20px 0; 
}

.toc-list li { margin-bottom: 10px; }

.toc-list a { 
    text-decoration: none; 
    font-weight: 600; 
    color: var(--primary-medium-dark); 
    border-bottom: 1px dotted #ccc;
}

.booklet-content-section {
    padding: 20px;
    background: #fff;
    margin-bottom: 30px;
}

.booklet-content-section h3 {
    color: var(--primary-darkest);
    border-bottom: 2px solid var(--primary-medium-light);
    padding-bottom: 10px;
    margin-top: 30px;
}

.disclaimer-box {
    border: 2px solid var(--primary-darkest);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
    background-color: #fff;
}

/* 
  ==============================================
  FIX 4: WEATHER PAGE STYLES (Desktop & Mobile)
  ==============================================
*/

/* Spacing between data sections */
.content-block { 
    margin-bottom: 50px; 
}

/* Subheadings (e.g., "Atmospherics") */
.section-subtitle { 
    font-size: 1.5rem; 
    color: var(--primary-darkest); 
    margin-bottom: 25px; 
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 10px; 
}

/* Card Visuals */
.data-card { 
    background-color: #f9f9f9; 
    padding: 30px 20px; 
    border-radius: 8px; 
    text-align: center; 
    border-left: 6px solid var(--primary-medium-light); /* Green Accent */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    transition: transform 0.2s ease;
}

.data-card:hover { 
    transform: translateY(-5px); 
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

/* Typography */
.data-label { 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 10px; 
}

.data-value { 
    font-size: 2.2rem; /* Mobile Size */
    font-weight: 800; 
    color: var(--primary-darkest); 
    line-height: 1; 
}

/* Icons inside labels */
.data-label i {
    color: var(--primary-medium-dark);
    margin-right: 5px;
}

/* --- RESPONSIVE GRID LOGIC --- */

/* Default (Mobile): 1 Column */
.data-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
}

/* Tablet (600px+): 2 Columns */
@media (min-width: 600px) {
    .data-grid, .data-grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Desktop (992px+): Specific layouts */
@media (min-width: 992px) {
    /* Standard 3-column grid (Rain, Temp) */
    .data-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* 4-column grid (Wind, Air Quality) */
    .data-grid-4 { 
        grid-template-columns: repeat(4, 1fr); 
    }
    
    /* Bigger text on desktop */
    .data-value { 
        font-size: 3rem; 
    }
}


/* =========================================
   FIX 5: RESOURCES & FORMS PAGE STYLES
   ========================================= */

/* Grid Layout */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Stacked */
    gap: 30px;
    margin-top: 30px;
}

/* Desktop Override: 2 Columns */
@media (min-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card Styling */
.resource-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* Icon Styling */
.resource-icon {
    font-size: 3.5rem;
    color: var(--primary-medium-light);
    margin-bottom: 20px;
}

/* Typography */
.resource-card h3 {
    font-size: 1.4rem;
    color: var(--primary-darkest);
    margin: 0 0 15px 0;
}

.resource-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Download Button */
.resource-btn {
    display: inline-block;
    background-color: var(--primary-darkest);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.resource-btn:hover {
    background-color: var(--primary-medium-dark);
    color: #fff;
}

/* 
  ==============================================
  FIX: EVENTS CALENDAR SIZING
  ==============================================
*/
.google-calendar-embed-container {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    
    /* MOBILE DEFAULT: Tall fixed height */
    height: 600px; 
    margin-bottom: 30px;
}

.google-calendar-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* DESKTOP OVERRIDE: Fill the screen vertical space */
@media (min-width: 992px) {
    .google-calendar-embed-container {
        /* This makes it 85% of the viewport height */
        height: 85vh; 
        /* Ensure it never gets too small on short screens */
        min-height: 700px; 
    }
}


/* 
  ==============================================
  HISTORY PAGE COMPARISON SLIDER
  ==============================================
*/
.img-comp-container {
  position: relative;
  height: 400px; /* Default height */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: 100%;
  overflow: hidden;
}

.img-comp-img img {
  display: block;
  height: 100%; /* Force height to match container */
  width: auto;  /* Allow width to expand naturally */
  max-width: none; /* Override global max-width */
}

.img-comp-slider {
  position: absolute;
  z-index: 9;
  cursor: ew-resize;
  /* Style the Handle */
  width: 40px;
  height: 40px;
  background-color: var(--primary-medium-light);
  border: 2px solid #fff;
  opacity: 0.9;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arrows inside the handle */
.img-comp-slider::before {
    content: '\f337'; /* FontAwesome Arrows Alt Horizontal */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
}

/* Responsive Height Adjustments */
@media (max-width: 768px) {
    .img-comp-container { height: 250px; }
}
/* 
  ==============================================
  NATURE CALENDAR: THE CYCLE LAYOUT
  ==============================================
*/
.seasons-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Central Axis (Desktop Only) */
.season-axis {
    display: none;
}

@media (min-width: 992px) {
    .seasons-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        position: relative;
    }
    
    /* The Central Sun/Cycle Icon */
    .season-axis {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        z-index: 10;
        border: 4px solid var(--primary-medium-light);
        color: var(--primary-darkest);
        font-size: 2rem;
    }
}

/* The Season Cards */
.season-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.season-card.active-season {
    border: 3px solid var(--primary-medium-light);
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 5;
}

/* Detailed Content Styling */
.season-header {
    padding: 20px 25px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.season-header h3 { margin: 0; font-size: 1.6rem; color: #fff; }
.season-header span { background: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }

.season-body { padding: 30px; }

/* In-depth Lists */
.season-detail-group { margin-bottom: 25px; }
.season-detail-group h4 { 
    margin: 0 0 10px 0; 
    color: var(--primary-darkest); 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.season-body ul { list-style: none; padding: 0; margin: 0; }
.season-body li { 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    color: #555; 
    padding-left: 20px; 
    position: relative; 
}
.season-body li::before {
    content: '•';
    color: var(--primary-medium-light);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}
.season-body strong { color: #333; }