@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Rubik:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* ================================================================
   Munsiyari Tour Departure Dates Section (Full Width, Compact Height UI)
   Background: Full Section Edge-to-Edge with Dark Scrim for High-Contrast Visibility
   Branding: Coral Red #fd5056, White Typography, Compact Proportions
   ================================================================ */

.mdd-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
    padding: 32px 0 36px;
    overflow: hidden;
    border-top: 2px solid #fd5056;
    border-bottom: 1px solid rgba(253, 80, 86, 0.2);
}

/* Dark cinematic gradient scrim on left ensuring 100% crystal-clear text visibility */
.mdd-dark-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 15, 28, 0.88) 0%,
        rgba(8, 15, 28, 0.80) 38%,
        rgba(8, 15, 28, 0.52) 62%,
        rgba(8, 15, 28, 0.20) 82%,
        rgba(8, 15, 28, 0.08) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.mdd-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Main Inner Flex / Grid Wrap */
.mdd-inner-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.35fr;
    gap: 36px;
    align-items: center;
    width: 100%;
}

/* ================================================================
   LEFT CONTENT AREA (Compact & High-Contrast Typography)
   ================================================================ */
.mdd-left-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

/* Eyebrow Pill Badge */
.mdd-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(253, 80, 86, 0.22);
    border: 1px solid rgba(253, 80, 86, 0.6);
    color: #ff858a;
    font-family: 'Rubik', sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 50px;
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mdd-tag-badge i {
    font-size: 0.8rem;
    color: #ff6b70;
}

/* Section Main Title */
.mdd-main-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2.1rem, 2.9vw, 2.85rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.mdd-main-title span {
    color: #ff6e73;
}

/* Subtitle */
.mdd-main-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 16px;
    line-height: 1.45;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Departure Highlights Bar */
.mdd-highlights-wrap {
    position: relative;
}

.mdd-highlights-decor {
    margin-bottom: 6px;
    display: block;
    line-height: 1;
}

.mdd-highlights-decor svg {
    display: block;
}

.mdd-highlights-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mdd-hl-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mdd-hl-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(253, 80, 86, 0.90);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(253, 80, 86, 0.35);
}

.mdd-hl-title {
    font-family: 'Rubik', sans-serif;
    font-size: 0.90rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1px;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mdd-hl-sub {
    font-family: 'Roboto', sans-serif;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mdd-hl-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   RIGHT CALENDAR CARD (Maintains Desktop Width, Compact Height)
   ================================================================ */
.mdd-cal-card-compact {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.20), 0 2px 8px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 100%; /* Expanded to 100% width */
    padding: 22px 28px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Himalayan Mountain Sketch Watermark in Card Header */
.mdd-cal-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 65px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.50;
}

/* Card Header */
.mdd-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.mdd-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mdd-compact-head-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff1f2;
    color: #fd5056;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.20rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(253, 80, 86, 0.10);
}

.mdd-compact-head-title {
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1px;
    line-height: 1.15;
}

.mdd-compact-head-sub {
    font-family: 'Rubik', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* Departure Route Filter Chips (All / Delhi / Kathgodam) */
.mdd-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.mdd-filter-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.mdd-filter-btn:hover {
    color: #0f172a;
}

.mdd-filter-btn.active {
    background: #ffffff;
    color: #fd5056;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Month Navigation Bar + Quick Pills */
.mdd-compact-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.mdd-circle-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.76rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.mdd-circle-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: scale(1.05);
}

.mdd-circle-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Quick Month Pills Bar */
.mdd-month-pills-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mdd-month-pills-bar::-webkit-scrollbar {
    display: none;
}

.mdd-month-pill-btn {
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mdd-month-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mdd-month-pill-btn.active {
    background: #fd5056;
    color: #ffffff;
    border-color: #fd5056;
    box-shadow: 0 2px 6px rgba(253, 80, 86, 0.30);
}

/* Month Batch Highlights Stat Banner */
.mdd-batch-stat-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 4px 10px;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.72rem;
    color: #475569;
}

.mdd-stat-accent {
    font-weight: 700;
    color: #fd5056;
}

/* Weekday & Day Cell Grid */
.mdd-compact-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    position: relative;
    z-index: 1;
    margin-bottom: 11px;
}

