:root {
  --teal: #00a6a6;
  --teal-dark: #008a8a;
  --teal-soft: #e6f7f6;
  --navy: #0f2a44;
  --text: #24384a;
  --muted: #6b7f8d;
  --orange: #ff6b00;
  --orange-dark: #e85f00;
  --red: #f0332f;
  --bg: #f3f6f9;
  --card: #ffffff;
  --line: #e3eaf0;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(16, 42, 68, 0.06);
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", Inter, system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(255, 107, 0, .25); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-teal { background: linear-gradient(90deg, #00a6a6, #00b8a9); color: #fff; padding: 13px 18px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card h2 { font-size: 17px; }
.see-all { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand img { height: 42px; width: auto; }
.logo { font-size: 25px; font-weight: 900; letter-spacing: -1.2px; color: var(--teal); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--orange); }
.logo small { font-size: 11px; color: #7b929e; letter-spacing: 0; font-weight: 700; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav > a { color: var(--text); text-decoration: none; padding: 8px 11px; font-weight: 500; font-size: 14px; position: relative; white-space: nowrap; }
.nav > a:hover { color: var(--teal-dark); }
.nav > a.active { color: var(--teal-dark); font-weight: 700; }
.nav > a.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--teal); }
.nav-auth { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.city-select {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 8px 0 10px; height: 40px; background: #fff;
}
.city-select svg { width: 16px; height: 16px; fill: var(--navy); }
.city-select select { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--navy); padding: 8px 2px; cursor: pointer; outline: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--navy); cursor: pointer;
}
.icon-btn:hover { background: var(--teal-soft); }
.icon-btn svg, .search-tab svg, .field svg, .search-submit svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.menu-toggle { display: none; }

/* Top grid */
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px 300px; gap: 16px; align-items: stretch; }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 330px;
  padding: 26px 28px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background:
    linear-gradient(90deg, #f9d7b8 0%, #f6dcc4 30%, rgba(246, 220, 196, .85) 45%, rgba(246, 220, 196, 0) 62%),
    url("img/hero.webp") right center / auto 100% no-repeat,
    linear-gradient(180deg, #f6d4b4, #9fc4c6);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, rgba(13, 52, 66, 0), rgba(13, 52, 66, .55));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 3vw, 40px); font-style: italic; font-weight: 900; letter-spacing: -0.5px; color: var(--navy); }
.hero h1 span { color: var(--orange); }
.hero-text .sep { display: none; }
.hero-text p { margin-top: 10px; color: var(--navy); font-size: 15px; font-weight: 500; }

.search-box { max-width: 760px; }
.search-tabs { display: flex; gap: 4px; }
.search-tab {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 22px; border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .7); color: var(--muted);
}
.search-tab[aria-selected="true"] { background: #fff; color: var(--navy); font-weight: 700; }
.search-tab[aria-selected="true"] svg { color: var(--teal); }
.search-form {
  display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 0 12px 12px 12px;
  box-shadow: 0 12px 30px rgba(16, 42, 68, .18);
}
.field {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; height: 46px; color: var(--muted); flex: 0 0 auto; width: 130px;
}
.field svg { width: 17px; height: 17px; flex: none; }
.field-q { flex: 1; width: auto; min-width: 0; }
.field input { border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--navy); width: 100%; min-width: 0; background: transparent; }
.field:focus-within { border-color: var(--teal); }
.search-submit { height: 46px; padding: 0 20px; font-size: 15px; }

.hero-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 10px 12px; color: #fff; }
@media (max-width: 1000px) { .hero-features { grid-template-columns: repeat(3, auto); justify-content: start; } }
.hero-features li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; line-height: 1.3; }
.hero-features b { display: block; font-size: 12.5px; font-weight: 700; }
.hf-ico { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }

