:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #0b1428;
    --muted: #5b6980;
    --line: #e4ebf3;
    --primary: #2463eb;
    --primary-ink: #ffffff;
    --primary-soft: rgba(36, 99, 235, 0.12);
    --price: #2463eb;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 18px;
    --tab: 72px;
    --max: 1120px;
}

html[data-palette="savanna"] {
    --primary: #c47a12;
    --primary-soft: rgba(196, 122, 18, 0.16);
    --price: #a8640c;
}

html[data-theme="dark"] {
    --bg: #0e1524;
    --surface: #172033;
    --ink: #f4f7fb;
    --muted: #a7b4c7;
    --line: #2a3852;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --primary-ink: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Manrope, "Segoe UI", sans-serif;
    line-height: 1.5;
    padding-bottom: calc(var(--tab) + 28px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Poppins, Manrope, sans-serif; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.4rem; }
p { margin: 0 0 0.7rem; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg);
    backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.logo__mark { width: 36px; height: 36px; display: grid; place-items: center; }
.logo__mark svg { width: 36px; height: 36px; fill: none; stroke: none; }
.logo__mark circle { fill: #f0b429; stroke: none; }
.logo__mark path { fill: none; stroke: #2463eb; stroke-width: 2.6; }
.site-footer .logo__mark path { stroke: #7aa2ff; }
.logo__word {
    font-weight: 800;
    letter-spacing: 0;
    font-size: 0.78rem;
    line-height: 1.15;
    max-width: 14rem;
    white-space: normal;
}
.phone-bar {
    margin: 0;
    padding: 0 12px 8px;
    text-align: center;
}
.phone-bar a {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}
.top-actions { flex: 0 0 auto; }
.icon-btn.hide-sm, .hide-sm { display: none; }
.desk-nav { display: none; gap: 6px; }
.desk-nav a { padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.desk-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn, .menu-btn, .wish, .gallery__nav, .sheet__bar button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    position: relative;
}
.icon-btn:hover, .menu-btn:hover { background: var(--primary-soft); color: var(--primary); }
.count {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--primary);
    color: white;
    border-radius: 99px;
    font-size: 10px;
    min-width: 16px;
    padding: 1px 4px;
}
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}

.flash {
    margin: 0 16px 8px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}
main { width: min(var(--max), calc(100% - 8px)); margin: 0 auto; }

.hero { text-align: center; padding: 12px 18px 6px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 800; }
.hero p { color: var(--muted); max-width: 38rem; margin-inline: auto; }
.trust { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.trust span, .chip, .campus-pill, .btn, .room, .info-card, .stay-card, .search-bar, .filters, .receipt, .host-card {
    background: var(--surface);
}
.trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.search-bar, .filters {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: left;
}
.search-bar__field, .filters label, .stack-form label, .book-card label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 10px 12px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.95rem;
}
textarea { resize: vertical; }
.btn {
    border: 0;
    cursor: pointer;
    background: var(--primary);
    color: var(--primary-ink);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-block { width: 100%; }
.search-bar__go svg { stroke: white; }

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 12px 4px;
    scroll-snap-type: x mandatory;
}
.rail, .landmark-rail, .campus-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 12px 4px;
    scroll-behavior: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar, .rail::-webkit-scrollbar, .landmark-rail::-webkit-scrollbar, .campus-row::-webkit-scrollbar { height: 0; display: none; }
.chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.chip:hover, .text-link:hover { color: var(--primary); }
.band { margin: 22px 0; }
.band__head, .title-row, .cta, .split-page, .cookie__actions, .choice-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    padding: 0 12px;
}
.kicker { color: var(--primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 4px; }
.text-link { color: var(--primary); font-weight: 800; white-space: nowrap; }
.stay-card {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.stay-card__media { display: block; height: 104px; background: #d7e3f2; }
.stay-card__media img, .gallery img, .landmark img { width: 100%; height: 100%; object-fit: cover; }
.stay-card__body { padding: 8px 8px 10px; }
.stay-card h3 {
    font-family: Manrope, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.loc, .muted, .rating-line { color: var(--muted); display: flex; align-items: center; gap: 4px; font-size: 0.92rem; }
.stay-card .loc { font-size: 0.72rem; }
.stay-card__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 4px; }
.price { margin: 0; color: var(--price); }
.price strong { font-size: 0.82rem; }
.price .usd { display: inline; color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.price span, .new-tag { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.rating { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.rating svg { fill: #f5b400; stroke: #f5b400; }
.wish {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #334155;
    display: grid;
    place-items: center;
}
.wish.is-on { color: #e11d48; }
.wish.is-on svg { fill: currentColor; }
.landmark {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    min-width: 0;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    color: white;
}
.landmark span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 12px 12px;
    background: linear-gradient(transparent, rgba(8, 15, 30, .8));
    display: grid;
}
.landmark em { font-style: normal; opacity: .85; font-size: .85rem; }
.campus-pill, .campus-card, .region-card, .info-card, .host-card, .receipt, .empty, .promise-list article, .promises article {
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.campus-pill { flex: 0 0 168px; width: 168px; min-width: 0; display: grid; padding: 12px; }
.campus-pill b, .campus-card b {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    margin-bottom: 8px;
}
.stats, .promises, .cta, .page-head { padding: 8px 12px 20px; }
.stat-grid, .promises, .region-grid, .campus-grid, .card-grid, .promise-list {
    display: grid;
    gap: 8px;
}
.stat-grid, .region-grid, .campus-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid, .region-grid, .campus-grid { padding: 0 12px 16px; }
.stat-grid article { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat-grid strong { display: block; font-size: 1.8rem; color: var(--primary); }
.cta, .empty {
    margin: 12px;
    background: var(--surface);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    align-items: center;
}
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.card-grid .stay-card { max-width: none; flex: none; width: 100%; }
.filters { margin: 0 12px 16px; }
.stack-form, .narrow { width: min(560px, 100%); }
.stack-form { display: grid; gap: 12px; padding: 0 12px 24px; }
.split-page { align-items: start; padding-bottom: 24px; }
.faq { display: grid; gap: 8px; padding: 0 12px 24px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; }
.legal-nav { display: flex; gap: 8px; overflow: auto; padding: 0 12px 12px; }
.legal-nav a { padding: 8px 12px; border-radius: 999px; background: var(--surface); font-weight: 700; }
.legal-nav a.is-active { background: var(--primary); color: white; }
.legal-copy, .prose { padding: 0 12px; }

.back-link { padding: 6px 12px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.gallery { padding: 0 12px; }
.gallery__hero { position: relative; border-radius: 18px; overflow: hidden; background: #d7e3f2; height: 210px; }
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: white;
    color: var(--ink);
}
.gallery__nav.prev { left: 10px; }
.gallery__nav.next { right: 10px; transform: translateY(-50%) scaleX(-1); }
.photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(11, 20, 40, .72);
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 700;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gallery__thumbs button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; height: 52px; cursor: pointer; }
.property-layout { display: grid; gap: 18px; padding: 16px 12px 90px; }
.property-layout h2 { margin-top: 22px; }
.amenity-list, .rules { list-style: none; padding: 0; display: grid; gap: 8px; }
.amenity-list { grid-template-columns: 1fr 1fr; }
.amenity-list li { display: flex; gap: 6px; align-items: center; }
.host-card { display: flex; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: white; font-weight: 800; }
.room-list { display: grid; gap: 8px; }
.room { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; cursor: pointer; }
.room em { display: block; color: var(--muted); font-style: normal; font-size: .88rem; }
.room b small { display: block; color: var(--muted); font-weight: 600; }
.book-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    align-self: start;
}
.price-lg strong { font-size: 1.6rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-book {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tab) + 8px);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    z-index: 25;
}
.mobile-book strong { color: var(--price); font-size: 1.05rem; }
.receipt dl { display: grid; gap: 8px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.booking-list { display: grid; gap: 8px; padding: 0 12px 20px; }
.booking-list a { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; box-shadow: var(--shadow); }

.site-footer { background: #0b1428; color: #d5deea; padding: 28px 16px 20px; margin-top: 20px; }
.footer-grid { display: grid; gap: 18px; }
.site-footer a, .site-footer p { color: #d5deea; display: block; margin: 0 0 6px; }
.site-footer h4 { margin: 0 0 8px; color: white; }
.footer-base { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 16px; padding-top: 12px; font-size: .85rem; }
.site-footer .logo__word { color: white; }
.stay-map { height: 200px; margin: 0 12px 12px; border-radius: 16px; overflow: hidden; background: #d7e3f2; z-index: 1; }
.stay-map .leaflet-control-attribution { font-size: 10px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; height: 110px; object-fit: cover; background: #0b1428; border-radius: 12px; }
.video-grid figcaption { font-size: 0.75rem; font-weight: 800; margin-top: 4px; }

.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--tab);
    background: var(--surface);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    z-index: 30;
}
.tabbar a, .tabbar button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}
.tabbar .is-active { color: var(--primary); }
.chat-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--tab) + 78px);
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: #ef6c2f;
    color: white;
    display: grid;
    place-items: center;
    z-index: 26;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(239, 108, 47, .35);
}
.chat-fab svg { width: 26px; height: 26px; stroke: white; }
.sheet[hidden] { display: none; }
.sheet {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 28, .45);
    z-index: 50;
    display: grid;
    align-items: end;
}
.sheet__panel {
    background: var(--surface);
    color: var(--ink);
    border-radius: 20px 20px 0 0;
    padding: 8px 8px 18px;
    display: grid;
    max-height: min(80vh, 640px);
    overflow: auto;
}
.sheet__panel a, .choice-row button {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}
.sheet__panel a:hover, .choice-row button { background: var(--primary-soft); color: var(--primary); }
.sheet__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.choice-row { padding: 0 8px 8px; }
.choice-row button { border: 0; background: var(--bg); cursor: pointer; }
.choice-row button.is-on { background: var(--primary-soft); color: var(--primary); }
.chat-log { display: grid; gap: 8px; padding: 8px; }
.chat-bubble { background: var(--bg); border-radius: 14px; padding: 10px 12px; margin: 0; }
.chat-bubble.mine { background: var(--primary-soft); }
.chat-form { display: flex; gap: 8px; padding: 8px; }
.cookie {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tab) + 12px);
    z-index: 40;
}
.cookie[hidden] { display: none; }
.cookie__card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.cookie__card h3 { display: flex; align-items: center; gap: 8px; }
.cookie__actions { padding: 0; }

@media (min-width: 800px) {
    .search-bar { grid-template-columns: 1fr auto; align-items: end; }
    .filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
    .stat-grid, .promises { grid-template-columns: repeat(4, 1fr); }
    .promises { grid-template-columns: repeat(3, 1fr); }
    .card-grid, .region-grid, .campus-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .rail, .landmark-rail, .campus-row { gap: 12px; }
    .stay-card { flex-basis: 280px; width: 280px; }
    .stay-card__media { height: auto; aspect-ratio: 16 / 10; }
    .stay-card__body { padding: 12px 14px 14px; }
    .stay-card h3 { font-size: 1.05rem; min-height: 0; display: block; -webkit-line-clamp: unset; overflow: visible; }
    .stay-card .loc { font-size: 0.92rem; }
    .price strong { font-size: 1.15rem; }
    .wish { top: 10px; right: 10px; width: 36px; height: 36px; }
    .landmark { flex-basis: 240px; width: 240px; height: 150px; }
    .campus-pill { flex-basis: 200px; width: 200px; }
    .topbar { gap: 12px; padding: 12px 16px; }
    .logo__word { max-width: 18rem; font-size: 1.02rem; }
    .phone-bar { text-align: left; padding-left: 16px; }
    .phone-bar a { font-size: 1.05rem; }
    .stay-map { height: 320px; }
    .video-grid video { height: 180px; }
    .icon-btn.hide-sm, .hide-sm { display: grid; }
    .gallery__hero { height: auto; aspect-ratio: 16 / 8; }
    .gallery__thumbs button { height: 84px; }
    .split-page { display: grid; grid-template-columns: 1.2fr .8fr; }
    .footer-grid { grid-template-columns: 1.4fr .8fr .8fr .8fr; }
    .property-layout { grid-template-columns: 1.4fr .8fr; }
    .book-card { position: sticky; top: 84px; }
    .mobile-book { display: none; }
    .site-footer .logo__word { color: #fff; max-width: 18rem; }
}
@media (min-width: 980px) {
    body { padding-bottom: 0; }
    .desk-nav { display: flex; }
    .tabbar { display: none; }
    .menu-btn { display: none; }
    .chat-fab { bottom: 22px; }
    .cookie { bottom: 22px; left: auto; width: min(460px, calc(100% - 32px)); }
    .sheet { align-items: start; justify-items: end; padding: 70px 18px; background: transparent; }
    .sheet__panel { width: min(360px, 100%); border-radius: 18px; box-shadow: var(--shadow); }
}

html[data-palette="bits"] {
    --primary: #1a4fdb;
    --primary-soft: rgba(26, 79, 219, 0.12);
    --price: #1a4fdb;
    --accent: #e10600;
    --bg: #f3f7fd;
    --ink: #0c1b3a;
    --line: #d5e2f2;
}
html[data-palette="bits"][data-theme="dark"] {
    --bg: #0c1730;
    --surface: #152445;
    --ink: #f4f7fb;
    --muted: #b7c4d8;
    --line: #2a3d62;
    --primary: #3b82f6;
    --primary-soft: rgba(59, 130, 246, 0.18);
    --accent: #ff4d4d;
}
.brand-stripe {
    height: 5px;
    background: linear-gradient(90deg, #e10600 0 22%, #1a4fdb 22% 100%);
}
html[data-palette="bits"] .kicker { color: var(--accent); }
html[data-palette="bits"] .phone-bar a { color: var(--primary); }
html[data-palette="bits"] .phone-bar span { color: var(--accent); font-weight: 800; }
html[data-palette="bits"] .text-link,
html[data-palette="bits"] .tabbar .is-active,
html[data-palette="bits"] .desk-nav a.is-active { color: var(--primary); }
html[data-palette="bits"] .site-footer {
    background: #0c1b4a;
    border-top: 5px solid #e10600;
}
html[data-palette="bits"] .btn { background: #1a4fdb; }
html[data-palette="bits"] .btn-ghost { background: rgba(225, 6, 0, 0.1); color: #c10500; }
html[data-palette="bits"] .hero h1,
html[data-palette="bits"] .page-head h1 { color: #0c1b3a; }
html[data-palette="bits"] .hero h1::after,
html[data-palette="bits"] .page-head h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin: 12px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #e10600 0 42%, #1a4fdb 42% 100%);
}
html[data-theme="dark"][data-palette="bits"] .hero h1,
html[data-theme="dark"][data-palette="bits"] .page-head h1 { color: #f4f7fb; }

main.container {
    width: min(var(--max), calc(100% - 8px));
    max-width: var(--max);
    padding-left: 0;
    padding-right: 0;
}
.phone-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
}
.logo__mark rect { fill: #0b1428; stroke: none; }
.logo__mark text, .logo__mark tspan { stroke: none; }
.logo__mark tspan:first-child { fill: #e11d2e; }
.logo__mark tspan:last-child { fill: #60a5fa; }
.site-footer .logo__mark rect { fill: #13203a; }
.site-footer .logo__mark tspan:last-child { fill: #93c5fd; }

.hero-split { text-align: center; }
.hero-frame {
    display: block;
    margin-top: 14px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #10192c;
}
.hero-frame img { width: 100%; height: 240px; object-fit: cover; object-position: center; }
.chip.is-on { background: var(--primary); color: #fff; }
.product-card .kicker { margin-bottom: 2px; }
.product-card h3 { min-height: 2.5em; }
.product-card .stay-card__media { background: #10192c; }
.product-card .stay-card__media img { object-fit: contain; object-position: center; }
.bits-grid { padding: 0 12px 20px; }
.bits-grid .product-card { flex: none; width: 100%; }
.bits-grid .product-card .stay-card__media { height: auto; aspect-ratio: 3 / 4; }
.gallery-tile {
    position: relative;
    display: block;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #10192c;
    color: #fff;
    box-shadow: var(--shadow);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: contain; }
.gallery-tile span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(8, 15, 30, .88));
    font-weight: 800;
    font-size: .85rem;
}
.service-card { height: 100%; overflow: hidden; padding: 0 0 16px; }
.service-card__media { display: block; height: 180px; background: #10192c; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.service-card h2, .service-card p { padding: 0 16px; }
.service-card h2 { margin-top: 14px; }
.product-hero { height: auto !important; aspect-ratio: 3 / 4; max-height: 760px; background: #10192c; }
.product-hero img { object-fit: contain; }
.form-control, .form-select {
    background-color: var(--bg);
    color: var(--ink);
    border-color: var(--line);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg);
    color: var(--ink);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--primary-soft);
}
.stack-form .form-label { display: grid; gap: 6px; }
.contact-grid .stack-form { width: 100%; max-width: none; padding: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.map-frame { margin: 4px 12px 28px; border-radius: 18px; overflow: hidden; background: #10192c; }
.landmark { background: #10192c; height: 168px; }
.landmark img { object-fit: cover; object-position: top; }
.about-split .hero-frame { margin-top: 0; }
.chat-fab { background: #16a34a; box-shadow: 0 8px 18px rgba(22, 163, 74, .35); }
.chat-fab svg { fill: none; stroke: #fff; }

@media (min-width: 800px) {
    .hero-split {
        display: grid;
        grid-template-columns: 1.05fr .95fr;
        gap: 22px;
        align-items: center;
        text-align: left;
        padding-top: 18px;
    }
    html[data-palette="bits"] .hero-split h1::after { margin-left: 0; }
    .hero-split .trust { justify-content: flex-start; }
    .hero-split p { margin-left: 0; margin-right: 0; }
    .hero-frame { margin-top: 0; }
    .hero-frame img { height: 340px !important; }
    .phone-bar { justify-content: flex-start; }
    .gallery-tile { height: 280px; }
    .landmark { height: 190px; }
}

.rail, .landmark-rail {
    display: block;
    overflow: hidden;
}
.rail-track {
    display: flex;
    width: max-content;
    animation: bits-slide var(--bits-duration, 36s) linear infinite;
}
.rail-set {
    display: flex;
    gap: 12px;
    padding-right: 12px;
}
.rail:hover .rail-track,
.landmark-rail:hover .rail-track,
.rail:focus-within .rail-track {
    animation-play-state: paused;
}
@keyframes bits-slide {
    from { transform: translateX(0); }
    to { transform: translateX(var(--bits-shift, -50%)); }
}
.product-card { flex: 0 0 220px; width: 220px; }
.product-card .stay-card__media,
.bits-grid .product-card .stay-card__media {
    display: block;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef3fb;
}
.product-card .stay-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.bits-grid .product-card { width: 100%; flex: none; }
.landmark {
    flex: 0 0 250px;
    width: 250px;
    height: 332px;
}
.landmark img,
.gallery-tile img,
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero-frame img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
}
.gallery-tile { height: auto; aspect-ratio: 3 / 4; }
.service-card__media { height: 240px; }
.product-hero {
    height: auto !important;
    aspect-ratio: auto !important;
    max-height: none;
    background: #eef3fb;
}
.product-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.theme-toggle { flex: 0 0 auto; color: #1a4fdb; }
.wa-top { color: #16a34a; }
.wa-top svg { stroke: #16a34a; }
.cart-add {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1a4fdb;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(12, 27, 58, 0.18);
    cursor: pointer;
}
.cart-add svg { width: 18px; height: 18px; stroke: #1a4fdb; }
.cart-line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
}
.cart-line img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef3fb;
}
.cart-line strong, .cart-line span { display: block; }
.cart-line span, .cart-empty { color: var(--muted); }
.cart-empty { padding: 4px 12px 12px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}
#cart-send { margin: 8px 10px 4px; }
@media (prefers-reduced-motion: reduce) {
    .rail, .landmark-rail { overflow-x: auto; }
    .rail-track { animation: none; }
}
