/* ═══ YUZU redesign — design system shared by every page (header, footer, cards, forms, galleries) ═══
   Colours come from css/themes.css (Site Setting → theme_preset), so every preset re-themes these components.
   Rules from the plan: red (--lacquer) only for closing buttons (Đặt phòng, Đặt tour, Chọn gói eSIM);
   contact is always the pair Zalo + WhatsApp in shutter green (--bg-dark); yuzu yellow (--gold) for stars,
   labels and icons; encaustic-tile motif (gạch bông) used sparingly as a border strip. */

:root {
  --c-bg: var(--bg-light); --c-alt: var(--bg-cream); --c-card: var(--bg-card);
  --c-ink: var(--text-dark); --c-muted: var(--text-muted); --c-line: var(--line); --c-line-strong: var(--line-strong);
  --c-brand: var(--bg-dark); --c-brand-ink: var(--text-light); --c-cta: var(--lacquer); --c-cta-dark: var(--lacquer-dark); --c-accent: var(--gold);
  --header-h: 68px; --bar-h: 64px;
  --ease: cubic-bezier(0.3, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--c-ink); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: 0.6em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }
.small { font-size: 0.875rem; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.star { fill: var(--c-accent); stroke: color-mix(in srgb, var(--c-accent) 70%, black); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-accent) 85%, black); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--c-card); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
main { display: block; min-height: 50vh; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--radius-full);
  border: 1.5px solid transparent; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--c-cta); color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }
.btn-cta:hover { background: var(--c-cta-dark); box-shadow: 0 6px 18px color-mix(in srgb, var(--c-cta) 35%, transparent); }
.btn-cta.contact-cta { background: var(--c-brand); text-transform: none; letter-spacing: 0; }
.btn-chat { background: var(--c-brand); color: var(--c-brand-ink); }
.btn-chat:hover { background: color-mix(in srgb, var(--c-brand) 85%, black); }
.btn-quiet { background: transparent; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn-quiet:hover { border-color: var(--c-ink); background: color-mix(in srgb, var(--c-ink) 5%, transparent); }
.btn-light { background: var(--c-card); color: var(--c-ink); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-brand); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--c-brand) 30%, transparent); }
.link-more:hover { border-color: currentColor; }
.contact-pair { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.contact-pair.sm .btn { min-height: 34px; padding: 5px 12px; font-size: 0.8rem; }
.contact-pair.lg .btn { min-height: 48px; padding: 12px 26px; }
.btn-chat.zalo::before, .btn-chat.whatsapp::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); }