/* Side cards */
.whats-on { display: flex; flex-direction: column; }
.whats-on h2 { margin-bottom: 10px; }
.icon-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; flex: 1; align-content: space-around; }
.icon-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 5px 0; line-height: 1.35; }
.il-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex: none; }
.green { background: #e3f6ec; } .blue { background: #e6efff; } .red { background: #ffe9e8; } .orange { background: #fff0e3; } .teal { background: var(--teal-soft); }

.map-img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 273 / 183; object-fit: cover; }
.map-card h3 { font-size: 15px; margin: 14px 0 10px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.area-chips a {
  font-size: 12px; text-decoration: none; color: var(--text); background: #f1f5f8; border-radius: 8px; padding: 6px 10px;
}
.area-chips a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.area-chips a.more { color: var(--teal-dark); font-weight: 600; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 16px 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 2px; border-radius: 12px; }
.cat:hover { background: #f6f9fb; }
.cat-ico { width: 56px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; }
.c-red { background: #ffe9e8; } .c-blue { background: #e6efff; } .c-green { background: #e3f6ec; } .c-orange { background: #fff0e3; }
.c-purple { background: #efe8ff; } .c-pink { background: #ffe8f1; } .c-teal { background: var(--teal-soft); }

/* Mid grid */
.mid-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.featured h2 { font-size: 20px; }
.featured-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #9a5b00; background: #fff4dc; border-radius: 6px; padding: 2px 7px; vertical-align: 1px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.filters .see-all { margin-left: 6px; }

.listing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.listing { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.listing:hover { box-shadow: 0 10px 24px rgba(16, 42, 68, .12); transform: translateY(-2px); }
.l-media { position: relative; aspect-ratio: 2 / 1; background: #dde7ee; }
.l-media img { width: 100%; height: 100%; object-fit: cover; }
.l-urgent { position: absolute; top: 7px; left: 7px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.l-heart {
  position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(15, 42, 68, .7);
}
.l-heart svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.l-heart.on svg { fill: var(--red); stroke: var(--red); }
.l-heart.on { background: #fff; }
.l-left { position: absolute; left: 6px; bottom: 6px; background: rgba(15, 30, 45, .82); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; min-width: 84px; }
.l-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.l-body h3 { font-size: 14px; font-weight: 700; line-height: 1.35; min-height: 38px; }
.l-body h3 a { color: var(--navy); text-decoration: none; }
.l-body h3 a:hover { color: var(--teal-dark); }
.l-city { font-size: 12px; color: var(--muted); }
.l-price { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; }
.l-price s { color: #98a6b1; font-size: 12px; }
.l-price b { color: var(--red); font-size: 16px; font-weight: 800; }
.l-off { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); }

.side-col { display: grid; gap: 16px; }
.demand-list { list-style: none; margin: 0; padding: 0; display: grid; }
.demand-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f4f7; }
.demand-list li:last-child { border-bottom: 0; }
.demand-list div { flex: 1; min-width: 0; }
.demand-list b { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.demand-list span:not(.d-ico) { font-size: 12px; color: var(--muted); }
.d-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex: none; }
.notify { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--teal-dark); border: 1px solid var(--teal); border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.notify:hover { background: var(--teal-soft); }

.ctv-banner {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(120deg, #009c9c 0%, #00b3ad 60%, #33c7bd 100%);
  display: flex; align-items: flex-end; padding: 18px 0 0 18px; min-height: 250px;
}
.ctv-text { flex: 1; padding-bottom: 18px; position: relative; z-index: 1; }
.ctv-banner h2 { color: #fff; font-size: 18px; font-weight: 800; }
.ctv-sub { color: #e5fffb; font-weight: 600; margin: 2px 0 12px; }
.ctv-banner ul { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: #fff; border-radius: 12px; display: grid; gap: 7px; font-size: 13px; }
.ctv-banner li { display: flex; gap: 8px; }
.ctv-banner li::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ctv-img { width: 150px; height: auto; align-self: flex-end; flex: none; }

/* Bottom grid */
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 16px; }
.why h2, .blog h2, .help h2 { font-size: 19px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-item b { display: block; color: var(--navy); font-size: 14px; }
.why-item span:not(.why-ico) { font-size: 12px; color: var(--muted); }
.why-ico { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #00a6a6, #2cc4b8); display: grid; place-items: center; font-size: 21px; flex: none; }
.soon { font-size: 12px; font-weight: 700; color: #9a5b00; background: #fff4dc; border-radius: 6px; padding: 3px 8px; }
.blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.blog-grid img { width: 100%; aspect-ratio: 23 / 10; object-fit: cover; border-radius: 10px; }
.blog-grid h3 { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--navy); }

/* Help */
.help-head { margin-bottom: 14px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 2px 16px; background: #fff; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; font-size: 14px; }

/* Footer */
.site-footer { background: #0d1c2b; color: #8ea3b3; padding: 44px 0 24px; margin-top: 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; height: 54px; width: auto; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b6c6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Legal pages */
.lead { font-size: 18px; color: var(--muted); }
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 0; line-height: 1.65; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.doc h2 { font-size: 21px; margin: 28px 0 10px; }
.doc p { margin-bottom: 12px; }
.doc .draft { background: #fff7e6; border: 1px solid #ffd99a; color: #8a5a00; padding: 14px 16px; border-radius: 12px; margin: 20px 0 28px; }
.doc li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 1360px) {
  .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) {
  .top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { grid-column: 1 / -1; }
  .mid-grid { grid-template-columns: minmax(0, 1fr); }
  .side-col { grid-template-columns: 1fr 1fr; }
  .listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .categories { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 12px; }
}
@media (max-width: 1100px) {
  .nav, .hide-md { display: none; }
  .menu-toggle { display: grid; }
  .site-header .container { justify-content: space-between; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.open .nav > a { padding: 11px 4px; }
  .site-header.open .nav > a.active::after { display: none; }
  .site-header.open .nav-auth { display: flex; gap: 10px; margin-top: 8px; }
  .site-header.open .nav-auth .btn { flex: 1; }
  .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .search-form { flex-wrap: wrap; }
  .search-form .field-q { flex: 1 1 100%; }
  .field { flex: 1 1 140px; }
  .search-submit { flex: 1 1 100%; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-col { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .page { gap: 12px; padding-top: 12px; }
  .city-select { display: none; }
  .brand img { height: 36px; }
  .top-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 20px 16px 16px; min-height: 0; background:
    linear-gradient(180deg, rgba(249, 215, 184, .95) 0%, rgba(246, 220, 196, .75) 40%, rgba(246, 220, 196, .2) 70%),
    url("img/hero.webp") 70% center / cover no-repeat; }
  .hero-text p br { display: none; }
  .hero-text .sep { display: inline; }
  .search-tab { flex: 1; justify-content: center; padding: 10px 8px; }
  .search-form { border-radius: 0 0 12px 12px; }
  .hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .categories { display: flex; overflow-x: auto; gap: 4px; padding: 12px 8px; scroll-snap-type: x mandatory; }
  .cat { flex: 0 0 78px; scroll-snap-align: start; font-size: 12px; }
  .featured-head { flex-direction: column; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .l-body h3 { font-size: 13px; }
  .l-price b { font-size: 15px; }
  .notify { padding: 6px 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .ctv-img { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
