/* BNB Host v28: brand tokens, mobile-first header, book and club pages, accessibility.
   Loaded last, so it overrides site.css, home.css, club.css and chat.css. */
:root {
  --sand: #faf4ea; --paper: #fffdf8; --ink: #103a3e; --teal: #137074; --teal-deep: #103a3e;
  --coral: #ff6f61; --coral-ink: #a93226; --sun: #ffc94b; --mint: #cdeae2;
  --stone: #e6dcc8; --muted: #4a6063;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-accent: "Sofia Sans", "Segoe UI", sans-serif;
  --font-body: "Sofia Sans", "Segoe UI", sans-serif;
  --cl-teal: #137074; --cl-teal-d: #103a3e; --cl-teal-l: #cdeae2;
  --cl-coral: #ff6f61; --cl-sand: #faf4ea; --cl-ink: #103a3e; --cl-muted: #4a6063; --cl-line: #e6dcc8;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; }

/* --- Focus: visible on light and on dark ------------------------------- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.site-foot :focus-visible, .hh-why :focus-visible, .hh-club-card :focus-visible, .cl-head :focus-visible,
.btn:focus-visible, .hh-btn.coral:focus-visible, .cl-btn.coral:focus-visible { outline-color: var(--ink); }
.site-foot :focus-visible, .hh-why :focus-visible, .hh-club-card :focus-visible, .cl-head :focus-visible { outline-color: var(--sun); }
.cl-input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.skip-link { z-index: 120; }

/* --- Buttons: coral with ink text passes AA; white on coral does not --- */
.btn--coral {
  background: var(--coral); color: var(--ink); text-transform: none; letter-spacing: 0;
  font-size: 1rem; white-space: normal; text-align: center; min-height: 48px;
  box-shadow: 0 10px 24px rgba(255, 111, 97, .32);
}
.btn--coral:hover { background: #ff8378; color: var(--ink); box-shadow: 0 14px 30px rgba(255, 111, 97, .38); }
.btn--coral::after { color: var(--ink); }
.hh-btn { min-height: 44px; font-size: 14.5px; font-family: var(--font-body); }
.hh-btn.coral, .cl-btn.coral { background: var(--coral); color: var(--ink); font-weight: 800; }
.hh-btn.ghost { color: var(--ink); border-color: var(--teal); }
.cl-btn { min-height: 48px; font-size: 16px; font-weight: 700; }
.cl-btn.ghost { border-color: var(--teal); color: var(--ink); }
.cg-bd .hh-btn { padding: 10px 8px; font-size: 14px; }
.hh-club-badge, .hh-clubstrip .bdg { color: var(--ink); }
.chat-fab { color: var(--ink); }

/* --- Header + burger ---------------------------------------------------- */
.head-row { position: relative; gap: 14px; }
.site-nav { align-items: center; }
.site-nav a { font-size: 1rem; font-weight: 600; }
.nav-club { background: var(--teal); }
.nav-club::after { background: var(--sun); }
.lang-switch { min-height: 44px; min-width: 48px; margin-left: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 10px; border: 1.5px solid var(--teal); border-radius: 12px;
  background: transparent; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 901px) {
  .site-nav { display: flex; }
  .lang-switch { order: 3; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; order: 3; }
  .lang-switch { margin-left: auto; order: 2; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 20px 16px;
    flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper);
    border-bottom: 1px solid var(--stone); box-shadow: 0 16px 30px rgba(16, 58, 62, .14);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 6px; min-height: 44px; display: flex; align-items: center; }
  .site-nav .nav-club { justify-content: center; margin-top: 8px; padding: 14px 16px !important; }
}
@media (max-width: 430px) { .brand-sub { display: none; } }

/* --- Home --------------------------------------------------------------- */
.hh-kicker, .jn-kicker { color: var(--teal); }
.hh-title { font-size: clamp(25px, 4.6vw, 44px); font-weight: 600; }
.hh-title em { font-family: var(--font-body); font-weight: 500; color: var(--teal); }
.hh-h2 { font-size: clamp(21px, 3vw, 30px); font-weight: 600; }
.hh-sub, .hh-heads, .hh-about p { font-size: 16px; }
.hh-trust { font-size: 13px; }
.hcard-area { font-size: 12px; }
.hcard-name { font-size: 18px; font-weight: 600; }
.hcard-meta, .cg-meta { font-size: 14.5px; }
.hcard-night { color: var(--teal); font-size: 13.5px; }
.hcard-name, .cg-name { font-family: var(--font-display); }
.cg-name { font-size: 16.5px !important; font-weight: 600; }
.cg-name a, .hcard-name a { color: var(--ink); }
.cg-card, .hcard { height: 100%; }
.hh-grid .cg-row { align-items: stretch; }
.hprice { font-size: 13.5px; font-family: var(--font-body); }
.hh-club-l h2 { font-weight: 600; font-size: clamp(20px, 3vw, 28px); }
.hh-club-l .s { font-family: var(--font-body); font-style: normal; font-size: 16px; color: var(--mint); }
.hh-club-r b { font-size: 16px; font-weight: 600; color: var(--sun); min-width: 82px; }
.hh-club-r span, .hh-why-it p { font-size: 14.5px; }
.hh-why-it span { color: var(--sun); }
.hh-clubstrip .tx small { font-size: 13px; opacity: .9; }
.s4-clean { display: block; font-size: 13.5px; color: var(--muted); margin: 2px 0 8px; }
.s4-title { font-weight: 600; }
.fee-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.prop-title { font-size: clamp(25px, 4vw, 40px); }
.prop-highlight { background: var(--mint); color: var(--ink); }
.results-empty, .results-error { color: var(--ink); }

/* Singles in one even row, then the City Garden and Diamond groups */
.hh-frame { order: 2; }
.hh-frame.dm-frame { order: 3; }
@media (min-width: 1000px) { .hh-grid { grid-template-columns: repeat(4, 1fr); } }
.hh-grid .cg-row.dm { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .hh-grid .cg-row.dm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .hh-grid .cg-row.dm { grid-template-columns: 1fr; } }
.cg-name a { text-decoration: none; }
.cg-name a:hover, .hcard-name a:hover { text-decoration: underline; }
.cg-badge { color: var(--ink); box-shadow: 0 8px 20px rgba(255, 111, 97, .3); }
.cg-badge.dm { color: #fff; }

/* Tap targets and readable calendar */
.brand, .crumbs a, .desc-toggle { min-height: 44px; display: inline-flex; align-items: center; }
.nav-club { min-height: 44px; }
.bk-dates a { padding: 10px 2px; }
.s4-field input, .s4-field select { min-height: 32px; }
.cal-day .cal-price { font-size: .68rem; color: var(--teal); }
.cal-day--booked, .cal-day--past { color: #5f7274; }
.gallery:focus-visible { outline-offset: -3px; }
.cal-day--free { background: var(--mint); }
.cal-day--free .cal-price { color: var(--ink); }
.bookbar-row .btn::after { content: none; }
.bookbar-info strong span { opacity: 1 !important; color: var(--muted); font-weight: 500; white-space: nowrap; }
.pmap-hint { color: var(--muted); }
.bk-dates a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }

/* --- Sticky bottom bar on apartment and book pages ---------------------- */
@media (max-width: 900px) {
  .page-property, .page-book { padding-bottom: 76px; }
  .page-property .prop-cols { padding-bottom: 24px; }
  .page-property .chat-fab, .page-book .chat-fab { bottom: 86px; }
  .page-property .chat-win, .page-book .chat-win { bottom: 148px; }
  .bookbar-row { padding: 10px 16px; }
  .bookbar-row .btn { min-height: 48px; padding: 10px 22px; flex: none; }
  .bookbar-info { min-width: 0; }
  .bookbar-info strong { font-size: 1.02rem; color: var(--ink); line-height: 1.2; display: block; }
  .bookbar-info small { font-weight: 500; color: var(--muted); }
}

/* --- Book page ---------------------------------------------------------- */
.book-head h1 { font-size: clamp(23px, 4vw, 34px); margin: 0 0 14px; }
.bk-summary {
  display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 16px;
}
.bk-thumb { width: 120px; height: 92px; object-fit: cover; border-radius: 12px; }
.bk-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.bk-unit, .bk-dates { color: var(--muted); font-size: 1rem; }
.bk-dates b { color: var(--ink); }
.bk-dates a { margin-left: 6px; font-weight: 700; display: inline-block; padding: 4px 0; }
.bk-price { margin: 0; display: grid; gap: 5px; font-size: .98rem; }
.bk-price div { display: flex; justify-content: space-between; gap: 14px; }
.bk-price dt { color: var(--muted); }
.bk-price dd { margin: 0; font-weight: 600; white-space: nowrap; text-align: right; }
.bk-price .tot { border-top: 1.5px solid var(--stone); padding-top: 7px; margin-top: 2px; font-size: 1.14rem; }
.bk-price .tot dt { color: var(--ink); font-weight: 700; }
.bk-price .tot dd { font-weight: 800; }
.bk-price small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.bk-warn { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fde9e6; color: #7f2219; font-weight: 600; font-size: .98rem; }
.bk-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.bk-trust li { background: var(--mint); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: .9rem; font-weight: 600; }
.bk-h2 { font-size: clamp(18px, 2.6vw, 23px); margin: 26px 0 6px; scroll-margin-top: 84px; }
.book-note { margin: 0 0 12px; font-size: 1rem; }
.widget-shell { padding: 10px; min-height: 420px; }
.widget-shell iframe { display: block; width: 100%; border: 0; }
.bk-club {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 34px; padding: 15px 18px; min-height: 44px;
  border: 1.5px solid var(--teal); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper);
}
.bk-club:hover { background: #f1f8f6; }
.bk-club-t { display: flex; flex-direction: column; gap: 2px; font-size: .98rem; }
.bk-club-t span { color: var(--muted); }
.bk-club-go { margin-left: auto; color: var(--teal); font-size: 1.3rem; font-weight: 800; }
@media (max-width: 860px) {
  .bk-summary { grid-template-columns: auto 1fr; }
  .bk-price, .bk-warn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .book-wrap { padding-left: 12px; padding-right: 12px; }
  .bk-thumb { width: 84px; height: 70px; }
  .bk-summary { gap: 12px; padding: 12px; }
  .widget-shell { padding: 0; border-left: 0; border-right: 0; border-radius: 0; margin-left: -12px; margin-right: -12px; }
}

/* --- Club --------------------------------------------------------------- */
.cl-head h1 { font-size: clamp(20px, 3vw, 30px); font-weight: 600; }
.cl-head .sub { font-family: var(--font-body); font-style: normal; font-size: 17px; color: var(--sun); }
.cl-h1, .cl-h2 { font-weight: 600; }
.cl-h1 { font-size: clamp(20px, 3vw, 25px); color: var(--ink); }
.cl-h2 { font-size: 16px; color: var(--ink); }
.cl-h2 .i { color: var(--coral-ink); }
.cl-sub { font-family: var(--font-body); font-style: normal; font-size: 17px; color: var(--coral-ink); }
.cl-label { display: block; margin: 0 0 5px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cl-input { min-height: 48px; font-size: 16px; }
.cl-input.code { font-family: var(--font-body); font-weight: 700; }
select.cl-input { background: #fff; }
.cl-fine { font-size: 13.5px; }
.cl-fine a { font-weight: 700; }
.cl-pill, .cl-benef b { color: var(--coral-ink); }

.jn { padding-top: 22px; }
.jn-top { display: grid; grid-template-columns: 1.1fr minmax(320px, 430px); gap: 34px; align-items: start; }
.jn-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.jn-intro h1 { font-size: clamp(23px, 3.6vw, 36px); line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.jn-lead { margin: 0 0 20px; font-size: 18px; color: var(--muted); }
.jn-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.jn-steps li { counter-increment: s; position: relative; padding-left: 56px; min-height: 42px; }
.jn-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--ink);
  font: 700 16px var(--font-display);
}
.jn-steps b { display: block; font-size: 17px; }
.jn-steps span { color: var(--muted); font-size: 16px; line-height: 1.45; display: block; }
.jn-signin { padding: 22px; margin: 0; border: 1px solid var(--stone); }
.jn-h2 { font-size: 18px; margin: 0 0 14px; color: var(--ink); }
.jn-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--mint); font-size: 15px; font-weight: 600; }
.jn-google { margin-bottom: 4px; }
.cl-fine.legal { margin: 12px 0 0; padding: 0; }
.jn-benefits { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jn-benefits li { background: #fff; border: 1px solid var(--stone); border-radius: 16px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.jn-benefits b { font: 600 25px var(--font-display); color: var(--teal); }
.jn-benefits span { font-size: 15.5px; line-height: 1.4; color: var(--ink); }
@media (max-width: 860px) {
  .jn-top { grid-template-columns: 1fr; gap: 20px; }
  .jn-signin { order: -1; }
  .jn-intro { display: contents; }
  .jn-kicker { order: -3; margin: 0; }
  .jn-intro h1 { order: -2; margin: 0; }
  .jn-lead { order: -2; margin: 0; }
  .jn-benefits { grid-template-columns: 1fr; }
}

/* --- Terms and other legal text ------------------------------------------ */
.legal h1 { font-size: clamp(23px, 4vw, 32px); }
.legal h2 { font-size: 17px; margin: 24px 0 6px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 5px; }
.legal p { margin: 0 0 10px; }

/* --- Club popup: centred on desktop, bottom sheet on phones ---------------- */
.club-pop {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto;
  padding: 24px 22px 14px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 70px rgba(16, 58, 62, .35);
}
.club-pop::backdrop { background: rgba(16, 58, 62, .55); }
.club-pop-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 18px; cursor: pointer;
}
.club-pop-x:hover { background: var(--mint); }
.club-pop-kicker { margin: 0 44px 6px 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.club-pop h2 { margin: 0 0 14px; font-size: clamp(18px, 5vw, 23px); line-height: 1.22; }
.club-pop h2:focus { outline: none; }
.club-pop-steps { list-style: none; counter-reset: p; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.club-pop-steps li { counter-increment: p; position: relative; padding-left: 44px; min-height: 34px; line-height: 1.3; }
.club-pop-steps li::before {
  content: counter(p); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--mint); font: 700 14px var(--font-display);
}
.club-pop-steps b { display: block; font-size: 16px; }
.club-pop-steps span { display: block; font-size: 15px; color: var(--muted); }
.club-pop-perks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.club-pop-perks li { background: var(--sand); border: 1px solid var(--stone); border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 600; }
.club-pop .cl-pop-cta { display: flex; width: 100%; }
.club-pop-later {
  display: block; width: 100%; min-height: 44px; margin-top: 2px; border: 0; background: transparent;
  color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.club-pop-fine { margin: 0; text-align: center; font-size: 13.5px; }
.club-pop-fine a { display: inline-block; padding: 6px 4px; }
@media (max-width: 600px) {
  .club-pop {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- v29: extras with member prices ------------------------------------------ */
.addons-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--stone); border-radius: 14px; overflow: hidden; font-size: 15.5px; line-height: 1.3; }
.addons-tbl th, .addons-tbl td { padding: 10px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--stone); }
.addons-tbl thead th { border-top: 0; font-size: 13.5px; font-weight: 800; color: var(--muted); background: var(--sand); }
.addons-tbl thead th.m { background: var(--teal); color: #fff; }
.addons-tbl tbody th { font-weight: 500; }
.addons-tbl td { white-space: nowrap; font-weight: 700; }
.addons-tbl td.m { white-space: normal; background: #eef8f5; font-weight: 500; width: 36%; }
.addons-tbl td.m.better { font-weight: 800; }
.addons-join {
  display: block; margin: 10px 0 0; padding: 13px 15px; border-radius: 14px; background: var(--mint); color: var(--ink);
  text-decoration: none; font-size: 16px; line-height: 1.35;
}
.addons-join:hover { background: #bde3d8; }
.addons-join b { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.bk-club-t .bk-club-perks { color: var(--ink); font-weight: 700; }
.gal-unit { font-size: 17px; margin: 18px auto 8px; }
@media (max-width: 480px) {
  .addons-tbl { font-size: 14.5px; }
  .addons-tbl th, .addons-tbl td { padding: 9px 8px; }
}

/* --- v30: the form is usable before the resizer runs (it can lag some seconds) --- */
.widget-shell iframe { min-height: 1450px; }
@media (max-width: 767px) { .widget-shell iframe { min-height: 2450px; } }

/* --- v31 --- */
.gal-count { pointer-events: auto; cursor: pointer; }
.cmsg.typing { letter-spacing: .2em; opacity: .7; }

.ad-chatlog-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.ad-chatlog-filter label { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; font-weight: 700; }
.ad-chatlog .cl-card { display: flex; flex-direction: column; gap: 4px; }
.ad-handover { font-size: 13.5px; font-weight: 700; color: var(--coral-ink); }
.ad-handover.team { color: var(--teal); }
.ad-transcript { margin-top: 8px; border-top: 1px solid var(--stone); padding-top: 8px; }
.ad-transcript p { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--sand); overflow-wrap: anywhere; }
.ad-transcript p.bot { background: var(--mint); }
.ad-transcript p.host { background: #fde9e6; }
.ad-chatlog .cl-card a[id] { scroll-margin-top: 96px; }
