/* =========================================================
   EPIC Rooms — Responsive
   Breakpoints: 1399 · 1199 (mobile nav) · 991 · 767 · 479 · 359
   ========================================================= */

/* ---------- Touch devices: show amenity imagery without hover ---------- */
@media (hover: none) {
    .amenity-card .amenity-media { clip-path: inset(0 0 0 0); }
    .amenity-card .amenity-media img { transform: none; }
    .amenity-card h3 { color: var(--white); }
    .amenity-card p { color: rgba(255, 255, 255, 0.85); }
    .amenity-card:hover, .room-card:hover { transform: none; }
}

/* ---------- ≤1299px : logo moves left so the nav links always fit on one line ---------- */
@media (max-width: 1299px) {
    .desktop-header { grid-template-columns: auto 1fr auto; gap: 32px; }
    .desktop-header .brand { order: -1; }
    .main-nav ul { justify-content: center; gap: clamp(14px, 1.6vw, 28px); }
    .brand-logo { height: 38px; }
}

/* ---------- ≤1399px ---------- */
@media (max-width: 1399px) {
    :root { --fs-h2: 44px; }
    .header-call-text { display: none; }
    .nav-link { font-size: 14px; }
    .amenity-body { padding: 30px 24px; }
}

/* ---------- ≤1199px : mobile navigation ---------- */
@media (max-width: 1199px) {
    :root { --header-h: 84px; --section-space: 100px; --fs-h2: 40px; }

    .desktop-header { display: none; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .mobile-header > .brand { position: relative; z-index: 120; }

    .amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .testi-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 22px; }
    .testi-swiper:not(.swiper-initialized) .testi-card { flex-basis: calc((100% - 22px) / 2); }

    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; }

    .about-badge { right: -20px; }
}

/* ---------- ≤991px ---------- */
@media (max-width: 991px) {
    :root { --section-space: 80px; --fs-h2: 36px; --fs-h3: 22px; }

    .section-head-split { flex-direction: column; align-items: flex-start; gap: 18px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 620px; }
    .about-main { aspect-ratio: 5 / 4; }
    .about-badge { right: 24px; bottom: -40px; width: 120px; height: 120px; }
    .about-badge-core { width: 38px; }

    /* Rooms: horizontal swipe row */
    .room-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(300px, 46%);
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 22px;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
        scrollbar-width: thin;
        scrollbar-color: var(--orange) transparent;
    }
    .room-card { scroll-snap-align: start; }
    .room-card:hover { transform: none; }

    /* Vizag */
    .vizag-grid { grid-auto-rows: 420px; gap: 20px; }
    .vizag-card, .vizag-card-lg { grid-column: span 6; }

    /* Services */
    .service-grid { grid-template-columns: repeat(2, 1fr); }

    /* Unwind */
    .unwind-grid { grid-template-columns: 1fr; }
    .unwind-media { max-width: 640px; }
    .unwind-main { aspect-ratio: 5 / 4; }
    .unwind-strip { gap: 20px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }

    /* Dialog */
    .room-dialog-inner { grid-template-columns: 1fr; }
    .room-dialog-media img { min-height: 0; aspect-ratio: 16 / 9; }
    .room-dialog-body { padding: 36px 30px 34px; }
}

/* ---------- ≤767px ---------- */
@media (max-width: 767px) {
    :root { --gutter: 16px; --header-h: 74px; --section-space: 70px; --fs-h2: 30px; --fs-h3: 21px; }

    body { font-size: 15px; }
    .brand-logo, .header-section.is-solid .brand-logo { height: 30px; }
    .footer-logo { height: 84px; }

    .btn { padding: 15px 24px; font-size: 15px; }
    .btn-sm { padding: 13px 20px; }

    /* Hero */
    .inner-home-section-1 { min-height: 600px; }
    .hero-content { padding-bottom: 120px; }
    .hero-bottom { margin-top: 24px; gap: 18px; }
    .hero-text { font-size: 15px; }
    .hero-controls { bottom: 26px; }
    .hero-nav { gap: 12px; }
    .hero-progress { flex: 1 1 auto; }
    .hero-pagination { display: none; }
    .hero-arrow, .slider-arrow { width: 46px; height: 46px; }

    /* Amenities: single column with imagery always visible */
    .amenity-grid { grid-template-columns: 1fr; gap: 16px; }
    .amenity-card .amenity-media { clip-path: inset(0 0 0 0); }
    .amenity-card .amenity-media img { transform: none; }
    .amenity-card h3 { color: var(--white); }
    .amenity-card p { color: rgba(255, 255, 255, 0.85); }

    /* About */
    .about-details { gap: 12px; }
    .about-highlight { margin: 24px 0; }

    /* Rooms */
    .room-grid { grid-auto-columns: 86%; gap: 14px; }
    .room-card { padding: 14px; }
    .room-body { padding: 22px 6px 6px; }

    /* Vizag */
    .vizag-grid { grid-auto-rows: 440px; gap: 14px; }
    .vizag-card, .vizag-card-lg { grid-column: 1 / -1; }
    .vizag-body { padding: 24px; }

    /* Testimonials */
    .testi-card { padding: 30px 24px 26px; }
    .testi-text { font-size: 16px; }
    .testi-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 16px; }
    .testi-swiper:not(.swiper-initialized) .testi-card { flex-basis: 92%; }

    /* Services */
    .service-grid { grid-template-columns: 1fr; }
    .service-item { padding: 28px 22px; }

    /* Unwind */
    .unwind-media { padding: 0 16px 16px 0; }
    .unwind-frame { top: 16px; left: 16px; }
    .unwind-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
    .unwind-strip figure:nth-child(3) { display: none; }
    .feature-list li { grid-template-columns: 52px 1fr; gap: 16px; }
    .feature-num { width: 52px; height: 52px; font-size: 19px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .gallery-zoom { width: 46px; height: 46px; }

    /* Footer */
    .footer-grid { gap: 36px 24px; padding: 60px 0 44px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }

    /* Lightbox: arrows move under the image */
    .lightbox { flex-wrap: wrap; align-content: center; gap: 16px; padding: 70px 12px 24px; }
    .lb-figure { order: -1; width: 100%; max-width: 100%; }
    .lb-img { max-height: 70vh; }
    .lb-prev, .lb-next { width: 48px; height: 48px; }
    .lb-close { top: 14px; right: 14px; width: 46px; height: 46px; }
}

/* ---------- ≤479px ---------- */
@media (max-width: 479px) {
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; }

    .check-list { grid-template-columns: 1fr; }

    .about-badge { width: 100px; height: 100px; bottom: -30px; }
    .about-badge-core { width: 30px; }

    .vizag-grid { grid-auto-rows: 400px; }

    .btn-row .btn { flex: 1 1 auto; }

    .footer-grid { grid-template-columns: 1fr; }

    .room-dialog-body { padding: 30px 22px; }
}

/* ---------- Short screens (small laptops, small phones): tighten hero spacing ---------- */
@media (max-height: 700px) {
    .hero-content { padding-bottom: 116px; }
    .hero-content .eyebrow { margin-bottom: 12px; }
    .hero-bottom { margin-top: 22px; }
}

/* ---------- ≤359px ---------- */
@media (max-width: 359px) {
    .hero-counter { display: none; }
    .hero-title { font-size: 30px; }
    .hero-text { font-size: 14px; line-height: 1.55; }
    .room-grid { grid-auto-columns: 90%; }
    .vizag-body > p:not(.vizag-loc) { font-size: 14px; }
}