/* ── Encaustic tile strip (gạch bông), drawn as a mask so it takes the theme colour ── */
.tile-strip { height: 10px; background: var(--c-accent); opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M10 0l3 5-3 5-3-5zM0 0l3 5-3 5zM20 0l-3 5 3 5zM5 4.2a.8.8 0 1 0 0 1.6.8.8 0 0 0 0-1.6zM15 4.2a.8.8 0 1 0 0 1.6.8.8 0 0 0 0-1.6z'/%3E%3C/svg%3E") repeat-x left center / 20px 10px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M10 0l3 5-3 5-3-5zM0 0l3 5-3 5zM20 0l-3 5 3 5zM5 4.2a.8.8 0 1 0 0 1.6.8.8 0 0 0 0-1.6zM15 4.2a.8.8 0 1 0 0 1.6.8.8 0 0 0 0-1.6z'/%3E%3C/svg%3E") repeat-x left center / 20px 10px; }

/* ── Header (sticky) ──
   Colours: --sh-bg / --sh-ink / --sh-line (yuzu_home = cream bar with dark text); other presets keep the dark brand bar. */
#site-header { position: sticky; top: 0; z-index: 900; min-height: var(--header-h); }
.sh { --shb: var(--sh-bg, var(--c-brand)); --shi: var(--sh-ink, var(--c-brand-ink)); background: var(--shb); color: var(--shi); border-bottom: 1px solid var(--sh-line, transparent); transition: box-shadow 0.2s; }
body.scrolled .sh { box-shadow: 0 6px 20px rgba(43,36,32,0.12); }
.sh-in { display: flex; align-items: center; gap: 12px 28px; min-height: var(--header-h); max-width: 1200px; padding: 10px 24px; }
.sh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; min-width: 0; flex: none; }
.sh-logo svg { width: 34px; height: 34px; flex: none; color: var(--c-accent); }
.sh-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-logo.has-img img { height: 48px; width: auto; }
.sh-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; }
.sh-nav a { padding: 10px 0; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--shi); border-bottom: 2px solid transparent; }
.sh-nav a:hover, .sh-nav a[aria-current] { border-bottom-color: var(--accent-green, var(--c-accent)); }
.sh-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sh-book { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; min-height: 46px; padding: 12px 20px; }
.sh-help { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 0.9rem; margin-left: auto; }
.lang-pills { display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--shi) 8%, var(--shb)); }
.lang-pills button { min-width: 40px; min-height: 36px; padding: 6px 11px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--shi); font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-pills button[aria-pressed="true"] { background: var(--accent-green, var(--c-brand)); color: var(--text-light, #fff); }
.sh .lang-dd { display: none; }
.sh-compact .lang-dd { display: block; }
.lang-dd { position: relative; }
.lang-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: var(--radius-full); cursor: pointer; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-weight: 600; font-size: 0.88rem; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd .caret { font-size: 0.7em; opacity: 0.8; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--c-card); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 950; }
.lang-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: calc(var(--radius) - 2px); cursor: pointer; }
.lang-list button:hover { background: var(--c-alt); }
.lang-list button[aria-checked="true"] { font-weight: 700; color: var(--c-brand); }
.lang-list button[aria-checked="true"]::after { content: ' ✓'; }
@media (max-width: 1180px) { .sh-nav { gap: 4px 16px; } .sh-nav a { font-size: 14px; } }
@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .sh-nav { display: none; }
  .sh-in { gap: 10px; padding: 8px 16px; }
  .sh .lang-pills { display: none; }
  .sh .lang-dd { display: block; }
  .sh-logo { font-size: 1.15rem; }
  .sh-logo svg { width: 28px; height: 28px; }
  .sh-logo.has-img img { height: 42px; }
  .sh-book { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }
  .lang-dd summary { min-height: 38px; padding: 5px 10px; }
  .lang-dd summary .ic { display: none; }
  .sh-help > span { display: none; }
}
@media (max-width: 380px) { .sh-book { padding: 8px 10px; font-size: 0.8rem; } }

/* ── Motion of the Yuzu Home design: pulsing call-to-action, bobbing chat icon ── */
@keyframes yh-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-cta) 45%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes yh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: yh-pulse 2.2s infinite; } .bob { animation: yh-bob 1.6s ease-in-out infinite; } }

/* ── Floating "Chat ngay" (desktop) ── */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 870; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: var(--radius-full);
  background: var(--accent-green, var(--c-brand)); color: var(--text-light, #fff); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px rgba(43,36,32,0.28); }
.chat-fab .bob { display: flex; }
.chat-fab .ic { width: 20px; height: 20px; }
@media (max-width: 900px) { .chat-fab { display: none; } }

/* ── Bottom bar (mobile) ── */
.bottom-bar { display: none; }
@media (max-width: 900px) {
  .bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 880; background: var(--c-ink); color: var(--c-bg);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(0,0,0,0.18); }
  .bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--bar-h); border: 0; background: none; color: color-mix(in srgb, var(--c-bg) 78%, transparent); text-decoration: none; font-size: 0.72rem; cursor: pointer; }
  .bottom-bar .ic { width: 22px; height: 22px; }
  .bottom-bar [aria-current="page"] { color: var(--c-accent); }
  body.has-bottom-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  body.has-bottom-bar .toast { bottom: calc(var(--bar-h) + 16px); }
}

