/* 
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DATES PAGE STYLES — FULLY RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --dates-accent: #c8860a;
    --dates-accent2: #e6a020;
    --dates-dark: #2b1200;
    --dates-white: #ffffff;
    --dates-bg: #f8f9fa; /* Matches the wave color perfectly */
    --dates-card-bg: #ffffff;
    --dates-text: #3a2a1a;
    --dates-muted: #7a6a5a;
}

/* ── RESET, BASE & CURSOR FIX ── */
.dates-body {
    margin: 0;
    padding: 0;
    background-color: var(--dates-bg);
    overflow-x: hidden;
    font-family: 'DM Sans', sans-serif;
    color: var(--dates-text);
    /* Force normal cursor back on */
    cursor: auto !important; 
}

/* Override any inherited custom cursors from citrus page */
.dates-body * {
    cursor: auto !important;
}
.dates-body a, 
.dates-body button, 
.dates-body .date-btn-inquire,
.dates-body .date-card {
    cursor: pointer !important;
}

/* ════════════════════════════════
   1. HERO — SPLIT DAY / NIGHT
   ════════════════════════════════ */
.dates-hero {
    position: relative;
    width: 100%;
    /* Increased height for more breathing room */
    height: 100vh;
    min-height: 800px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 60px;
}

/* Background Setup */
.dates-hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}

/* Left half = Day */
.bg-day {
    flex: 1;
    background: linear-gradient(160deg, #d4830f 0%, #e8a020 55%, #c8860a 100%);
}

/* Right half = Night */
.bg-night {
    flex: 1;
    background: linear-gradient(160deg, #1a0a00 0%, #3d1c00 55%, #6b3a0a 100%);
}

/* Center divider line */
.dates-hero-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.25) 30%,
            rgba(255, 255, 255, 0.25) 70%,
            transparent);
    pointer-events: none;
}

/* 3-D canvas on top of halves */
#dates-3d-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#dates-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Text Content - Better Centered */
.dates-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--dates-white);
    pointer-events: none;
    /* Pushes text up slightly to prevent it from overlapping the bottom dates */
    transform: translateY(-4vh);
    width: 100%;
    padding: 0 20px;
}

.dates-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dates-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    opacity: 0.95;
    margin-top: 14px;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Day/Night labels - Pinned to bottom */
.dates-hero-labels.bottom-labels {
    position: absolute;
    bottom: 130px; /* Sits cleanly above the wave */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
}

.dates-hero-labels span {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Single Smooth Wave Divider */
.dates-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 15;
}

.dates-wave-divider svg {
    width: 100%;
    height: 110px;
    display: block;
}

.dates-wave-divider .shape-fill {
    fill: var(--dates-bg);
}

/* ════════════════════════════════
   2. PRODUCTS SECTION
   ════════════════════════════════ */
.dates-products {
    padding: 80px 0 100px;
    background-color: var(--dates-bg);
    position: relative;
    z-index: 5;
}

.dates-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Section heading */
.dates-section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.dates-section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--dates-dark);
    margin: 0 0 10px;
}

.dates-section-heading p {
    font-size: 1.1rem;
    color: var(--dates-muted);
    margin: 0;
}

/* Grid */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ════════════════════════════════
   3. PRODUCT CARDS
   ════════════════════════════════ */
.date-card {
    background: var(--dates-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(43, 18, 0, 0.05);
    border-left: 5px solid var(--dates-accent);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.date-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(43, 18, 0, 0.1);
}

.date-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #f0ebe3;
}

.in-season-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--dates-accent);
    color: white;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5ece0, #e8d5ba);
}

.date-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.date-season {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dates-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.date-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dates-dark);
    margin: 0 0 12px;
    font-weight: 800;
}

.date-card-body p {
    font-size: 1rem;
    color: var(--dates-muted);
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}

/* Golden Wide Button */
.date-btn-inquire {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--dates-accent);
    color: var(--dates-white) !important;
    padding: 15px 0;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.date-btn-inquire:hover {
    background-color: var(--dates-dark);
    transform: translateY(-2px);
}

/* ════════════════════════════════
   4. REVEAL ANIMATIONS
   ════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dates-grid .date-card:nth-child(1) { transition-delay: 0.05s; }
.dates-grid .date-card:nth-child(2) { transition-delay: 0.15s; }
.dates-grid .date-card:nth-child(3) { transition-delay: 0.25s; }
.dates-grid .date-card:nth-child(4) { transition-delay: 0.35s; }

/* ════════════════════════════════
   5. RESPONSIVE (MOBILE OPTIMIZATION)
   ════════════════════════════════ */
@media (max-width: 900px) {
    .dates-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .dates-hero {
        min-height: 85vh; /* Adjusted for mobile viewports */
    }

    .dates-hero-content {
        /* Pushes text much higher on mobile so it doesn't block the dates */
        transform: translateY(-10vh); 
    }

    .dates-title {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .dates-hero-labels.bottom-labels {
        bottom: 80px; /* Adjusted to sit right on top of smaller wave */
        padding: 0 8%;
    }

    .dates-hero-labels span {
        font-size: 0.9rem;
    }

    .dates-wave-divider svg {
        height: 60px; /* Thinner wave for mobile */
    }

    .date-card-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .dates-container {
        padding: 0 20px;
    }
    
    .date-card-body {
        padding: 24px 20px;
    }
}