/* =========================================================
   หอพักสุขสบาย — Modern clean theme
   ========================================================= */
:root {
    --brand: #0ea5e9;
    --brand-2: #2563eb;
    --brand-grad: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --ink: #0b1324;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --tint: #f3f8fd;
    --card: #fff;
    --ok: #16a34a;
    --warn: #ea580c;
    --off: #64748b;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
    --shadow: 0 2px 4px rgba(11, 19, 36, .04), 0 12px 32px -8px rgba(11, 19, 36, .12);
    --shadow-lg: 0 24px 60px -12px rgba(11, 19, 36, .25);
    --nav-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0;
    font-family: "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: "Prompt", "Noto Sans Thai", sans-serif; color: var(--ink); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .55); }
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(37, 99, 235, .65); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-soft { background: #e0f2fe; color: var(--brand-2); }
.btn-soft:hover { background: #bae6fd; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* ---------- Navbar ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
    color: #fff;
    transition: background .3s, box-shadow .3s, color .3s;
}
.nav.scrolled, .nav.open {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(11, 19, 36, .08);
    color: var(--ink);
}
.nav-inner { height: 100%; width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 2px; }
.nav-brand span { display: grid; line-height: 1.15; }
.nav-brand strong { font-family: "Prompt"; font-size: 1.1rem; font-weight: 600; }
.nav-brand small { font-size: .78rem; opacity: .75; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; opacity: .9; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: min(92vh, 860px);
    display: flex; align-items: flex-end;
    color: #fff; overflow: hidden; isolation: isolate;
    padding: calc(var(--nav-h) + 40px) 0 56px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 15, 35, .55) 0%, rgba(8, 15, 35, 0) 28%),
        linear-gradient(20deg, rgba(8, 15, 35, .92) 8%, rgba(8, 15, 35, .55) 45%, rgba(14, 165, 233, .12) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { max-width: 1200px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px); font-size: .9rem; font-weight: 500;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin: 18px 0 12px; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34em; opacity: .92; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts {
    display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius); width: fit-content; max-width: 100%;
}
.hero-facts > div { padding: 16px 28px; }
.hero-facts > div + div { border-left: 1px solid rgba(255, 255, 255, .18); }
.hero-facts dt { font-size: .82rem; opacity: .75; }
.hero-facts dd { white-space: nowrap; margin: 0; font-family: "Prompt"; font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-facts small { font-size: .85rem; font-weight: 400; opacity: .8; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Highlights ---------- */
.highlights { padding: 0; position: relative; z-index: 2; }
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); margin-top: -36px;
}
.feature { background: #fff; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe); color: var(--brand-2);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2, .amenities h2, .contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.kicker { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--brand-2); margin-bottom: 8px; letter-spacing: .02em; }
.kicker.light { color: #bae6fd; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px;
    font-weight: 500; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center;
    transition: all .2s var(--ease);
}
.chip span { background: var(--tint); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.chip:hover { border-color: #93c5fd; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active span { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Room cards ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.room-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid rgba(11, 19, 36, .04);
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card.is-filtered { display: none; }
.room-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--tint); overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room-card:hover .room-media img { transform: scale(1.06); }
.room-media .no-photo { display: grid; place-items: center; height: 100%; color: #94a3b8; }
.room-media .no-photo .icon { width: 40px; height: 40px; }
.status-occupied .room-media img { filter: grayscale(.85) brightness(.95); }
.status-occupied .room-body { opacity: .7; }

.badge {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; background: #fff; box-shadow: var(--shadow-sm);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-vacant { color: var(--ok); }
.badge-reserved { color: var(--warn); }
.badge-occupied { color: var(--off); }
.photo-count {
    position: absolute; right: 12px; bottom: 12px; color: #fff; font-size: .82rem; font-weight: 500;
    background: rgba(11, 19, 36, .6); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px;
    display: inline-flex; gap: 6px; align-items: center;
}

.room-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.type { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.type-air { background: #e0f2fe; color: #0369a1; }
.type-fan { background: #fef3c7; color: #92400e; }
.room-body h3 { font-size: 1.35rem; font-weight: 600; }
.room-alias { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.room-specs { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; color: var(--muted); font-size: .9rem; }
.room-specs:empty { display: none; }
.room-specs li { display: inline-flex; align-items: center; gap: 6px; }
.room-desc { margin: 0; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { margin: 0; color: var(--muted); font-size: .9rem; }
.price strong { font-family: "Prompt"; font-size: 1.5rem; color: var(--ink); font-weight: 600; margin-right: 2px; }

.filter-empty, .empty-state { text-align: center; color: var(--muted); padding: 40px; }
.empty-state { border: 2px dashed var(--line); border-radius: var(--radius); display: grid; justify-items: center; gap: 12px; }
.empty-state > .icon { width: 44px; height: 44px; color: #94a3b8; }
.empty-state p { margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; border: 1px solid rgba(11, 19, 36, .04); }
.price-card.featured { background: var(--ink); color: #cbd5e1; }
.price-card.featured h3, .price-card.featured .price-big strong { color: #fff; }
.price-card.featured .price-icon { background: rgba(255, 255, 255, .1); color: #7dd3fc; }
.price-card.featured .checks .icon { color: #7dd3fc; }
.price-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #e0f2fe; color: var(--brand-2); margin-bottom: 18px; }
.price-icon .icon { width: 26px; height: 26px; }
.price-card h3 { font-size: 1.25rem; font-weight: 600; }
.price-big { margin: 6px 0 20px; }
.price-big strong { font-family: "Prompt"; font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-right: 4px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--brand); margin-top: .25em; }
.checks-2col { grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 24px; }

.utility-list { margin: 16px 0 0; display: grid; gap: 0; }
.utility-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.utility-list > div:last-child { border-bottom: 0; }
.utility-list dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.utility-list dt .icon { color: var(--brand); }
.utility-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.note { margin: 14px 0 0; font-size: .88rem; color: var(--muted); background: var(--tint); padding: 10px 14px; border-radius: var(--radius-sm); }

/* ---------- Bento (common areas) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.tile { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); text-align: left; }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile.c4-2 { grid-column: span 2; }
.tile.c4-3 { grid-column: span 3; }
.tile.c4-4 { grid-column: span 4; }
.tile.r4-2 { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 15, 35, .78)); }
.tile-label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.tile-label strong { font-family: "Prompt"; font-weight: 600; font-size: 1.1rem; }
.tile:first-child .tile-label strong { font-size: 1.5rem; }
.tile-label small { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.amenities-photo { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; transform: rotate(1.5deg); transition: transform .4s var(--ease); }
.amenities-photo:hover { transform: rotate(0) scale(1.02); }
.amenities-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
    border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); color: #e0f2fe;
    background: radial-gradient(circle at 100% 0%, rgba(14, 165, 233, .5), transparent 55%), linear-gradient(135deg, #1e3a8a, #0b1324);
    position: relative; overflow: hidden;
}
.contact-card h2 { color: #fff; }
.contact-card > p { margin: 8px 0 24px; opacity: .85; }
.contact-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.contact-btn {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-weight: 600;
    transition: background .2s, transform .2s var(--ease);
}
.contact-btn:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.contact-btn .icon { color: #7dd3fc; }
.address { display: flex; gap: 8px; align-items: flex-start; margin: 24px 0 0; opacity: .85; font-size: .95rem; }
.address .icon { margin-top: .25em; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); background: var(--tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .nav-brand { color: var(--ink); }
.footer p { margin: 0; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 22, .96); color: #fff;
    display: grid; grid-template-rows: auto 1fr auto;
    animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.lb-top > div { flex: 1; min-width: 0; }
.lb-top h3 { color: #fff; font-size: 1.15rem; font-weight: 600; }
.lb-top p { margin: 0; font-size: .9rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { font-variant-numeric: tabular-nums; opacity: .7; font-size: .9rem; }
.lb-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
    background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 76px; touch-action: pan-y; }
.lb-stage figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.lb-stage img { max-height: calc(100% - 40px); max-width: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lb-stage img.loading { opacity: .3; }
.lb-stage img { transition: opacity .2s; }
.lb-stage figcaption { font-size: .95rem; opacity: .85; min-height: 1.5em; text-align: center; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-bottom { display: flex; align-items: center; gap: 16px; padding: 14px 20px 20px; }
.lb-thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .5; background: none; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.active, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button.active { border-color: var(--brand); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr 1fr; }
    .price-card.utility { grid-column: 1 / -1; }
    .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
    .tile[class*=" c4-"], .tile[class*=" r4-"] { grid-column: auto; grid-row: auto; }
    .tile.c3-2 { grid-column: span 2; }
    .tile.c3-3 { grid-column: span 3; }
    .tile.r3-2 { grid-row: span 2; }
    .amenities, .contact { grid-template-columns: 1fr; gap: 32px; }
    .amenities-photo { transform: none; }
}

@media (max-width: 760px) {
    :root { --nav-h: 60px; }
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
        flex-direction: column; gap: 0; padding: 8px 16px 16px;
        background: #fff; color: var(--ink); box-shadow: 0 20px 30px -10px rgba(11, 19, 36, .2);
        transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
        transition: transform .25s var(--ease), opacity .2s;
    }
    .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }

    .hero { min-height: 88vh; padding-bottom: 40px; }
    .hero-facts { width: 100%; }
    .hero-facts > div { flex: 1 1 auto; padding: 12px; }
    .hero-facts dd { font-size: 1.05rem; }
    .hero-facts small { font-size: .75rem; }

    .feature-grid { grid-template-columns: 1fr; margin-top: 24px; }
    .feature { padding: 18px 20px; }
    .highlights { padding-top: 0; }

    .room-grid { grid-template-columns: 1fr; }
    .chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .chip { flex: none; }
    .price-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
    .tile:first-child { grid-column: span 2; grid-row: span 2; }
    .tile[class*=" c4-"], .tile[class*=" r4-"], .tile[class*=" c3-"], .tile[class*=" r3-"] { grid-column: auto; grid-row: auto; }
    .tile.c2-2 { grid-column: span 2; }
    .checks-2col { grid-template-columns: 1fr; }
    .map { min-height: 300px; }

    .footer { padding-bottom: 96px; }
    .mobile-bar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
        padding: 8px; border-radius: 18px;
        background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px -6px rgba(11, 19, 36, .3);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--tint); }
    .mobile-bar .mb-call { background: var(--brand-grad); color: #fff; }

    .lb-stage { padding: 0; }
    .lb-prev, .lb-next { display: none; }
    .lb-stage img { border-radius: 0; }
    .lb-bottom { flex-direction: column; align-items: stretch; }
    .lb-bottom .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