/* ── Footer ── */
.sf { background: var(--footer-bg, var(--c-brand)); color: var(--c-brand-ink); margin-top: 0; font-size: 15px; }
.sf a { text-decoration: none; }
.sf a:hover { text-decoration: underline; }
.sf-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 0.9fr; gap: 40px; padding: 56px 24px 36px; max-width: 1200px; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.sf-logo svg { width: 32px; height: 32px; color: var(--c-accent); }
.sf-logo-card { display: inline-block; background: var(--bg-light); border-radius: 24px; padding: 14px 18px; margin-bottom: 14px; }
.sf-logo-card img { height: 110px; width: auto; }
.sf-brand p { margin-top: 6px; }
.sf-col { display: flex; flex-direction: column; gap: 8px; }
.sf-col h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; color: inherit; margin-bottom: 2px; }
.sf-ct { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.sf-ct-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-light); color: var(--footer-bg, var(--c-brand)); display: grid; place-items: center; }
.sf-ct-ic .ic { width: 22px; height: 22px; }
.sf-ct small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.sf-ct a, .sf-ct strong { font-size: 20px; font-weight: 700; }
.sf-hotline { font-size: 20px; font-weight: 700; }
.sf-sos-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14px; opacity: 0.9; }
.sf-sos strong { display: inline-block; min-width: 2.6em; }
.sf-bottom { border-top: 1px solid color-mix(in srgb, var(--c-brand-ink) 25%, transparent); font-size: 14px; }
.sf-bottom .container { max-width: 1200px; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 20px 28px; } .sf-brand { grid-column: 1 / -1; } .sf-logo-card img { height: 80px; } }
@media (max-width: 520px) { .sf-grid { grid-template-columns: 1fr; } }

