/* BedsKingKong · friendly layer (October 2026).
   Loaded last on the app only. Brand blue (#207ACE) calls to action, the brand dark (#19232B) for
   headers and dark blocks, gold kept as a small accent; softer cards, calmer fields, a flat bottom bar
   and a photo-first home. Colours come from the --px-* tokens, so light and dark themes keep working. */

html body.app-site {
  --bf-r-card: 16px;
  --bf-r-field: 12px;
  --bf-r-btn: 12px;
  --bf-shadow: 0 18px 40px -22px rgb(25 35 43 / 45%);
  --bf-shadow-soft: 0 8px 24px -18px rgb(25 35 43 / 40%);
  --bf-card: var(--px-surface, #fff);
  /* Button fill one step darker than brand blue #207ACE so white text passes WCAG AA (5.4:1). */
  --bf-cta: #1b6cb8;
  --bf-cta-hover: #165a99;
  --bf-cta-ink: #fff;
  --bf-blue-tint: rgb(32 122 206 / 12%);
}
/* The theme lives on <html data-bs-theme>, set before the first paint by theme-boot.js. */
html[data-bs-theme="dark"] body.app-site { --bf-shadow: 0 18px 40px -22px #000; --bf-shadow-soft: 0 8px 24px -18px #000; --bf-blue-tint: rgb(108 178 240 / 16%); --bf-cta-hover: #1f78c9; }
/* Light theme: blue text/links and the teal of small titles one step darker, to pass WCAG AA on light backgrounds. */
html:not([data-bs-theme="dark"]) body.app-site { --px-teal: #0f766e; --px-blue: #1b6cb8; }
/* "How it works" step numbers: still muted grey, but the theme's secondary text grey (the lighter grey was 2.47:1). */
html body.app-site.bkk-international .landing-process article:nth-child(n) .landing-step-number { opacity: 1 !important; color: var(--px-muted) !important; }
/* Join form steps on phones: inactive step names stay readable by screen readers (they were display:none). */
@media (max-width: 767.98px) {
  html body.app-site .hj-steps button { position: relative; }
  html body.app-site .hj-steps button:not([aria-current]) > span:last-child {
    display: inline !important; position: absolute !important; width: 1px !important; height: 1px !important;
    margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
  }
}

/* ---------- Calls to action: one brand-blue primary everywhere ---------- */
html body.app-site .btn-primary,
html body.app-site .btn-ink,
html body.app-site .nx-btn-primary,
html body.app-site .landing-primary,
html body.app-site .px-btn-light {
  background: var(--bf-cta) !important;
  border-color: var(--bf-cta) !important;
  color: var(--bf-cta-ink) !important;
  border-radius: var(--bf-r-btn);
  font-weight: 600;
  box-shadow: 0 10px 22px -14px rgb(32 122 206 / 65%);
  transition: background-color var(--px-fast) var(--px-ease), transform var(--px-fast) var(--px-ease), box-shadow var(--px-fast) var(--px-ease);
}
html body.app-site .btn-primary:hover,
html body.app-site .btn-ink:hover,
html body.app-site .nx-btn-primary:hover,
html body.app-site .landing-primary:hover,
html body.app-site .px-btn-light:hover,
html body.app-site .btn-primary:focus-visible,
html body.app-site .btn-ink:focus-visible,
html body.app-site .nx-btn-primary:focus-visible {
  background: var(--bf-cta-hover) !important;
  border-color: var(--bf-cta-hover) !important;
  color: var(--bf-cta-ink) !important;
}
html body.app-site .btn-primary:active,
html body.app-site .btn-ink:active,
html body.app-site .nx-btn-primary:active,
html body.app-site .landing-primary:active { transform: translateY(1px); box-shadow: none; }
html body.app-site .btn-primary:disabled,
html body.app-site .btn-ink:disabled,
html body.app-site .nx-btn-primary:disabled { background: var(--px-line) !important; border-color: var(--px-line) !important; color: var(--px-muted) !important; box-shadow: none; }
/* Same brand blue in the dark theme, where older rules repaint these buttons with !important. */
html[data-bs-theme] body.app-site .btn-primary:not(:disabled),
html[data-bs-theme] body.app-site .btn-ink:not(:disabled),
html[data-bs-theme] body.app-site .stay-actions .btn-ink:not(:disabled),
html[data-bs-theme] body.app-site .nx-btn-primary:not(:disabled),
html[data-bs-theme] body.app-site .landing-primary,
html[data-bs-theme] body.app-site .px-btn-light {
  background: var(--bf-cta) !important;
  border-color: var(--bf-cta) !important;
  color: var(--bf-cta-ink) !important;
}
html[data-bs-theme] body.app-site .btn-primary:not(:disabled):hover,
html[data-bs-theme] body.app-site .btn-ink:not(:disabled):hover,
html[data-bs-theme] body.app-site .nx-btn-primary:not(:disabled):hover,
html[data-bs-theme] body.app-site .landing-primary:hover,
html[data-bs-theme] body.app-site .px-btn-light:hover { background: var(--bf-cta-hover) !important; border-color: var(--bf-cta-hover) !important; }
html body.app-site .btn { border-radius: var(--bf-r-btn); }
html body.app-site .px-btn-glass { border: 1.5px solid rgb(255 255 255 / 45%); background: transparent; color: #fff; border-radius: var(--bf-r-btn); }
html body.app-site .px-btn-glass:hover { background: rgb(255 255 255 / 12%); color: #fff; }

/* ---------- Fields: tinted background, clear focus ---------- */
html body.app-site .form-control,
html body.app-site .form-select {
  min-height: 48px;
  border: 1.5px solid var(--px-line);
  border-radius: var(--bf-r-field);
  background-color: var(--px-bg);
  color: inherit;
  transition: border-color var(--px-fast) var(--px-ease), box-shadow var(--px-fast) var(--px-ease), background-color var(--px-fast) var(--px-ease);
}
html body.app-site .form-control:hover,
html body.app-site .form-select:hover { border-color: color-mix(in srgb, var(--px-blue) 45%, var(--px-line)); }
html body.app-site .form-control:focus,
html body.app-site .form-select:focus {
  border-color: var(--px-blue);
  background-color: var(--bf-card);
  box-shadow: 0 0 0 4px var(--bf-blue-tint);
}
html body.app-site .form-label { font-size: .8125rem; font-weight: 600; color: var(--px-muted); margin-bottom: 6px; }
html body.app-site .form-control.is-invalid,
html body.app-site .was-validated .form-control:invalid { border-color: var(--px-err); }
html body.app-site .stay-field { border-radius: var(--bf-r-field); transition: border-color var(--px-fast) var(--px-ease), background-color var(--px-fast) var(--px-ease); }
html body.app-site .stay-field:focus-within { border-color: var(--px-blue); box-shadow: 0 0 0 4px var(--bf-blue-tint); }

/* ---------- Cards: soft edges, gentle lift where a pointer can hover ---------- */
html body.app-site .card-bkk,
html body.app-site .nx-stay,
html body.app-site .mx-card,
html body.app-site .mx-quick,
html body.app-site .mx-person,
html body.app-site .mx-stat,
html body.app-site .hc-card,
html body.app-site .bt-card,
html body.app-site .chat-conversation,
html body.app-site .chat-inbox {
  border-radius: var(--bf-r-card);
  border: 1px solid var(--px-line);
  background-color: var(--bf-card);
  box-shadow: var(--bf-shadow-soft);
}
html body.app-site .nx-stay { overflow: hidden; transition: transform 250ms var(--px-ease), box-shadow 250ms var(--px-ease); }
html body.app-site .nx-stay-media img { transition: transform 500ms var(--px-ease); }
@media (hover: hover) {
  html body.app-site .nx-stay:hover { transform: translateY(-4px); box-shadow: var(--bf-shadow); }
  html body.app-site .nx-stay:hover .nx-stay-media img { transform: scale(1.05); }
  html body.app-site .mx-quick:hover { box-shadow: var(--bf-shadow); }
}
html body.app-site .nx-stay-price strong,
html body.app-site .nx-stay-price b { color: #a8730a; }
html[data-bs-theme="dark"] body.app-site .nx-stay-price strong,
html[data-bs-theme="dark"] body.app-site .nx-stay-price b { color: var(--px-gold); }

/* ---------- Headings and section rhythm ---------- */
html body.app-site .landing-section-heading h2,
html body.app-site .mx-welcome h1,
html body.app-site .explore-heading h1 { font-weight: 700; letter-spacing: -.02em; }
html body.app-site .landing-section-heading h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
html body.app-site .landing-eyebrow,
html body.app-site .mx-eyebrow { letter-spacing: .08em; }

/* ---------- Bottom bar (phones): flat, full width, blue when active ---------- */
html body.app-site nav.bkk-bottom {
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: auto !important; max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--px-line) !important;
  background: var(--bf-card) !important;
  box-shadow: 0 -8px 24px -20px rgb(25 35 43 / 50%);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
html body.app-site nav.bkk-bottom a {
  flex: 1;
  gap: 3px;
  min-height: 52px;
  border-radius: 12px;
  background: transparent;
  color: var(--px-muted);
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
}
html body.app-site nav.bkk-bottom a[aria-current] { background: transparent; color: var(--px-blue); font-weight: 600; }
html body.app-site nav.bkk-bottom a[aria-current] svg { background: var(--bf-blue-tint); border-radius: 999px; padding: 2px 12px; box-sizing: content-box; }
html body.app-site nav.bkk-bottom a:active { background: var(--bf-blue-tint); }

/* ---------- Home: photo first, search card on top of its edge ---------- */
html body.app-site .landing-intro > .px-hero { order: 0 !important; }
html body.app-site .landing-intro > .px-search-dock { order: 1 !important; }
html body.app-site .landing-intro > .bf-trust { order: 2; }
html body.app-site .px-hero::before {
  background:
    linear-gradient(100deg, rgb(25 35 43 / 95%) 18%, rgb(25 35 43 / 62%) 60%, rgb(25 35 43 / 35%) 100%),
    linear-gradient(0deg, rgb(25 35 43 / 70%) 0%, rgb(25 35 43 / 0%) 40%);
}
html body.app-site .px-search-dock .stay-form {
  border-radius: 18px;
  border: 1px solid var(--px-line);
  background: var(--bf-card);
  box-shadow: var(--bf-shadow);
}
/* Phones: the offer form always comes first (it is what people open the app for); the photo hero follows. */
@media (max-width: 991.98px) {
  html body.app-site .landing-intro { display: flex; flex-direction: column; }
  html body.app-site .landing-intro > .px-search-dock { order: 0 !important; position: relative; z-index: 2; margin: 16px auto 0 !important; }
  html body.app-site .landing-intro > .px-hero { order: 1 !important; }
  html body.app-site .landing-intro > .bf-trust { order: 2; }
  html body.app-site .px-hero {
    min-height: 0;
    margin: 24px 16px 0;
    border-radius: 24px;
  }
  html body.app-site .px-hero-inner { padding-top: 32px; padding-bottom: 36px; }
  html body.app-site .px-hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  html body.app-site .px-hero-place { display: none; }
  html body.app-site .px-hero-actions { display: none; }
}

/* Trust strip */
html body.app-site .bf-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 8px;
  list-style: none;
}
html body.app-site .bf-trust li { display: flex; gap: 12px; align-items: center; font-size: .86rem; color: var(--px-muted); }
html body.app-site .bf-trust strong { display: block; color: var(--px-text, inherit); font-size: .92rem; font-weight: 600; }
html body.app-site .bf-trust-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bf-blue-tint); color: var(--px-blue); }
html body.app-site .bf-trust-icon svg { width: 20px; height: 20px; }
@media (max-width: 575.98px) {
  html body.app-site .bf-trust { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding-top: 24px; }
  html body.app-site .bf-trust li { align-items: flex-start; flex-direction: column; gap: 8px; font-size: .8rem; }
}

/* Travel styles */
html body.app-site .bf-styles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html body.app-site .bf-style { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 3.6; border-radius: var(--bf-r-card); background: var(--px-navy); color: #fff; text-decoration: none; }
html body.app-site .bf-style img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--px-ease); }
html body.app-site .bf-style::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(25 35 43 / 85%)); }
html body.app-site .bf-style span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-weight: 600; font-size: 1rem; }
html body.app-site .bf-style small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }
html body.app-site .bf-style:focus-visible { outline: 3px solid var(--px-gold); outline-offset: 3px; }
@media (hover: hover) { html body.app-site .bf-style:hover img { transform: scale(1.06); } }
@media (max-width: 991.98px) { html body.app-site .bf-styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* How it works: an illustrated tile per step, a gold number on it and a dashed path joining them */
html body.app-site .landing-process { gap: 28px; }
html body.app-site .landing-process article,
html body.app-site .landing-process article:nth-child(n) {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.app-site .landing-process article > svg { display: none; }
html body.app-site .bf-step-icon {
  grid-row: span 2;
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--px-navy) 0%, var(--px-navy-2, #243440) 100%);
  color: var(--px-gold);
  box-shadow: 0 14px 28px -16px rgb(25 35 43 / 70%);
  transition: transform 250ms var(--px-ease);
}
html body.app-site .bf-step-icon svg { width: 32px; height: 32px; }
html body.app-site .landing-process article:nth-child(2) .bf-step-icon { background: linear-gradient(145deg, #f3cf86 0%, var(--px-gold) 100%); color: var(--px-navy); }
html body.app-site .landing-process .landing-step-number {
  position: absolute; z-index: 2;
  left: 54px; top: -8px;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--px-bg);
  background: var(--px-gold);
  color: var(--px-navy);
  font-size: .72rem; font-weight: 700;
  opacity: 1;
}
html body.app-site .landing-process article:nth-child(2) .landing-step-number { background: var(--px-navy); color: var(--px-gold); }
html body.app-site .landing-process h3 { margin: 10px 0 4px; font-size: 1.05rem; font-weight: 600; }
html body.app-site .landing-process p { margin: 0; font-size: .9rem; color: var(--px-muted); }
/* Phones: a dashed line runs down from one tile to the next */
html body.app-site .landing-process article:not(:last-child)::after {
  content: ""; position: absolute;
  left: 35px; top: 80px; bottom: -24px;
  border-left: 2px dashed color-mix(in srgb, var(--px-gold) 70%, transparent);
}
@media (hover: hover) { html body.app-site .landing-process article:hover .bf-step-icon { transform: translateY(-3px) rotate(-3deg); } }
@media (min-width: 768px) {
  html body.app-site .landing-process article,
  html body.app-site .landing-process article:nth-child(n) { display: block; text-align: center; }
  html body.app-site .bf-step-icon { margin: 0 auto 6px; width: 84px; height: 84px; border-radius: 26px; }
  html body.app-site .bf-step-icon svg { width: 36px; height: 36px; }
  html body.app-site .landing-process .landing-step-number { left: calc(50% + 26px); top: -8px; }
  html body.app-site .landing-process p { max-width: 280px; margin: 0 auto; }
  /* Desktop: the dashed path runs across, from this tile to the next one */
  html body.app-site .landing-process article:not(:last-child)::after {
    left: calc(50% + 56px); right: calc(-50% + 42px); top: 42px; bottom: auto;
    border-left: 0;
    border-top: 2px dashed color-mix(in srgb, var(--px-gold) 70%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) { html body.app-site .bf-step-icon { transition: none; } }

/* Host banner: navy card with a photo */
html body.app-site .landing-host {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--px-navy);
  color: #fff;
}
html body.app-site .landing-host-visual { order: 2; min-height: 240px; margin: 0; padding: 0; border-radius: 0; background: none; }
html body.app-site .landing-host-visual .bf-host-photo { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
html body.app-site .landing-host-feature { display: none; }
html body.app-site .landing-host-copy { padding: clamp(28px, 5vw, 56px); }
html body.app-site .landing-host-copy h2 { color: #fff; }
html body.app-site .landing-host-copy p,
html body.app-site .landing-host-copy small { color: rgb(255 255 255 / 78%); }
html body.app-site .landing-host-copy .landing-eyebrow { color: var(--px-gold); }
@media (min-width: 992px) {
  html body.app-site .landing-host { grid-template-columns: 1fr 1fr; }
}

/* FAQ: one calm card per question */
html body.app-site .landing-faq-list details {
  border: 1px solid var(--px-line);
  border-radius: 14px;
  background: var(--bf-card);
  padding: 4px 18px;
  margin-bottom: 10px;
}
html body.app-site .landing-faq-list summary { min-height: 52px; font-weight: 600; }
html body.app-site .landing-faq-list details[open] { box-shadow: var(--bf-shadow-soft); }

/* ---------- Member spaces: friendlier welcome banner ---------- */
html body.app-site .mx-welcome,
html body.app-site .member-cover {
  border-radius: 20px;
}
/* Profile menu rows: text aligned to the icon (it drifted to the centre on phones). */
html body.app-site .member-profile-menu a { justify-content: flex-start !important; text-align: left !important; }
html body.app-site .member-profile-menu a > :nth-child(2) { flex: 1 1 auto; min-width: 0; text-align: left !important; align-items: flex-start !important; }
html body.app-site .member-profile-menu a > :nth-child(2) * { text-align: left !important; margin-left: 0 !important; }
html body.app-site .mx-empty { border-radius: var(--bf-r-card); border: 1.5px dashed var(--px-line); background: transparent; }

/* ---------- Footer: navy, like the header, so every page is framed the same way ---------- */
html body.app-site .platform-footer {
  background: var(--px-navy) !important;
  color: rgb(255 255 255 / 72%) !important;
  border-top: 0 !important;
}
html body.app-site .platform-footer a { color: rgb(255 255 255 / 72%) !important; }
html body.app-site .platform-footer a:hover,
html body.app-site .platform-footer a:focus-visible { color: #fff !important; }
html body.app-site .platform-footer h2,
html body.app-site .platform-footer h3,
html body.app-site .platform-footer strong { color: #fff !important; }
html body.app-site .platform-footer hr,
html body.app-site .platform-footer .footer-bottom { border-color: rgb(255 255 255 / 14%) !important; }
html body.app-site .platform-footer .brand-on-light { display: none !important; }
html body.app-site .platform-footer .brand-on-dark { display: block !important; }
html body.app-site .platform-footer svg { color: rgb(255 255 255 / 80%); }
/* The footer is the last thing on every page: no light band under it at any width. On short pages its
   navy carries on to the bottom of the screen (a shadow, so the page does not grow or scroll). */
html body.app-site { padding-bottom: 0 !important; }
html body.app-site .platform-footer { box-shadow: 0 50vh 0 50vh var(--px-navy); }
/* Phones (where the bottom bar is): an app does not carry a website footer, so only the copyright stays,
   small and quiet on the page background, above the room the bottom bar covers. */
@media (max-width: 991.98px) {
  html body.app-site .platform-footer {
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.app-site .platform-footer .footer-main { display: none !important; }
  /* The footer already keeps the bottom bar's room, so the page content does not need it too. */
  html body.app-site:has(.mx-bottom) .bkk-main { padding-bottom: 24px !important; }
  html body.app-site footer.platform-footer .footer-bottom {
    justify-content: center !important;
    margin: 0 !important; padding: 0 !important;
    border: 0 !important;
    text-align: center;
    font-size: .75rem;
    color: var(--px-muted) !important;
  }
  html body.app-site footer.platform-footer .footer-bottom span { color: var(--px-muted) !important; }
  html body.app-site footer.platform-footer .footer-bottom span + span { display: none; }
}
/* Google Play badge under the Legal links (web only, since phones hide this part of the footer). */
html body.app-site .bf-footer-stack { display: grid; gap: 22px; align-content: start; }
html body.app-site .bf-play { display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; }
html body.app-site .bf-play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 14px;
  border: 1px solid #52525b; border-radius: 10px;
  background: #000; color: #fff;
  transition: border-color var(--px-fast) var(--px-ease), transform var(--px-fast) var(--px-ease);
}
html body.app-site .bf-play-badge svg { flex: none; width: 26px; height: 28px; }
html body.app-site .bf-play-badge > span { display: grid; line-height: 1.1; text-align: left; }
html body.app-site .bf-play-badge small { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
html body.app-site .bf-play-badge strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; color: #fff !important; }
html body.app-site a.bf-play:hover .bf-play-badge,
html body.app-site a.bf-play:focus-visible .bf-play-badge { border-color: #a1a1aa; transform: translateY(-2px); }
html body.app-site a.bf-play:focus-visible { outline: none; }
html body.app-site a.bf-play:focus-visible .bf-play-badge { outline: 3px solid var(--px-gold); outline-offset: 3px; }
html body.app-site .bf-play.is-soon .bf-play-badge { opacity: .6; }
html body.app-site .bf-play.is-soon small { padding: 3px 10px; border-radius: 999px; background: rgb(232 187 97 / 18%); color: var(--px-gold); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
/* Brand, then Platform / Help / Legal columns, like the mock-up */
html body.app-site .bf-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 24px;
  align-items: start;
}
html body.app-site .bf-footer-brand img { height: 36px; width: auto; }
html body.app-site .bf-footer-brand p { margin: 14px 0 18px; max-width: 360px; font-size: .9rem; line-height: 1.6; }
html body.app-site .bf-footer-col { display: grid; gap: 10px; align-content: start; }
html body.app-site .bf-footer-col h2 { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--px-gold) !important; }
html body.app-site .bf-footer-col a { display: block; padding: 2px 0 !important; margin: 0 !important; min-height: 0 !important; font-size: .92rem; line-height: 1.5; text-decoration: none; }
@media (max-width: 767.98px) {
  html body.app-site .bf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.app-site .bf-footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  html body.app-site .bf-footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}
/* Contact buttons on navy: glassy circles with visible icons, all in one row */
html body.app-site .platform-footer .contact-channels { display: flex !important; flex-wrap: wrap; gap: 10px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body.app-site .platform-footer .contact-direct,
html body.app-site .platform-footer .contact-socials { display: contents !important; }
html body.app-site .platform-footer .contact-channels a {
  display: grid !important; place-items: center;
  width: 44px !important; height: 44px !important; min-width: 0 !important;
  padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgb(255 255 255 / 18%) !important;
  background: rgb(255 255 255 / 8%) !important;
  color: #fff !important;
  transition: background-color var(--px-fast) var(--px-ease), transform var(--px-fast) var(--px-ease);
}
html body.app-site .platform-footer .contact-channels a:hover,
html body.app-site .platform-footer .contact-channels a:focus-visible { background: rgb(255 255 255 / 18%) !important; transform: translateY(-2px); }
html body.app-site .platform-footer .contact-channels a.contact-whatsapp { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
html body.app-site .platform-footer .contact-channels svg { width: 20px; height: 20px; color: inherit !important; }
html body.app-site .platform-footer .contact-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body.app-site .platform-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 14%); font-size: .82rem; color: rgb(255 255 255 / 55%) !important; }

/* ---------- Install offers on phone browsers: Google Play at the bottom, then the web app at the top ---------- */
html body.app-site .install-banner .install-close {
  position: absolute; right: 9px; top: 7px;
  width: 30px; height: 30px;
  border: 0; background: transparent;
  color: var(--px-muted); font-size: 23px; line-height: 1;
}
html body.app-site .install-banner { position: fixed; }
html body.app-site .bf-play-banner .bf-play { display: inline-flex; margin-top: 2px; }
html body.app-site .bf-play-banner .bf-play-badge { padding: 6px 14px 6px 12px; }
html body.app-site .bf-play-banner .bf-play-badge svg { width: 22px; height: 24px; }
html body.app-site .bf-play-banner .bf-play-badge strong { font-size: 1rem; }
html body.app-site .bf-web-banner {
  top: calc(env(safe-area-inset-top, 0px) + 80px) !important;
  bottom: auto !important;
  animation: bf-drop-in .3s var(--px-ease) both !important;
}
html[data-bs-theme] body.app-site .bf-web-banner #install-action { background: var(--bf-cta) !important; color: var(--bf-cta-ink) !important; padding: 9px 16px; }
@keyframes bf-drop-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body.app-site .bf-web-banner { animation: none !important; } }

/* ---------- Notifications card: one message, one button; choices fold away ---------- */
html body.app-site .bf-push { display: grid; gap: 14px; }
html body.app-site .bf-push-head { display: flex; gap: 14px; align-items: center; }
html body.app-site .bf-push-head h2 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 700; }
html body.app-site .bf-push-head p { margin: 0; font-size: .88rem; color: var(--px-muted); }
html body.app-site .bf-push-bell {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(145deg, #f3cf86 0%, var(--px-gold) 100%); color: var(--px-navy);
}
html body.app-site .bf-push-bell svg { width: 24px; height: 24px; }
html body.app-site .bf-push-toggle { width: 100%; min-height: 48px; }
html body.app-site .bf-push-toggle[aria-pressed="true"] { background: transparent !important; border: 1.5px solid var(--px-line) !important; color: var(--px-muted) !important; box-shadow: none; }
html body.app-site .bf-push-more summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--px-blue); list-style: none; }
html body.app-site .bf-push-more summary::-webkit-details-marker { display: none; }
html body.app-site .bf-push-more summary::after { content: " ›"; }
html body.app-site .bf-push-more[open] summary { margin-bottom: 10px; }
html body.app-site .bf-push-more .push-channels { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 768px) { html body.app-site .bf-push-toggle { width: auto; justify-self: start; padding-inline: 28px; } }

/* ---------- Host request cards: the essentials, details in a window ---------- */
html body.app-site .bf-req { display: grid; gap: 10px; padding: 18px; }
html body.app-site .bf-req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html body.app-site .bf-req-head .nx-eyebrow { margin: 0; }
html body.app-site .bf-req-price { display: grid; gap: 2px; }
html body.app-site .bf-req-price span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--px-muted); }
html body.app-site .bf-req-price strong { font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
html body.app-site .bf-req-price strong small { font-size: .85rem; font-weight: 500; color: var(--px-muted); }
html body.app-site .bf-req-price em { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: .76rem; font-weight: 600; }
html body.app-site .bf-req-price em.is-below { background: var(--px-gold-soft); color: var(--px-gold-ink); }
html body.app-site .bf-req-price em.is-above { background: var(--px-ok-soft); color: var(--px-ok); }
html body.app-site .bf-req-meta { margin: 0; }
html body.app-site .bf-req .rv-guest-trust { margin: 0; }
html body.app-site .bf-req-open { width: 100%; min-height: 46px; margin-top: 4px; }
html body.app-site .bf-req-dialog { width: min(560px, calc(100% - 24px)); max-height: 92dvh; padding: 22px; overflow: auto; border: 0; border-radius: 22px; background: var(--bf-card); color: inherit; }
html body.app-site .bf-req-dialog::backdrop { background: rgb(25 35 43 / 55%); }
html body.app-site .bf-req-dialog[open] { display: grid; gap: 14px; animation: bkk-dialog .22s var(--px-ease) both; }
html body.app-site .bf-req-dialog-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
html body.app-site .bf-req-dialog-head h3 { margin: 2px 0 4px; font-size: 1.15rem; }
html body.app-site .bf-req-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--px-bg); color: var(--px-muted); font-size: 22px; line-height: 1; }
@media (max-width: 767.98px) {
  html body.app-site .bf-req-dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  html body.app-site .bf-req-dialog[open] { animation: mx-sheet .22s ease-out both; }
}
@media (prefers-reduced-motion: reduce) { html body.app-site .bf-req-dialog[open] { animation: none; } }
html body.bf-dialog-open { overflow: hidden; }

/* ---------- Host account statement ---------- */
html body.app-site .bf-wallet { display: grid; gap: 18px; max-width: 960px; }
html body.app-site .bf-wallet-head h1 { margin: 4px 0 6px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
html body.app-site .bf-wallet-head p:last-child { margin: 0; color: var(--px-muted); }
html body.app-site .bf-wallet-task { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--px-gold) 55%, var(--px-line)); border-radius: var(--bf-r-card); background: var(--px-gold-soft); color: var(--px-gold-ink); text-decoration: none; }
html body.app-site .bf-wallet-task svg { flex: none; width: 24px; height: 24px; }
html body.app-site .bf-wallet-task strong, html body.app-site .bf-wallet-task small { display: block; }
html body.app-site .bf-wallet-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
html body.app-site .bf-wallet-summary article { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--px-line); border-radius: var(--bf-r-card); background: var(--bf-card); box-shadow: var(--bf-shadow-soft); }
html body.app-site .bf-wallet-summary span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--px-muted); }
html body.app-site .bf-wallet-summary strong { font-size: 1.5rem; line-height: 1.2; }
html body.app-site .bf-wallet-summary small { font-size: .8rem; color: var(--px-muted); }
html body.app-site .bf-wallet-summary .bf-wallet-next { background: var(--px-navy); border-color: var(--px-navy); color: #fff; }
html body.app-site .bf-wallet-next span, html body.app-site .bf-wallet-next small { color: rgb(255 255 255 / 75%); }
html body.app-site .bf-wallet-next strong { color: var(--px-gold); font-size: 1.8rem; }
html body.app-site .bf-wallet-summary .is-review { border-color: color-mix(in srgb, var(--px-gold) 55%, var(--px-line)); }
html body.app-site .bf-wallet-summary .is-test { border-style: dashed; box-shadow: none; }
html body.app-site .bf-wallet-subtitle { margin: 8px 0 0; font-size: 1.1rem; font-weight: 700; }
html body.app-site .bf-wallet-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
html body.app-site .bf-wallet-row { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--px-line); border-radius: var(--bf-r-card); background: var(--bf-card); }
html body.app-site .bf-wallet-row-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
html body.app-site .bf-wallet-row-head strong { display: block; font-size: .98rem; }
html body.app-site .bf-wallet-row-head small { color: var(--px-muted); font-size: .8rem; }
html body.app-site .bf-wallet-badge { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--px-soft, var(--px-bg)); font-size: .74rem; font-weight: 600; color: var(--px-muted); }
html body.app-site .bf-wallet-row.is-next .bf-wallet-badge { background: var(--bf-blue-tint); color: var(--px-blue); }
html body.app-site .bf-wallet-row.is-paid .bf-wallet-badge { background: var(--px-ok-soft); color: var(--px-ok); }
html body.app-site .bf-wallet-row.is-review .bf-wallet-badge, html body.app-site .bf-wallet-row.is-test .bf-wallet-badge { background: var(--px-gold-soft); color: var(--px-gold-ink); }
/* Receipt-style breakdown: one line per concept, amounts aligned right, the net amount last. */
html body.app-site .bf-wallet-math { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--px-bg); }
html body.app-site .bf-wallet-math > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
html body.app-site .bf-wallet-math dt { font-size: .82rem; font-weight: 400; color: var(--px-muted); }
html body.app-site .bf-wallet-math dd { margin: 0; font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.app-site .bf-wallet-math .is-net { margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--px-line); }
html body.app-site .bf-wallet-math .is-net dt { font-weight: 600; color: inherit; }
html body.app-site .bf-wallet-math .is-net dd { font-size: 1rem; font-weight: 700; color: var(--px-ok); }
html body.app-site .bf-wallet-summary strong { font-variant-numeric: tabular-nums; }
html body.app-site .bf-wallet-paid { margin: 0; font-size: .8rem; color: var(--px-ok); }
html body.app-site .bf-wallet-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; border: 1.5px dashed var(--px-line); border-radius: var(--bf-r-card); text-align: center; }
html body.app-site .bf-wallet-empty svg { width: 40px; height: 40px; color: var(--px-gold); }
html body.app-site .bf-wallet-empty h2 { margin: 0; font-size: 1.05rem; }
html body.app-site .bf-wallet-empty p, html body.app-site .bf-wallet-foot { margin: 0; color: var(--px-muted); font-size: .85rem; }

