/* Custom Responsiveness Fixes */

/* --- Global Mobile Resets --- */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure forms don't overflow */
    .form-control,
    .form-select {
        font-size: 14px;
    }

    /* Buttons full width on very small screens */
    .btn-mobile-block {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* --- Hero Section Fixes --- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 30px;
    }

    .hero-section .hero-content {
        padding: 40px 15px !important;
        position: relative !important;
        transform: none !important;
        margin-top: -50px;
        /* Slight overlap with banner */
        z-index: 10;
        width: 100%;
    }

    .banner-form.card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: none;
        margin-top: 20px;
    }

    .banner-form .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .banner-form .nav li {
        white-space: nowrap;
    }

    /* Form fields in banner */
    .banner-form .d-lg-flex {
        display: block;
    }

    .banner-form .form-item {
        margin-bottom: 15px;
        border-right: none !important;
        /* Remove divider on mobile */
        padding-right: 0;
    }

    .banner-form .search-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* --- Mobile Navigation Fixes --- */
@media (max-width: 1199.98px) {
    .header-nav .main-menu-wrapper {
        padding: 10px 15px;
    }

    .navbar-logo h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0;
    }

    .header__hamburger {
        margin-left: auto;
        display: block;
    }

    .main-menu-content {
        display: none;
        /* Hidden by default, toggled by JS/MeanMenu */
    }
}

/* --- Place Section Grid Fixes --- */
@media (max-width: 767.98px) {
    .place-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding: 10px 0;
        scrollbar-width: none;
        /* Firefox */
    }

    .place-nav .nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .place-nav .nav li {
        white-space: nowrap;
        margin-right: 15px;
    }

    .place-item {
        margin-bottom: 20px;
    }
}

/* --- Benefit Cards Equal Height --- */
@media (min-width: 768px) {
    .benefit-section .row {
        display: flex;
        flex-wrap: wrap;
    }

    .benefit-card {
        height: 100%;
    }
}

/* --- Testimonial Spacing --- */
@media (max-width: 575.98px) {
    .testimonial-section .section-header {
        margin-bottom: 20px;
    }

    .testimonial-slider .card {
        margin: 10px;
    }
}