.mdd-c-weekday {
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    padding: 3px 0;
}

.mdd-c-weekday.is-dep-col {
    color: #fd5056;
}

.mdd-c-cell {
    height: 38px; /* Comfortable increased height */
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    color: #1e293b;
    border-radius: 9px;
    transition: all 0.18s ease;
    user-select: none;
    position: relative;
}

/* Delhi Friday Night Departures (Coral Pink Pill) */
.mdd-c-cell.is-fri-delhi {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(253, 80, 86, 0.10);
    border: 1px solid rgba(253, 80, 86, 0.15);
}

.mdd-c-cell.is-fri-delhi:hover {
    background: #fecaca;
    transform: scale(1.06);
    box-shadow: 0 3px 8px rgba(253, 80, 86, 0.20);
}

/* Kathgodam Saturday Morning Departures (Soft Sky Blue Pill) */
.mdd-c-cell.is-sat-kathgodam {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.mdd-c-cell.is-sat-kathgodam:hover {
    background: #bae6fd;
    transform: scale(1.06);
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.20);
}

/* Dimmed state when filtering by other city */
.mdd-c-cell.is-dimmed {
    opacity: 0.25;
    cursor: default;
    box-shadow: none !important;
    transform: none !important;
}

/* Empty Placeholder Outline Cells */
.mdd-c-cell.is-placeholder {
    border: 1px solid #f1f5f9;
    background: #fafbfc;
}

.mdd-c-cell.is-empty {
    visibility: hidden;
}

/* Selected Date Highlight State */
.mdd-c-cell.is-active-selection {
    box-shadow: 0 0 0 2px #fd5056, 0 4px 12px rgba(253, 80, 86, 0.30) !important;
    transform: scale(1.08);
    z-index: 2;
    border-color: #fd5056 !important;
}

/* Interactive Selected Batch Drawer */
.mdd-selected-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff8f8;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 11px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mdd-drawer-text {
    font-family: 'Rubik', sans-serif;
    font-size: 0.80rem;
    color: #1e293b;
    line-height: 1.3;
}

.mdd-drawer-text strong {
    color: #0f172a;
}

/* Availability Legend at Bottom of Calendar */
.mdd-compact-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-family: 'Rubik', sans-serif;
    font-size: 0.70rem;
    color: #475569;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 8px;
}

.mdd-legend-items-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mdd-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mdd-legend-item:hover {
    opacity: 0.8;
}

.mdd-l-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mdd-l-dot.delhi-dot {
    background: #fca5a5;
}

.mdd-l-dot.kath-dot {
    background: #93c5fd;
}

.mdd-legend-price-note {
    font-weight: 600;
    color: #0f172a;
}

.mdd-legend-price-note span {
    color: #fd5056;
}

/* ================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ================================================================ */

@media (max-width: 1199px) {
    .mdd-inner-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .mdd-cal-card-compact {
        max-width: 100%;
        padding: 16px 18px 12px;
    }
}

@media (max-width: 991px) {
    .mdd-section {
        padding: 24px 0 28px;
        background-position: center 30%;
    }
    .mdd-dark-scrim {
        background: linear-gradient(
            180deg,
            rgba(8, 15, 28, 0.90) 0%,
            rgba(8, 15, 28, 0.82) 40%,
            rgba(8, 15, 28, 0.70) 100%
        );
    }
    .mdd-inner-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mdd-left-content {
        max-width: 100%;
        text-align: left;
    }
    .mdd-highlights-row {
        width: 100%;
        justify-content: flex-start;
    }
    .mdd-cal-card-compact {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .mdd-section {
        padding: 18px 0 22px;
    }
    .mdd-main-title {
        font-size: 1.85rem;
    }
    .mdd-main-subtitle {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
    .mdd-highlights-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }
    .mdd-hl-divider {
        display: none;
    }
    .mdd-cal-card-compact {
        padding: 14px 12px;
        border-radius: 16px;
    }
    .mdd-filter-tabs {
        flex-wrap: wrap;
    }
    .mdd-filter-btn {
        font-size: 0.68rem;
        padding: 4px 6px;
    }
    .mdd-compact-grid {
        gap: 3px;
    }
    .mdd-c-cell {
        height: 28px;
        font-size: 0.80rem;
        border-radius: 6px;
    }
    .mdd-compact-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