/* ---------- Payment screen and the call to it from the reservation ---------- */
html body.app-site .bf-pay-screen { max-width: 640px; }
html body.app-site .bf-pay-summary { display: flex; gap: 14px; align-items: center; margin: 4px 0 0; padding: 14px; border: 1px solid var(--px-line); border-radius: var(--bf-r-card); background: var(--bf-card); }
html body.app-site .bf-pay-summary img { flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
html body.app-site .bf-pay-summary .mx-eyebrow { margin: 0; }
html body.app-site .bf-pay-summary h1 { margin: 2px 0; font-size: 1.1rem; font-weight: 700; }
html body.app-site .bf-pay-summary p { margin: 0; font-size: .85rem; color: var(--px-muted); }
html body.app-site .bf-pay-summary small { font-size: .74rem; color: var(--px-muted); letter-spacing: .04em; }
html body.app-site .bf-pay-cta-card { display: grid; gap: 10px; margin: 0 0 16px; padding: 18px; border-radius: 20px; background: var(--px-navy); color: #fff; box-shadow: var(--bf-shadow); }
html body.app-site .bf-pay-cta-card h2 { margin: 0 0 4px; color: #fff; font-size: 1.1rem; font-weight: 700; }
html body.app-site .bf-pay-cta-card p { margin: 0; font-size: .85rem; color: rgb(255 255 255 / 75%); }
html body.app-site .bf-pay-cta-card strong { font-size: 1.6rem; color: var(--px-gold); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { html body.app-site .bf-pay-cta-card { grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; } html body.app-site .bf-pay-cta-card .bf-pay-cta { width: auto; padding-inline: 28px; } }

/* ---------- Card payment of a held reservation ---------- */
html body.app-site .bf-pay { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--px-line); border-radius: 20px; background: var(--bf-card); box-shadow: var(--bf-shadow); }
html body.app-site .bf-pay-head { display: flex; gap: 14px; align-items: center; }
html body.app-site .bf-pay-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
html body.app-site .bf-pay-head p { margin: 2px 0 0; font-size: .82rem; color: var(--px-muted); }
html body.app-site .bf-pay-lock { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bf-blue-tint); color: var(--px-blue); }
html body.app-site .bf-pay-lock svg { width: 22px; height: 22px; }
html body.app-site .bf-pay-brands { margin-left: auto; display: flex; gap: 6px; }
html body.app-site .bf-brand { display: grid; place-items: center; height: 26px; min-width: 42px; padding: 0 8px; border: 1px solid var(--px-line); border-radius: 6px; background: #fff; }
html body.app-site .bf-brand.is-visa { color: #1a1f71; font: italic 800 .8rem/1 Arial, sans-serif; letter-spacing: .02em; }
html body.app-site .bf-brand.is-mc { display: flex; justify-content: center; }
html body.app-site .bf-brand.is-mc i { width: 16px; height: 16px; border-radius: 50%; background: #eb001b; }
html body.app-site .bf-brand.is-mc i + i { margin-left: -6px; background: #f79e1b; mix-blend-mode: multiply; }
html body.app-site .bf-pay-total { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--px-navy); color: #fff; }
html body.app-site .bf-pay-total span { font-size: .78rem; color: rgb(255 255 255 / 72%); text-transform: uppercase; letter-spacing: .06em; }
html body.app-site .bf-pay-total strong { font-size: 1.75rem; line-height: 1.15; color: var(--px-gold); }
html body.app-site .bf-pay-total small { font-size: .8rem; color: rgb(255 255 255 / 72%); }
html body.app-site .bf-pay-status { margin: 0; font-size: .85rem; color: var(--px-muted); }
html body.app-site .bf-pay-status:empty { display: none; }
html body.app-site .bf-pay-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; font-size: 1rem; }
html body.app-site .bf-pay-cta svg { width: 18px; height: 18px; }
html body.app-site .bf-pay-form { display: grid; gap: 18px; }
html body.app-site .bf-pay-form fieldset { display: grid; gap: 10px; margin: 0; }
html body.app-site .bf-pay-form legend { float: none; margin: 0 0 4px; font-size: .95rem; font-weight: 700; }
html body.app-site .bf-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html body.app-site .bf-pay-grid .is-wide { grid-column: 1 / -1; }
html body.app-site .bf-pay-card { min-height: 52px; padding: 14px; border: 1.5px solid var(--px-line); border-radius: var(--bf-r-field); background: var(--px-bg); }
html body.app-site .bf-pay-card:focus-within { border-color: var(--px-blue); box-shadow: 0 0 0 4px var(--bf-blue-tint); }
html body.app-site .bf-pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .8rem; color: var(--px-muted); }
html body.app-site .bf-pay-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--px-ok); }
html body.app-site .bf-pay-sandbox { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--px-gold-soft); color: var(--px-gold-ink); font-size: .8rem; font-weight: 600; text-align: center; }
html body.app-site .bf-pay-sync { justify-self: center; }
html body.app-site .bf-pay-processing { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: var(--px-navy); color: #fff; text-align: center; }
html body.app-site .bf-pay-processing[hidden] { display: none; }
html body.app-site .bf-pay-processing > div { display: grid; gap: 14px; justify-items: center; max-width: 360px; }
html body.app-site .bf-pay-processing h2 { margin: 6px 0 0; color: #fff; font-size: 1.3rem; }
html body.app-site .bf-pay-processing p { margin: 0; color: rgb(255 255 255 / 75%); font-size: .9rem; }
html body.app-site .bf-pay-processing ul { display: flex; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .75rem; color: rgb(255 255 255 / 75%); }
html body.app-site .bf-pay-processing li { display: grid; gap: 6px; justify-items: center; max-width: 110px; }
html body.app-site .bf-pay-processing li svg { width: 22px; height: 22px; color: var(--px-gold); }
html body.app-site .bf-pay-spinner { width: 64px; height: 64px; margin-top: 18px; border-radius: 50%; border: 4px solid rgb(255 255 255 / 15%); border-top-color: var(--px-gold); animation: ui-spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { html body.app-site .bf-pay-spinner { animation-duration: 2.4s; } }
@media (max-width: 575.98px) {
  html body.app-site .bf-pay { padding: 18px; }
  html body.app-site .bf-pay-grid { gap: 10px; }
  html body.app-site .bf-pay-brands { display: none; }
}

/* ---------- Affiliation form: the listing's map point ---------- */
html body.app-site .hj-location { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1.5px dashed var(--px-line); border-radius: var(--bf-r-card); }
html body.app-site .hj-location legend { float: none; width: auto; margin: 0; padding: 0 6px; }
html body.app-site .hj-location .af-hint { margin: 0; }
html body.app-site .hj-location-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html body.app-site .hj-location-pick { justify-self: start; }
@media (max-width: 575.98px) { html body.app-site .hj-location-pick { justify-self: stretch; } }

/* ---------- Phone field: flags drawn from our own font, so Windows shows them too ---------- */
/* Twemoji Country Flags 0.1.10 (country-flag-emoji-polyfill): code MIT, flag art by Twemoji under CC-BY 4.0. */
@font-face {
  font-family: "BkkFlags";
  src: url("/assets/fonts/twemoji-country-flags-0.1.10.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}
html body.app-site .pf-flag,
html body.app-site .pf-country { font-family: "BkkFlags", "BkkPoppins", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
html body.app-site .pf-flag { font-size: 1.25rem; line-height: 1; }

/* ---------- Bottom sheets and dialogs: rounder, with the same shadow ---------- */
html body.app-site dialog { border-radius: 20px; box-shadow: var(--bf-shadow); }

@media (prefers-reduced-motion: reduce) {
  html body.app-site .nx-stay,
  html body.app-site .nx-stay-media img,
  html body.app-site .bf-style img { transition: none; }
  html body.app-site .nx-stay:hover { transform: none; }
}

/* Small blue labels on the dark host band and footer use a lighter brand blue (#207ace was 3.59:1 on #19232b). */
html body.app-site .landing-host-copy .landing-eyebrow, html body.app-site .bf-footer-col h2 { color: #6cb2f0 !important; }