/* --- Footer Fixes --- */
@media (max-width: 767.98px) {
    .footer-top {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .copyright {
        margin-bottom: 10px;
    }
}

/* --- General Fixes --- */
img {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* Fix unexpected overflows */
body {
    overflow-x: hidden;
}
/* =============================================================================
   MOBILE-FIRST PROFESSIONAL UPGRADE (Hotels, Cars, Puja & Sticky Bars)
============================================================================= */

/* --- Quick Filter Pills (Horizontal Scroll) --- */
.quick-filter-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 14px 0;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}
.quick-filter-wrapper::-webkit-scrollbar {
    display: none;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.filter-chip:hover {
    background: #0F2027;
    color: #ffffff;
    border-color: #0F2027;
}
.filter-chip.active {
    background: #0F2027;
    color: #ffffff;
    border-color: #0F2027;
}
.filter-chip.active-gold {
    background: linear-gradient(135deg, #C6A664 0%, #D4AF37 100%);
    color: #0F2027;
    border-color: #C6A664;
    font-weight: 600;
}

/* --- Mobile Filter Drawer Trigger --- */
.mobile-filter-trigger-bar {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-filter-trigger-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: #ffffff;
        padding: 12px 16px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        margin-bottom: 20px;
    }
    .desktop-filter-sidebar {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .mobile-filter-trigger-bar {
        display: none !important;
    }
    .desktop-filter-sidebar {
        display: block !important;
    }
}

/* --- Mobile Bottom Sticky Booking Bar --- */
.mobile-sticky-booking-bar {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-sticky-booking-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #ffffff;
        padding: 12px 18px;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    }
    body.has-sticky-bar {
        padding-bottom: 75px !important;
    }
}

/* --- WhatsApp & Call Action Buttons --- */
.btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-whatsapp:hover {
    background: #1ebc59;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* --- Spiritual Tarapith Accents --- */
.puja-badge-spiritual {
    background: #FFF3E0;
    color: #D9531E;
    border: 1px solid #FFE0B2;
    font-weight: 600;
}
.puja-gold-badge {
    background: #FFF8E7;
    color: #B8860B;
    border: 1px solid #F3E5AB;
    font-weight: 600;
}
.mandir-distance-badge {
    background: rgba(198, 166, 100, 0.15);
    color: #8c6e26;
    border: 1px solid rgba(198, 166, 100, 0.3);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.amenity-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.capacity-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Touch target accessibility */
.btn, .nav-link, .dropdown-item, .form-control, .form-select {
    min-height: 44px;
}
.btn-sm {
    min-height: 36px;
}

/* =============================================================================
   DUAL LOGO DISPLAY FIX (Header Logo White vs Dark Switch)
============================================================================= */
/* Default (Transparent / Top Header State on Desktop): Show White Logo, Hide Dark Logo */
.header-logo.logo-white,
header .header-logo.logo-white,
.navbar-logo .header-logo.logo-white {
    display: flex !important;
    align-items: center;
}

.header-logo.logo-dark,
header .header-logo.logo-dark,
.navbar-logo .header-logo.logo-dark {
    display: none !important;
}

/* Scrolled / Sticky / Fixed State (White Background): Hide White Logo, Show Dark Logo */
header.fixed .header-logo.logo-white,
.main-header.sticky header .header-logo.logo-white,
.main-header.fixed header .header-logo.logo-white,
header.fixed .navbar-logo .header-logo.logo-white,
.main-header.sticky .navbar-logo .header-logo.logo-white {
    display: none !important;
}

header.fixed .header-logo.logo-dark,
.main-header.sticky header .header-logo.logo-dark,
.main-header.fixed header .header-logo.logo-dark,
header.fixed .navbar-logo .header-logo.logo-dark,
.main-header.sticky .navbar-logo .header-logo.logo-dark {
    display: flex !important;
    align-items: center;
}

/* Mobile Screen (< 992px): Header has solid background -> Show Dark Logo, Hide White Logo */
@media (max-width: 991px) {
    .header-logo.logo-white,
    header .header-logo.logo-white,
    .navbar-logo .header-logo.logo-white {
        display: none !important;
    }
    .header-logo.logo-dark,
    header .header-logo.logo-dark,
    .navbar-logo .header-logo.logo-dark {
        display: flex !important;
        align-items: center;
    }
}

/* Offcanvas Mobile Drawer Logos */
.offcanvas .white-logo-responsive {
    display: none !important;
}
.offcanvas .black-logo-responsive {
    display: block !important;
}

/* =============================================================================
   MAKEMYTRIP / OYO / GOIBIBO STYLE HOMEPAGE ENHANCEMENTS
============================================================================= */

/* --- 1. Promotional Marquee Ticker Strip --- */
.promo-ticker-strip {
    background: #0d1b2a;
    color: #e2e8f0;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    z-index: 5;
}
.promo-ticker-inner {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}
.promo-ticker-track {
    display: flex;
    gap: 40px;
    animation: promoTickerScroll 45s linear infinite;
    align-items: center;
}
.promo-ticker-strip:hover .promo-ticker-track {
    animation-play-state: paused;
}
@keyframes promoTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-badge {
    background: linear-gradient(135deg, #ff7a18, #af002d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ticker-item:hover {
    color: #fbbf24;
}
.ticker-item strong {
    color: #f8fafc;
    margin: 0 4px;
}
.ticker-divider {
    color: #475569;
    margin: 0 10px;
}

/* --- Hero Trust Badges --- */
.hero-trust-bar {
    background: rgba(13, 27, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 10px 24px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
}
.hero-trust-item i {
    color: #10b981;
    font-size: 15px;
}

/* --- 2. Stats Counter Bar --- */
.stats-counter-section {
    background: linear-gradient(135deg, #0b1528 0%, #132440 50%, #0d1b2a 100%);
    padding: 35px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(245, 158, 11, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}
.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 3. Flash Deals Section --- */
.flash-deals-section {
    background: #f8fafc;
    position: relative;
}
.deal-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.deal-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.deal-img-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}
.deal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.deal-card:hover .deal-img-wrapper img {
    transform: scale(1.08);
}
.deal-countdown-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 10px 14px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}
.deal-timer {
    background: rgba(239, 68, 68, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.deal-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.deal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 14px;
}
.deal-current-price {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b2a;
}
.deal-old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}
.deal-save-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- 4. Destinations Near Tarapith (Bento Grid) --- */
.destination-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.destination-bento-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}
.destination-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}
.destination-bento-card.col-wide {
    grid-column: span 6;
}
.destination-bento-card.col-narrow {
    grid-column: span 3;
}
@media (max-width: 991px) {
    .destination-bento-card.col-wide,
    .destination-bento-card.col-narrow {
        grid-column: span 6;
    }
}
@media (max-width: 575px) {
    .destination-bento-card.col-wide,
    .destination-bento-card.col-narrow {
        grid-column: span 12;
        min-height: 220px;
    }
}
.destination-bento-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}
.destination-bento-card:hover .destination-bento-img {
    transform: scale(1.07);
}
.destination-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(13,27,42,0.85) 75%, rgba(13,27,42,0.95) 100%);
    z-index: 2;
}
.destination-bento-content {
    position: relative;
    z-index: 3;
    color: #fff;
}
.destination-distance-chip {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13, 27, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- 5. Sacred Aarti & Darshan Schedule --- */
.aarti-schedule-section {
    background: linear-gradient(135deg, #2b0b05 0%, #4a1309 45%, #240703 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.aarti-schedule-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.aarti-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.aarti-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-4px);
}
.aarti-card.active-aarti {
    border-color: #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}
.aarti-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
}
.aarti-name {
    font-size: 18px;
    font-weight: 700;
    color: #fed7aa;
    margin-bottom: 6px;
}
.aarti-time {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    font-family: monospace;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.aarti-desc {
    font-size: 12px;
    color: #d1d5db;
    margin-bottom: 0;
}
.aarti-status-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* --- 6. Pilgrim Testimonials --- */
.testimonial-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.testimonial-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 12px;
}
.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
    margin-bottom: 18px;
}
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #af002d);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.testimonial-user-city {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 0;
}
.verified-pilgrim-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
}

/* --- 7. WhatsApp Community & Helpline CTA Strip --- */
.community-cta-strip {
    background: linear-gradient(135deg, #0d1b2a 0%, #064e3b 50%, #065f46 100%);
    color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.community-cta-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}
@media (max-width: 767px) {
    .community-cta-title {
        font-size: 20px;
    }
}
.community-cta-desc {
    color: #a7f3d0;
    font-size: 15px;
    margin-bottom: 0;
}
.btn-whatsapp-cta {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-whatsapp-cta:hover {
    background: #1eb954;
    color: #ffffff;
    transform: scale(1.03);
}

/* --- Enhanced Cards Styling --- */
.service-pill-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    display: inline-block;
}
.mandir-dist-chip {
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


