/* Homepage — match dreamtrips.sa reference screenshot */

/* Hero: full-bleed, centered copy like production */
.hero {
    min-height: 82vh;
}
.hero-content {
    max-width: 720px !important;
    margin-inline: auto !important;
    text-align: center !important;
    padding: 5.5rem 1rem 9rem !important;
}
.hero-content h1 {
    margin-inline: auto;
}
.hero-content h1::after {
    margin-inline: auto !important;
}
.hero-content p {
    margin-inline: auto !important;
    max-width: 36rem;
}
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(11, 31, 58, 0.32) 0%,
        rgba(11, 31, 58, 0.1) 42%,
        rgba(11, 31, 58, 0.38) 100%
    ) !important;
}
.hero-dots {
    bottom: 6.2rem;
}

/* Search overlaps hero bottom */
.booking-search,
.booking-widget {
    margin-top: -92px !important;
    z-index: 40;
}
.booking-search .widget-card,
.booking-search .bs-card {
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(11, 31, 58, 0.2) !important;
    border: 0 !important;
    overflow: hidden;
}
.booking-search .widget-card.is-guests-open,
.booking-search .widget-card.is-suggest-open {
    overflow: visible !important;
}
.bs-tabs,
.widget-tabs {
    background: var(--navy) !important;
}
.bs-tab.active,
.widget-tabs button.active {
    background: #fff !important;
    color: var(--navy) !important;
}
.bs-panels {
    background: #fff;
    padding: 1.4rem 1.45rem 1.5rem !important;
}

/* Features — clean icon strip */
.features-section {
    padding: 2.75rem 0 0.5rem;
}
.features-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.5rem;
}
.feature-icon {
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    color: var(--navy);
    background: #fff;
    font-size: 1.35rem;
}

/* Offer cards — price right, احجز الآن left */
.pkg-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
}
.pkg-card {
    border-radius: 18px !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08) !important;
    background: #fff;
}
.pkg-card-media {
    height: 200px !important;
}
.pkg-card-body {
    padding: 1.15rem 1.2rem 1.25rem !important;
    gap: 0.5rem !important;
}
.pkg-card-body h3 {
    font-size: 1.05rem !important;
    min-height: 2.6em;
}
.pkg-card-stars {
    display: flex;
    gap: 0.18rem;
    color: var(--gold);
    font-size: 0.78rem;
    margin: 0.1rem 0 0.15rem;
}
.pkg-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem;
    margin-top: auto !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--line);
}
.pkg-card-foot .price {
    margin: 0 !important;
    color: var(--gold-dark) !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-align: right;
}
.pkg-card-foot .btn-sm {
    display: inline-flex !important;
    padding: 0.55rem 1.2rem !important;
    font-size: 0.86rem !important;
    border-radius: 999px !important;
    flex-shrink: 0;
}

/* Destinations — tall photo cards */
.dest-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.15rem !important;
}
.dest-card {
    height: 420px !important;
    border-radius: 20px !important;
}
.dest-arrow {
    width: 40px;
    height: 40px;
}

/* Promo banners */
.promo-banner {
    min-height: 380px !important;
    border-radius: 24px !important;
}
.promo-content {
    padding: 3rem !important;
    max-width: 540px;
}
.promo-banner .overlay {
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.82), rgba(11, 31, 58, 0.18)) !important;
}

/* Services */
.services-row {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.service-circle {
    width: 92px;
    height: 92px;
    border: 1.5px solid rgba(11, 31, 58, 0.16);
}

/* Testimonials — 3 across (static); slider uses .tm-* classes instead */
.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    overflow: visible !important;
}
.home-testimonials .tm-track {
    overflow: visible;
}
.testimonial-card {
    height: 100%;
    border-radius: 18px !important;
    padding: 1.7rem 1.45rem 1.4rem !important;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
}

@media (max-width: 1100px) {
    .pkg-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .dest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .dest-card { height: 300px !important; }
    .services-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .hero:not(.hero--with-search) {
        min-height: 58vh !important;
    }
    .hero:not(.hero--with-search) .hero-content {
        padding: 4rem 1rem 3rem !important;
    }
    .hero--with-search .booking-search,
    .hero--with-search .booking-widget { margin-top: 0 !important; }
    .features-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tour sections fallback (if tour-sections.css missing on deploy) */
.tour-sections-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}
.tour-sections-track::-webkit-scrollbar { display: none; }
.tour-card {
    flex: 0 0 clamp(160px, 42vw, 220px);
    scroll-snap-align: start;
    text-align: center;
    color: inherit;
}
.tour-card-media {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #d7e2ea;
}
.tour-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tour-card h3 {
    margin: 0.85rem 0 0;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 640px) {
    .pkg-scroll {
        grid-template-columns: 1fr !important;
    }
    .home-offers .home-offers-track.pkg-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        transform: none !important;
    }
    .pkg-card-body h3 { min-height: 0; }
    .pkg-card-media { height: 180px !important; }
    .home-offers .home-offer-card .pkg-card-media { height: 120px !important; }
    .dest-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .dest-card { height: 240px !important; }
    .promo-banner { min-height: 280px !important; border-radius: 18px !important; }
    .promo-content { padding: 1.5rem 1.15rem !important; }
    .services-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
