/* SpaceMyTrip: travel components (hotels, destinations, packages, services). Loaded after site.css. */

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; font-weight: 600; }
.eyebrow { color: var(--pine-2); letter-spacing: .14em; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header: navy bar matching the logo */
.announce { background: var(--grad); color: #fff; }
.announce a { color: #fff; }
.site-header { background: var(--pine-ink); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); border-color: transparent; }
.brand { color: #fff; }
.brand img.brand-logo { height: 52px; width: auto; border-radius: 0; background: none; padding: 0; }
.brand-mark { background: var(--grad); color: #fff; font-family: var(--font-display); }
.brand-text strong { font: 700 1.3rem/1 var(--font-display); color: #fff; }
.brand-text strong em { font-style: normal; color: var(--brass); }
.brand-text strong b { color: var(--pine-2); font-weight: 700; }
.menu a, .menu button { color: #dfe3f5; }
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.sub a { color: var(--ink); }
.sub a:hover { color: var(--pine); background: var(--sand); }
.nav-phone { color: #fff; }
.burger { color: #fff; }
@media (max-width: 960px) {
  .menu-wrap { background: var(--pine-ink); }
  .menu a, .menu button { border-color: rgba(255,255,255,.1); }
  .sub a { color: #dfe3f5; }
}

/* ---------- Buttons */
.btn-brass { background: var(--grad-cta); color: #1b1300; box-shadow: 0 8px 20px -10px rgba(255,138,31,.8); }
.btn-brass:hover { filter: brightness(1.05); color: #1b1300; background: var(--grad-cta); }
.btn-pine { background: var(--pine-2); }
.btn-pine:hover { background: var(--pine); }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--pine-2); color: var(--pine); }

/* ---------- Home hero with search */
.hero-home { position: relative; min-height: min(86vh, 720px); display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; }
.hero-home .hero-media, .hero-home .hero-slider { position: absolute; inset: 0; z-index: -2; }
.hero-home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15,20,48,.88) 0%, rgba(15,20,48,.55) 50%, rgba(15,20,48,.2) 100%); }
.hero-home .hero-inner { padding: 90px 0 130px; max-width: 720px; }
.hero-home h1 { color: #fff; margin-bottom: 14px; }
.hero-home p.lead { color: #dde2f2; font-size: 1.15rem; max-width: 560px; }
.hero-caption { position: absolute; right: max(20px, calc((100% - var(--wrap)) / 2)); bottom: 120px; z-index: 2; text-align: right; font-size: .85rem; color: #dde2f2; }
.hero-caption strong { display: block; color: #fff; font-size: 1rem; }
@media (max-width: 760px) { .hero-caption { display: none; } .hero-home .hero-inner { padding: 60px 0 160px; } }

.searchbox { position: relative; z-index: 6; margin-top: -84px; }
.searchbox-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 10px 18px 18px; }
.search-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.search-tabs button { background: none; border: 0; padding: 12px 16px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; display: inline-flex; gap: 8px; align-items: center; }
.search-tabs button[aria-selected="true"] { color: var(--pine); border-color: var(--brass); }
.search-panel { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr auto; gap: 12px; align-items: end; }
.search-panel.pkg { grid-template-columns: 1.4fr 1fr 1fr auto; }
.search-panel[hidden] { display: none; }
.search-panel .btn { height: 48px; }
@media (max-width: 900px) { .search-panel, .search-panel.pkg { grid-template-columns: 1fr 1fr; } .search-panel .btn { grid-column: 1 / -1; } }

/* ---------- USP strip */
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.usp { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.usp .tile-icon { margin: 0; flex: none; background: rgba(20,163,154,.12); color: var(--pine); }
.usp strong { display: block; font-family: var(--font-display); font-weight: 600; }
.usp span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
@media (max-width: 980px) { .usps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usps { grid-template-columns: 1fr; } }

/* ---------- Section heads with "view all" */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.head-row p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

/* ---------- Destination tiles */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest-grid .dest:first-child { grid-column: span 2; grid-row: span 2; }
.dest { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 220px; color: #fff; text-decoration: none; isolation: isolate; background: var(--pine-ink); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.dest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(15,20,48,.88)); }
.dest:hover img { transform: scale(1.06); }
.dest-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; }
.dest-body h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.dest-body span { font-size: .85rem; color: #dde2f2; }
.dest-body .from { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: .8rem; color: #fff; }
.dest-grid .dest:first-child .dest-body h3 { font-size: 2rem; }
@media (max-width: 900px) { .dest-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dest-grid { grid-template-columns: 1fr; } .dest-grid .dest:first-child { grid-column: auto; grid-row: auto; } }

/* ---------- Hotel & package cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.hcard { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.hcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hcard-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); display: block; }
.hcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hcard:hover .hcard-media img { transform: scale(1.05); }
.hcard-badge { position: absolute; left: 12px; top: 12px; background: var(--pine-ink); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.hcard-badge.hot { background: var(--brass); color: #1b1300; }
.hcard-dur { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hcard-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hcard-loc { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hcard-body h3 { margin: 0; font-size: 1.12rem; }
.hcard-body h3 a { color: var(--ink); text-decoration: none; }
.hcard-body h3 a:hover { color: var(--pine); }
.hcard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard-chips span { font-size: .75rem; background: var(--sand); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.hcard-foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.hcard-price small { display: block; font-size: .74rem; color: var(--muted); }
.hcard-price strong { font: 700 1.3rem/1.1 var(--font-display); color: var(--ink); }
.hcard-price s { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.hcard-price .off { color: var(--ok); font-weight: 600; font-size: .78rem; margin-left: 4px; }
.hcard-actions { display: flex; gap: 6px; }
.includes { display: flex; gap: 12px; color: var(--muted); font-size: .74rem; }
.includes span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.includes svg { width: 20px; height: 20px; color: var(--pine); }
.route { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.stars-sm { color: var(--sun); font-size: .85rem; letter-spacing: 1px; }

/* ---------- Theme tiles + services */
.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.theme { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; transition: border-color .2s, transform .2s; }
.theme:hover { border-color: var(--pine-2); transform: translateY(-2px); color: var(--pine); }
.theme .tile-icon { margin: 0 auto 10px; background: var(--grad); color: #fff; }
@media (max-width: 900px) { .themes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.service { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; color: #fff; display: flex; align-items: flex-end; isolation: isolate; text-decoration: none; background: var(--pine-ink); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,20,48,.1) 20%, rgba(15,20,48,.9)); }
.service:hover img { transform: scale(1.05); }
.service div { padding: 20px; }
.service h3 { color: #fff; margin: 0 0 4px; }
.service p { color: #dde2f2; margin: 0; font-size: .92rem; }

/* ---------- Stats, steps */
.stats { background: var(--pine-ink); color: #fff; border-radius: 24px; padding: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(40px); }
.stats strong { display: block; font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--font-display); color: #fff; position: relative; }
.stats span { color: #c5cbe3; font-size: .9rem; position: relative; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; right: 18px; top: 14px; font: 700 2rem/1 var(--font-display); color: var(--sand); }
.step .tile-icon { background: rgba(255,138,31,.14); color: var(--brass-2); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .step::before { color: rgba(255,255,255,.12); }
.dark .step p { color: #c5cbe3; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Hoteliers teaser + dark sections */
.section.dark { background: var(--pine-ink); color: #dde2f2; }
.dark .tile-icon { background: rgba(20,163,154,.2); color: #5fe0d6; }
.hotelier-band { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hotelier-band { grid-template-columns: 1fr; } }

/* ---------- Listing page (filters + results) */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.filters h3 { font-size: 1rem; margin: 0; }
.filters .field label { font-size: .7rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .88rem; }
.filter-chips a.active, .filter-chips a:hover { background: var(--pine-ink); color: #fff; border-color: var(--pine-ink); }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------- Hotel / package detail */
.detail-head { padding: 28px 0 18px; }
.detail-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 6px 0; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .93rem; align-items: center; }
.crumbs.light { color: var(--muted); margin: 0; }
.crumbs.light a { color: var(--pine); }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.gallery-grid a { position: relative; display: block; overflow: hidden; background: var(--sand); }
.gallery-grid a:first-child { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .more { position: absolute; inset: 0; background: rgba(15,20,48,.55); color: #fff; display: grid; place-items: center; font-weight: 600; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; } .gallery-grid a:first-child { grid-column: span 2; grid-row: auto; } .gallery-grid a:nth-child(n+4) { display: none; } }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 28px 0 60px; }
.detail-nav { position: sticky; top: 76px; z-index: 5; background: var(--ivory); display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail-nav a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.detail-nav a:hover { color: var(--pine); border-color: var(--brass); }
.detail section { scroll-margin-top: 140px; margin-bottom: 34px; }
.detail section > h2 { font-size: 1.5rem; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.amenities li { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; }
.amenities svg { color: var(--pine-2); margin-top: 4px; }
.room { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.room img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.room-info { padding: 18px 0; }
.room-info h3 { margin: 0 0 6px; }
.room-buy { padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; border-left: 1px solid var(--line); min-width: 190px; text-align: right; }
.room-buy strong { font: 700 1.5rem/1 var(--font-display); }
.room-buy small { color: var(--muted); }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } .room-info { padding: 0 18px; } .room-buy { border-left: 0; border-top: 1px solid var(--line); align-items: stretch; text-align: left; } }
.side-card { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card .from { color: var(--muted); font-size: .85rem; }
.side-card .big { font: 700 2rem/1.1 var(--font-display); color: var(--ink); }
.side-card .field { margin-bottom: 12px; }
.side-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .side-card { position: static; } }
.itinerary { border-left: 2px dashed var(--line); margin-left: 14px; padding-left: 26px; }
.itin-day { position: relative; padding-bottom: 22px; }
.itin-day::before { content: attr(data-day); position: absolute; left: -45px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.itin-day h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.itin-day p { color: var(--muted); margin: 0 0 6px; }
.itin-day .chips { font-size: .82rem; }
.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inc-exc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.inc-exc li { display: flex; gap: 8px; }
.inc-exc .yes svg { color: var(--ok); }
.inc-exc .no svg { color: var(--danger); }
@media (max-width: 640px) { .inc-exc { grid-template-columns: 1fr; } }

/* ---------- Partner forms */
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: 600 .95rem var(--font-body); cursor: pointer; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Footer */
.prefooter { background: var(--grad); }
.prefooter p { color: #f1f3ff; }
.site-footer { background: var(--pine-ink); border-top: 1px solid rgba(255,255,255,.06); }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pay-logos span { background: #fff; color: var(--ink); border-radius: 6px; padding: 3px 8px; font-size: .72rem; font-weight: 700; }

/* ---------- Mobile bottom nav (EasyMyHoliday style: Home / Hotels / Tours / Chat / Book) */
@media (max-width: 760px) {
  .mobile-bar { grid-template-columns: repeat(4, 1fr) 1.3fr; }
  .mobile-bar a { color: var(--pine-ink); }
}

/* Booking bar with hotel picker */
.bookbar form.with-hotel { grid-template-columns: 1.6fr 1fr 1fr .6fr .6fr .6fr auto; }
@media (max-width: 1100px) { .bookbar form.with-hotel { grid-template-columns: 1fr 1fr 1fr; } .bookbar form.with-hotel .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .bookbar form.with-hotel { grid-template-columns: 1fr 1fr; } }

/* Side booking card: keep date inputs inside the card */
.side-card .two > * { min-width: 0; }
.side-card input[type="date"], .side-card select { padding: 10px 8px; font-size: .92rem; min-width: 0; }

/* Grid items must be allowed to shrink below their content (date inputs have a large intrinsic width) */
.field, .search-panel > *, .bookbar form > *, .form-grid > *, .usp > div, .hcard-body, .listing > * { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
@media (max-width: 560px) {
  .search-panel, .search-panel.pkg { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-panel .field:first-child { grid-column: 1 / -1; }
  .searchbox-card { padding: 6px 12px 14px; }
  .search-tabs button { padding: 10px 8px; font-size: .88rem; }
  .hero-home h1 { font-size: 2rem; }
}

/* ======================================================================
   Responsive pass (phone 320–560, tablet 561–960, laptop 961+)
   ====================================================================== */

/* 1. Two-column layouts: let the main column shrink (minmax(0,1fr)) so long content never widens the page */
.detail { grid-template-columns: minmax(0, 1fr) 360px; }
.listing { grid-template-columns: 270px minmax(0, 1fr); }
.checkout { grid-template-columns: minmax(0, 1fr) 380px; }
.room { grid-template-columns: 220px minmax(0, 1fr) auto; }
.hotelier-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
img, iframe, video { max-width: 100%; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; }

@media (max-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  /* price + booking card right after the photos, not at the very end */
  .detail > aside { order: -1; }
  .side-card { position: static; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .hotelier-band { grid-template-columns: minmax(0, 1fr); }
  .detail-nav { top: 66px; }
}
/* Tablet: booking card fields in one row */
@media (min-width: 561px) and (max-width: 960px) {
  .side-card form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; align-items: end; }
  .side-card .two { display: contents; }
  .side-card form .btn { grid-column: 1 / -1; }
  .side-card .bullets { display: flex; flex-wrap: wrap; gap: 6px 18px; }
}
@media (max-width: 900px) { .listing { grid-template-columns: minmax(0, 1fr); } }

/* 2. Collapsible filter panel on phones/tablets */
.filter-box > summary { display: none; }
@media (max-width: 900px) {
  .filter-box { margin-bottom: 16px; }
  .filter-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-weight: 600; }
  .filter-box > summary::-webkit-details-marker { display: none; }
  .filter-box > summary::after { content: "▾"; color: var(--muted); }
  .filter-box[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .filter-box[open] > summary::after { content: "▴"; }
  .filter-box .filters { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
  .filter-box .filters h3 { display: none; }
  .filter-box .badge-count { background: var(--brass); color: #1b1300; border-radius: 999px; font-size: .75rem; padding: 2px 8px; margin-left: 6px; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .filter-box .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-box .filters .btn, .filter-box .filters > a { grid-column: 1 / -1; }
}
/* chips scroll sideways on small screens instead of wrapping into many rows */
@media (max-width: 700px) {
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 4px; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips a { flex: none; }
}

/* 3. Header + announcement */
@media (max-width: 760px) {
  .announce { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; padding: 7px 12px; }
  .brand img.brand-logo { height: 44px; }
  .nav { height: 62px; gap: 10px; }
  .menu-wrap { inset: 62px 0 0 0; }
  .detail-nav { top: 62px; }
}

/* 4. Home page */
@media (max-width: 760px) {
  .hero-home { min-height: 0; }
  .hero-home .hero-inner { padding: 56px 0 120px; }
  .hero-home p.lead { font-size: 1rem; }
  .hero-dots { bottom: 100px; }
}
@media (max-width: 560px) {
  .hero-home h1 { font-size: 1.85rem; }
  .hero-home .btn-lg { padding: 12px 20px; font-size: .95rem; }
  .search-panel .field:nth-child(4) { grid-column: 1 / -1; }
  .usps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .usp { flex-direction: column; gap: 8px; padding: 14px; }
  .usp .tile-icon { width: 38px; height: 38px; border-radius: 10px; }
  .usp strong { font-size: .92rem; }
  .usp span { font-size: .8rem; }
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest-grid .dest:first-child { grid-column: 1 / -1; grid-row: auto; }
  .dest { min-height: 170px; }
  .dest-grid .dest:first-child { min-height: 220px; }
  .dest-body { padding: 12px 14px; }
  .dest-body h3 { font-size: 1.1rem; }
  .dest-grid .dest:first-child .dest-body h3 { font-size: 1.5rem; }
  .dest-body span { font-size: .75rem; }
  .dest-body .from { font-size: .72rem; padding: 3px 8px; }
  .themes .theme { padding: 16px 8px; font-size: .85rem; }
  .stats { padding: 24px 16px; }
  .step { padding: 20px 18px; }
  .head-row { margin-bottom: 18px; }
  .section { padding: 48px 0; }
}

/* 5. Cards: two per row on tablets, one per row on phones */
@media (min-width: 561px) and (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hcard-media { aspect-ratio: 16/10; }
}

/* 6. Hotel / package detail on phones */
@media (max-width: 560px) {
  .detail-head { padding: 18px 0 12px; }
  .detail-head h1 { font-size: 1.6rem; }
  .gallery-grid { grid-template-rows: 200px 100px; gap: 6px; }
  .detail section > h2 { font-size: 1.3rem; }
  .amenities { grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .88rem; }
  .room img { min-height: 0; aspect-ratio: 16/9; }
  .side-card { padding: 18px; }
  .itinerary { margin-left: 8px; padding-left: 22px; }
  .itin-day::before { left: -40px; width: 32px; height: 32px; }
  .page-hero { padding: 90px 0 48px; }
}

/* 7. Forms & misc */
@media (max-width: 560px) {
  .panel { padding: 18px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 10px 8px; }
  .prefooter .wrap { padding: 22px 0; }
  .prefooter .actions { width: 100%; }
  .prefooter .actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column; }
}
/* Very small phones (320–360) */
@media (max-width: 360px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .usps { grid-template-columns: 1fr; }
  .mobile-bar a { font-size: .68rem; }
  .hero-home h1 { font-size: 1.6rem; }
}
/* Large screens */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* Mobile menu fix: backdrop-filter on the header made it the containing block of the fixed slide-out menu,
   so the hidden menu (translated 100% right) widened every page to 2× the screen on phones. */
.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 960px) {
  .menu-wrap { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .menu-wrap.open { visibility: visible; transition: transform .25s, visibility 0s; }
}
/* Safety net: nothing may scroll the page sideways (clip keeps position: sticky working, unlike hidden) */
html, body { overflow-x: clip; }
@media (max-width: 360px) { .filter-chips { margin-inline: -14px; padding-inline: 14px; } }
.detail-nav { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.detail-nav::-webkit-scrollbar { display: none; }

/* Room rows: stack on phones (must come after the minmax() rule above) */
@media (max-width: 760px) {
  .room { grid-template-columns: minmax(0, 1fr); }
  .room-info { padding: 0 16px; }
  .room-buy { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; min-width: 0; }
  .room-buy .btn { margin-left: auto; }
}

/* Mobile menu: full-screen navy panel under the header bar; sub-links styled like the rest */
@media (max-width: 960px) {
  .menu-wrap { position: fixed; inset: 0; z-index: 1; padding: 96px 20px 120px; }
  .nav-cta, .brand { position: relative; z-index: 2; }
  .menu-wrap .sub { position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu-wrap .sub a { color: #dfe3f5; }
  .menu-wrap .sub a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .menu-wrap .menu a { font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}