/* ── Quote / request popup ── */
dialog.ymodal { margin: auto; width: 520px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); border: 0; border-radius: var(--radius-lg); background: var(--bg-light); color: var(--c-ink); padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.ym-body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.ym-body h2 { padding-right: 48px; font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--heading-accent, var(--c-ink)); }
.ym-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-alt); font-size: 22px; line-height: 1; cursor: pointer; }
.ym-desc { font-size: 15px; color: var(--c-muted); }
.ym-summary { background: var(--c-alt); border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.ym-summary span { font-size: 13px; font-weight: 600; color: var(--accent-green, var(--c-brand)); }
.ym-summary strong:empty { display: none; }
.ym-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ym-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-muted); flex: 1 1 140px; min-width: 0; }
.ym-field input, .ym-field select { font-size: 15px; color: var(--c-ink); border: 1px solid var(--c-line-strong); border-radius: 12px; padding: 11px 12px; min-height: 46px; background: var(--c-card); width: 100%; min-width: 0; }
.ym-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-height: 44px; }
.ym-check input { width: 20px; height: 20px; accent-color: var(--accent-green, var(--c-brand)); }
.ym-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ym-opts button { flex: 1 1 140px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1.5px solid var(--accent-green, var(--c-brand)); border-radius: var(--radius-full); padding: 12px 22px; background: var(--c-card); color: var(--brand-deep, var(--c-brand)); }
.ym-opts button[aria-pressed="true"] { background: var(--accent-green, var(--c-brand)); color: var(--text-light, #fff); }
.ym-send { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--c-line-strong); padding-top: 14px; }
.ym-send > span { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.ym-send > div { display: flex; flex-wrap: wrap; gap: 10px; }
.ym-ch { flex: 1 1 120px; min-height: 48px; border: 0; border-radius: var(--radius-full); font-weight: 700; font-size: 15px; cursor: pointer; color: #fff; background: var(--c-brand); }
.ym-ch.zalo { background: #0068FF; } .ym-ch.whatsapp { background: #1F9E55; } .ym-ch.wechat { background: #07A35A; }
.ym-wechat { background: var(--c-card); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; }
.ym-wc-id { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ym-wc-id small { display: block; font-size: 12px; color: var(--c-muted); }
.ym-msg { background: var(--c-alt); border-radius: 12px; padding: 10px 12px; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section.alt { background: var(--c-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--c-muted); margin-top: 6px; max-width: 640px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 8px; }
.page-head { padding: 40px 0 24px; }
.page-head p.lead { color: var(--c-muted); max-width: 680px; margin-top: 10px; font-size: 1.05rem; }
.crumbs { font-size: 0.85rem; color: var(--c-muted); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.6; }
.state { padding: 48px 20px; text-align: center; color: var(--c-muted); }
.state svg { width: 96px; height: 96px; color: var(--c-line-strong); margin: 0 auto 16px; }
.state h1, .state h2 { color: var(--c-ink); margin-bottom: 8px; }
.state .btn { margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 44px 0; } .page-head { padding: 28px 0 16px; } }

/* ── Ratings, prices, chips ── */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.98rem; }
.rating-line a, .rating-line span { text-decoration: none; }
.rating-line a:hover { text-decoration: underline; }
.rating-line .dot { opacity: 0.6; }
.price { display: flex; flex-direction: column; line-height: 1.3; }
.price strong { font-weight: 700; color: var(--c-ink); }
.price small { font-size: 0.75rem; color: var(--c-muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--c-accent); color: #2A1E17; font-size: 0.75rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--c-line); background: var(--c-card); cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--c-ink); text-decoration: none; }
.chip:hover { border-color: var(--c-line-strong); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.on { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
.chip .n { font-size: 0.78em; opacity: 0.75; }
.chip-sep { width: 1px; align-self: stretch; background: var(--c-line); margin: 0 4px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }

/* ── Home cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.home-card { display: flex; flex-direction: column; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.home-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hc-media { position: relative; aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; background: var(--c-alt); }   /* portrait photos must not stretch the frame */
.hc-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hc-strip::-webkit-scrollbar { display: none; }
.hc-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.hc-strip.empty { align-items: center; justify-content: center; color: var(--c-line-strong); }
.hc-strip.empty svg { width: 72px; height: 72px; }
.hc-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-full); pointer-events: none; }
.hc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.hc-name { font-size: 1.25rem; }
.hc-name a { text-decoration: none; }
.hc-name a::after { content: ''; position: absolute; inset: 0; }   /* the whole card body opens the home */
.hc-body { position: relative; }
.hc-addr { display: flex; gap: 6px; align-items: flex-start; color: var(--c-muted); font-size: 0.9rem; }
.hc-addr .ic { margin-top: 3px; color: var(--c-brand); }
.hc-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.hc-feats li { font-size: 0.8rem; padding: 3px 10px; border-radius: var(--radius-full); background: var(--c-alt); }
.hc-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hc-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
/* homepage: swipe sideways on phones */
@media (max-width: 700px) {
  .cards-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: none; }
  .cards-swipe::-webkit-scrollbar { display: none; }
  .cards-swipe > * { flex: 0 0 85%; scroll-snap-align: center; }
}

/* ── Help box ("Cần tư vấn?") ── */
.help-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; padding-bottom: 28px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.help-box h2 { font-size: 1.3rem; }
.help-box p { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 0.9rem; }
@media (max-width: 1220px) { .help-box { margin-left: 20px; margin-right: 20px; width: auto; } }

/* ── Forms ── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.88rem; }
.field .hint { font-size: 0.8rem; color: var(--c-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 18%, transparent); }
.field.invalid input, .field.invalid select { border-color: var(--c-cta); }
.form-error { padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--c-cta) 10%, var(--c-card)); color: var(--c-cta-dark); border: 1px solid color-mix(in srgb, var(--c-cta) 35%, transparent); font-size: 0.92rem; }
.form-note { padding: 10px 14px; border-radius: var(--radius); background: var(--c-alt); font-size: 0.88rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-full); cursor: pointer; background: var(--c-card); font-weight: 500; }
.radio-row input { accent-color: var(--c-brand); }
.radio-row label:has(input:checked) { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 8%, var(--c-card)); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .ic { color: var(--c-brand); margin-top: 3px; }
.ticks.minus .ic { color: var(--c-muted); }

/* ── Progress (2 steps) ── */
.progress { display: flex; align-items: center; gap: 12px; list-style: none; font-weight: 600; font-size: 0.92rem; }
.progress li { display: flex; align-items: center; gap: 8px; color: var(--c-muted); }
.progress li .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.85rem; }
.progress li[aria-current="step"], .progress li.done { color: var(--c-brand); }
.progress li[aria-current="step"] .n { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
.progress .line { flex: 0 1 80px; height: 2px; background: var(--c-line); }

/* ── Gallery: 1 large + 4 small (home / tour detail) ── */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(280px, 46vw, 480px); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { display: block; width: 100%; height: 100%; min-height: 0; border: 0; padding: 0; background: var(--c-alt); cursor: zoom-in; overflow: hidden; position: relative; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.45); color: #fff; font-weight: 700; font-size: 1.1rem; }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n1 button:first-child { grid-row: auto; }
.gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; } .gallery.n2 button:first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery .gallery-all { position: absolute; right: 14px; bottom: 14px; z-index: 2; grid-row: auto; overflow: visible; display: inline-flex; width: auto; height: auto; min-height: 38px; padding: 7px 14px; box-shadow: var(--shadow); cursor: pointer; background: var(--c-card); color: var(--c-ink); }
@media (max-width: 700px) {
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; border-radius: 0; margin: 0 -20px; }
  .gallery button:not(:first-child):not(.gallery-all) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}

/* ── Detail layout: content + sticky aside; on phones the aside becomes a bar at the bottom ── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 28px; }
.aside-box { position: sticky; top: calc(var(--header-h) + 20px); background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.aside-box .price strong { font-size: 1.3rem; font-family: var(--font-heading); }
.aside-box .contact-pair { display: grid; grid-template-columns: 1fr 1fr; }
.aside-box .muted { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; }
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-grid .aside-box { position: static; }
  .sticky-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); z-index: 870;
    background: var(--c-card); border-top: 1px solid var(--c-line); padding: 10px 16px; box-shadow: 0 -6px 18px rgba(0,0,0,0.08); }
  .sticky-cta .price strong { font-size: 0.95rem; }
  .sticky-cta .btns { display: flex; gap: 6px; }
  body.has-sticky-cta { padding-bottom: calc(var(--bar-h) + 70px + env(safe-area-inset-bottom)); }
}
.block { padding: 28px 0; border-top: 1px solid var(--c-line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block h2 { font-size: 1.35rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list .f-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-alt); color: var(--c-brand); font-size: 1.05rem; }
.feature-list .f-ic .ui-icon { color: var(--c-brand); }
.map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: var(--c-alt); }

/* ── Dialogs: contact sheet, lightbox ── */
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 520px; border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--c-card); color: var(--c-ink); padding: 0; }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: var(--radius-lg); } }
dialog::backdrop { background: rgba(20,14,10,0.55); }
.sheet-body { padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; position: relative; }
.sheet-body h2 { font-size: 1.35rem; padding-right: 36px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-alt); font-size: 1.4rem; cursor: pointer; }
.sheet-more .host-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-more .host-contact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-full); border: 1px solid var(--c-line); text-decoration: none; font-size: 0.85rem; background: none; cursor: pointer; }
.sheet-more .hc-ic { font-weight: 700; color: var(--c-brand); }
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; background: rgba(12,9,7,0.94); color: #fff; padding: 0; }
dialog.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 10px; padding: 48px 0 24px; height: 100%; align-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { font-size: 0.9rem; opacity: 0.85; text-align: center; padding: 0 12px; }
.lightbox button { border: 0; background: rgba(255,255,255,0.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; justify-self: center; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 700px) { dialog.lightbox[open] { grid-template-columns: 0 1fr 0; } .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 20px; } .lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 2100; background: var(--c-ink); color: var(--c-bg); padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; max-width: calc(100vw - 32px); font-size: 0.92rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Rich text from the CMS ── */
.rich { line-height: 1.7; }
.rich h2, .rich h3 { margin: 1.2em 0 0.4em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0.6em 0; }
.rich li + li { margin-top: 0.3em; }
.rich a { color: var(--c-brand); }
.rich img { border-radius: var(--radius); margin: 1em 0; }
.rich blockquote { border-left: 3px solid var(--c-accent); padding-left: 14px; color: var(--c-muted); }
details.qa { border-bottom: 1px solid var(--c-line); }
details.qa summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--c-brand); transition: transform 0.2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .rich { padding: 0 0 18px; color: var(--c-muted); }

/* ── Motion ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── /homes filters ── */
.rooms-filters { margin-bottom: 12px; }
.filter-label { align-self: center; flex: none; font-size: 0.82rem; font-weight: 600; color: var(--c-muted); }
.rooms-count { min-height: 1.4em; margin-bottom: 10px; }

/* ── Line-art icons from js/icons.js (uiIcon) on pages without the old styles.css ── */
.ui-icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ui-icon-text { display: inline-block; }
