/* Stay Bà Rịa — warm parchment + citrus accent */

:root {
  --bg: #f7f3ef;
  --bg2: #f0e9e2;
  --card: #fafbf9;
  --ink: #1a211c;
  --muted: #66736b;
  --line: #d7ddd8;
  --line-soft: #e8ece9;
  --accent: #ed6a10;
  --accent-hover: #d45c0a;
  --accent-soft: #ffe8d6;
  --online: #c45e0c;
  --online-bg: #fff0e4;
  --warn-bg: #f6efd9;
  --warn: #6e5720;

  /* aliases used across existing CSS */
  --red: var(--accent);
  --red-dark: var(--accent-hover);
  --bg-soft: var(--bg2);
  --glass: rgba(250, 251, 249, 0.72);
  --glass-strong: rgba(250, 251, 249, 0.88);
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(26, 33, 28, 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header: 64px;
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background-color: #f5efe8;
  background-image:
    radial-gradient(circle, rgba(237, 106, 16, 0.09) 1px, transparent 1.2px),
    linear-gradient(180deg, #faf6f2 0%, #f3ebe3 100%);
  background-size: 18px 18px, auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card) 96%, transparent) 0%,
    color-mix(in srgb, var(--card) 72%, transparent) 45%,
    color-mix(in srgb, var(--card) 28%, transparent) 100%
  );
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header__bar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.search {
  flex: 1;
  display: flex;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  border: 0;
  padding: 10px 16px;
  font: inherit;
  outline: none;
  min-width: 0;
  background: transparent;
}
.search button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search button:hover { background: var(--accent-hover); }

.nav {
  display: flex;
  gap: 18px;
}
.nav a {
  font-weight: 500;
  color: var(--ink);
}
.nav a.is-active,
.nav a:hover { color: var(--red); }

.burger {
  display: none;
  margin-left: auto;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 16px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav, .search { display: none; }
  .burger { display: block; }
}

/* Home hero */
.hero {
  background: linear-gradient(135deg, #2b2f36, #1a1d22);
  color: #fff;
  padding: 52px 16px;
  text-align: center;
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); }
.hero p { margin: 0 0 20px; opacity: .9; }
.hero__search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.hero__search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.hero__search button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Sections */
.section { padding: 32px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section__head h2 { margin: 0; font-size: 20px; }
.section__head a { color: var(--red); font-weight: 600; }

/* Listing page */
.page { padding: 16px 0 48px; }
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.page-top .breadcrumb {
  margin-bottom: 0;
}
.page-count {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-head { margin-bottom: 12px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; }
.page-head p { margin: 0; color: var(--muted); }

.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
  width: 100%;
}
.filters__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}
.filters .pill {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  font-weight: 300;
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.filters .pill--search {
  flex: 0 0 auto;
  width: 34px;
  padding: 7px;
}
.filters .pill.is-active,
.filters .pill:hover,
.filters.is-search .pill--search {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filters__search {
  display: none;
  align-items: center;
  box-sizing: border-box;
  min-height: 34px;
  width: 100%;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.filters.is-search .filters__search,
.filters.is-search .filters__search[hidden] {
  display: flex !important;
}
.filters__search input {
  flex: 1;
  border: 0;
  min-width: 0;
  height: 100%;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
  background: transparent;
}
.filters__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
}
.pill__icon {
  flex-shrink: 0;
  display: block;
}
.pill.is-active,
.pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.sort {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  font-size: 13px;
}
.sort a { color: var(--muted); }
.sort a.is-active,
.sort a:hover { color: var(--red); font-weight: 600; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: #ddd;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
}
.card__body { padding: 12px 12px 14px; }
.card__price {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}
.card__price a { color: inherit; }
.card__name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.card__name a { color: var(--ink); }
.card__name a:hover { color: var(--red); }
.card__address {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 12px;
}

/* Detail — Klook-inspired activity page */
.detail {
  padding-bottom: 24px;
  background: #fff;
}
.detail > .wrap { padding-top: 12px; }

.detail-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #212121;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  font-size: 14px;
  color: #757575;
}
.detail-meta__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #212121;
}
.detail-meta__stars { color: var(--red); letter-spacing: 1px; }
.detail-meta__loc a { color: #0f6cbd; font-weight: 500; }

.kl-gallery {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .kl-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 420px;
  }
  .kl-gallery__main { grid-row: 1 / span 2; }
}
.kl-gallery__main,
.kl-gallery__side {
  position: relative;
  margin: 0;
  background: #e0e0e0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.kl-gallery__main { aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .kl-gallery__main { aspect-ratio: auto; height: 100%; }
  .kl-gallery__side { height: 100%; min-height: 0; }
}
.kl-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.kl-gallery__main:hover img,
.kl-gallery__side:hover img { transform: scale(1.03); }
.kl-gallery__more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(0,0,0,.72);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.detail-body {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .detail-body {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 40px;
  }
}

.detail-main section {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.detail-main section:first-child { padding-top: 0; }
.detail-main h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #212121;
}
.detail-main p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #424242;
}

.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.highlights li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}
.highlights__ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 500;
  color: #424242;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: #424242;
  font-size: 15px;
}
.info-list li { margin-bottom: 8px; }

.map-placeholder {
  height: 240px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0ee, #d5e2dd);
  display: grid;
  place-items: center;
  color: #757575;
  font-size: 13px;
  border: 1px solid #e8e8e8;
}

.book-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  padding: 20px;
  position: sticky;
  top: calc(var(--header) + 16px);
}
.book-card__label {
  margin: 0 0 4px;
  font-size: 13px;
  color: #757575;
}
.book-card__price {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.book-card__note {
  margin: 0 0 16px;
  font-size: 12px;
  color: #9e9e9e;
}
.book-card__badges {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.book-card__badge {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #424242;
}
.book-card__badge strong { color: #212121; }
.book-card__actions { display: grid; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { background: #fff; border-color: var(--red); color: var(--red); }
.btn--ghost { background: #f7f7f7; color: var(--ink); border-color: var(--line); }
.btn--klook {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
}
.btn--klook:hover { background: #f4511e; color: #fff; }
.btn--klook-outline {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
}
.btn--klook-outline:hover { background: var(--bg-soft); color: var(--red); }

.book-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.book-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.book-bar__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  margin: 0;
}
.book-bar__sub {
  margin: 0;
  font-size: 11px;
  color: #9e9e9e;
}
@media (max-width: 959px) {
  .book-card {
    position: static;
    margin-top: 16px;
  }
}

.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.9);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.content-box h2 { margin-top: 0; font-size: 18px; }
.content-box p:last-child { margin-bottom: 0; }

/* Blog */
.blog-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 12px; }
.post-card__title { margin: 0 0 6px; font-size: 15px; }
.post-card__excerpt { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.post-card__more { margin: 0; color: var(--red); font-weight: 600; }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.article h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.article__meta { color: var(--muted); margin: 0 0 20px; display: flex; gap: 12px; }
.article__hero {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article__hero img { width: 100%; }
.article .content-box { border: 0; padding: 0; background: transparent; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-card h2 { margin: 0 0 12px; font-size: 18px; }
.contact-card p { margin: 0 0 8px; }
.contact-card a { color: var(--red); font-weight: 600; }

/* Footer */
.footer {
  background: #2b2f36;
  color: #c8c8c8;
  padding: 32px 16px 20px;
  margin-top: 8px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 2fr 1fr; }
}
.footer strong { color: #fff; display: block; margin-bottom: 6px; }
.footer p { margin: 0; font-size: 13px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: #ddd; }
.footer a:hover { color: #fff; }
.footer__copy {
  max-width: var(--max);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: #999;
}


/* ——— Explore home (Timboss-style list + map) ——— */
.page-explore {
  height: 100svh;
  overflow: hidden;
  background-color: #f5efe8;
  background-image:
    radial-gradient(circle, rgba(237, 106, 16, 0.09) 1px, transparent 1.2px),
    linear-gradient(180deg, #faf6f2 0%, #f3ebe3 100%);
  background-size: 18px 18px, auto;
}
.page-explore .footer { display: none; }
.page-detail .footer { display: none; }
.page-explore .header { display: none; }

.explore-nav {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.explore-nav__pill {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.explore-nav__pill.logo {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
}
.explore-nav__pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.explore-nav__pill.is-active {
  background: var(--accent);
  color: #fff;
}
.explore-nav__pill.logo.is-active {
  background: var(--accent);
  color: #fff;
}

/* Language switcher — tách khỏi nav */
.lang-switch--dock {
  position: fixed;
  right: 10px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 720;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border-color: var(--accent);
}
.lang-switch__icon {
  display: block;
  width: 22px;
  height: 20px;
  object-fit: contain;
}
.lang-switch__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  z-index: 80;
}
.lang-switch__menu[hidden] { display: none !important; }
.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.lang-switch__name {
  flex: 1;
  min-width: 0;
}
.lang-switch__ico {
  flex-shrink: 0;
  display: block;
  color: var(--muted);
}
.lang-switch__option:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang-switch__option:hover .lang-switch__ico {
  color: var(--accent);
}
.lang-switch__option.is-active {
  background: var(--accent);
  color: #fff;
}
.lang-switch__option.is-active .lang-switch__ico {
  color: #fff;
}

/* Ẩn chrome Google Translate */
.lang-gt-host,
.goog-te-banner-frame,
.skiptranslate,
body > .skiptranslate {
  display: none !important;
}
body { top: 0 !important; }
font {
  background: transparent !important;
  box-shadow: none !important;
}

.map-toolbar {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 600;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.map-toolbar > * {
  pointer-events: auto;
}
.map-toolbar__pills {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-toolbar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 999px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}
.map-toolbar__pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 300;
}
.map-toolbar__icon {
  flex-shrink: 0;
  display: block;
}
.map-toolbar__search {
  display: none;
  align-items: center;
  box-sizing: border-box;
  height: 44px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: none;
}
.map-toolbar__search input {
  flex: 1;
  border: 0;
  height: 100%;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  outline: none;
  min-width: 0;
  background: transparent;
}
.map-toolbar__submit,
.map-toolbar__close {
  border: 0;
  height: 100%;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.map-toolbar__submit {
  background: var(--accent);
  color: #fff;
}
.map-toolbar__submit:hover { background: var(--accent-hover); }
.map-toolbar__close {
  background: transparent;
  color: var(--muted);
}

.explore {
  display: grid;
  grid-template-columns: 1fr;
  height: 100svh;
  padding: 0;
  gap: 0;
  background: transparent;
}

.explore-panel {
  display: none;
  flex-direction: column;
  background: transparent;
  border-right: 0;
  min-height: 0;
}

.explore-panel__head {
  padding: 12px 8px 10px;
  border-bottom: 0;
  flex-shrink: 0;
}
.explore-panel__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.explore-panel__count {
  display: none;
}

.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.explore-filters .pill {
  cursor: pointer;
  font: inherit;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line);
  color: var(--muted);
}
.explore-filters .pill.is-active,
.explore-filters .pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.place-item {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--line-soft) 70%, transparent);
  background: color-mix(in srgb, var(--card) 42%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 4px 18px rgba(26, 33, 28, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.place-item.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--card) 62%, transparent);
  box-shadow: 0 8px 24px rgba(26, 33, 28, 0.1);
}
.place-item.is-hidden { display: none; }

.place-item__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  padding: 0;
  color: inherit;
  align-items: stretch;
}
.place-item__link:hover { color: inherit; }
.place-item__img {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-soft);
  display: block;
}
.place-item__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px 10px 0;
  min-width: 0;
  min-height: 88px;
}
.place-item__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.place-item__tags {
  display: flex;
  flex-shrink: 0;
  order: 2;
}
.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--line-soft);
  color: var(--muted);
}
.tag--type {
  background: var(--accent-soft);
  color: var(--online);
}
.place-item__name {
  order: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  flex: 1;
}
.place-item__addr {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.place-item__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.place-item__price {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.place-item__detail {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.place-item__detail:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.place-item.is-active .place-item__detail {
  display: inline-flex;
}


.explore-map {
  position: relative;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  background: var(--bg-soft);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  width: 100%;
}
.explore-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  touch-action: none;
  -ms-touch-action: none;
}
@media (max-width: 899px) {
  body:not(.page-explore) .header {
    display: none;
  }
  body:not(.page-explore) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 899px) {
  body.is-map-view {
    overscroll-behavior: none;
    touch-action: none;
  }
  body.is-map-view .page-explore {
    touch-action: none;
  }

  .explore {
    display: block;
    height: 100svh;
  }
  .explore-panel {
    display: none;
  }
  .explore-map {
    display: block;
    height: 100%;
  }
  .explore-map__canvas,
  .explore .leaflet-container {
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .map-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
  }
  .map-toolbar__pills {
    display: flex;
    justify-content: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 6px;
    overflow: visible;
  }
  .map-toolbar__pills::-webkit-scrollbar { display: none; }
  .map-toolbar__pill {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    padding: 7px 10px;
    font-size: 13px;
  }
  .map-toolbar__pill--search {
    flex: 0 0 auto;
    width: 34px;
    padding: 7px;
  }
  .map-toolbar__icon {
    width: 15px;
    height: 15px;
  }
  .map-toolbar__search {
    display: none;
    width: 100%;
    height: auto;
    min-height: 40px;
  }
  .map-toolbar.is-search .map-toolbar__search {
    display: flex;
  }
  .map-toolbar.is-search .map-toolbar__pill--search {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .map-toolbar__submit {
    display: none;
  }
  .map-toolbar__close {
    font-size: 14px;
    font-weight: 500;
  }

  .explore-nav.explore-nav--float {
    display: flex;
    position: fixed;
    left: 10px;
    right: 62px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 700;
    margin: 0;
    height: 44px;
    box-sizing: border-box;
    padding: 3px;
    align-items: stretch;
  }
  .explore-nav--float .explore-nav__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 13px;
    line-height: 1.2;
  }
  .explore-nav--float .explore-nav__pill.logo {
    font-size: 13px;
  }

  .page-explore .leaflet-bottom.leaflet-right {
    bottom: 72px;
    right: 10px;
  }
}

@media (min-width: 900px) {
  .explore-nav--float {
    display: none !important;
  }
  /* Desktop: nút ngôn ngữ góc dưới phải vẫn hiện */
  body:not(.page-explore) .lang-switch--dock {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 20px;
  }
  .page-explore .lang-switch--dock {
    bottom: 24px;
    right: 24px;
  }

  .page-explore .explore {
    display: grid;
    grid-template-columns: minmax(380px, 460px) 1fr;
    height: 100svh;
    padding: 16px 20px 20px;
    gap: 14px 18px;
    box-sizing: border-box;
  }

  .explore-nav--panel {
    display: flex;
    flex-shrink: 0;
    margin: 0 0 12px;
  }

  .explore-panel {
    display: flex;
    max-height: none;
    min-height: 0;
  }
  .explore-panel__head {
    padding: 4px 4px 14px;
  }
  .explore-panel__title {
    font-size: 18px;
  }
  .place-list {
    padding: 0;
    gap: 14px;
    background: transparent;
  }
  .place-item__link {
    grid-template-columns: auto 1fr;
  }
  .place-item__img {
    width: 108px;
    height: 108px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .place-item__body {
    padding: 12px 14px 12px 0;
    min-height: 108px;
  }
  .place-item__name {
    font-size: 16px;
  }
  .place-item__addr {
    font-size: 13px;
  }
  .place-item__price {
    margin-top: 0;
    font-size: 16px;
  }
  .place-item__detail {
    margin-top: 0;
    font-size: 14px;
  }

  .explore-map {
    margin-top: 0;
    height: 100%;
    min-height: 0;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .explore-map__canvas {
    height: 100%;
    min-height: 0;
  }

  .map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .map-toolbar__pill--search {
    display: none;
  }
  .map-toolbar__search {
    display: flex;
    width: min(340px, 42%);
    margin-left: auto;
  }
  .map-toolbar__close {
    display: none;
  }
}

.leaflet-container {
  font: inherit;
  background: var(--bg-soft);
  border-radius: inherit;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  -ms-touch-action: none;
  cursor: grab;
}
.leaflet-container.leaflet-dragging,
.leaflet-container.leaflet-drag-target {
  cursor: grabbing;
}
.leaflet-container img.leaflet-tile {
  pointer-events: none;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--shadow) !important;
  border-radius: 12px !important;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  color: var(--ink) !important;
  border-bottom-color: var(--line-soft) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}
.leaflet-control-zoom a:hover { background: rgba(255, 255, 255, 0.75) !important; color: var(--red) !important; }

.leaflet-bottom.leaflet-right { margin: 0 14px 14px 0; }
.leaflet-control-attribution { display: none !important; }

/* Price bubble markers */
.sb-price-pin {
  background: transparent !important;
  border: 0 !important;
}
.sb-price-pin__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -100%);
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.sb-price-pin:hover .sb-price-pin__label,
.sb-price-pin.is-active .sb-price-pin__label {
  background: var(--red);
  color: #fff;
  border-color: transparent;
  transform: translate(-50%, -100%) scale(1.08);
  z-index: 10;
}

/* Card popup */
.sb-popup-wrap .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(61,52,54,.18);
  border: 1px solid var(--line);
}
.sb-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}
.sb-popup-wrap .leaflet-popup-tip {
  box-shadow: none;
  background: #fff;
}
.sb-popup__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.sb-popup__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-popup__body strong {
  font-size: 14px;
  line-height: 1.3;
}
.sb-popup__addr {
  font-size: 12px;
  color: var(--muted);
}
.sb-popup__price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.sb-popup__link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.sb-popup__link:hover { background: var(--ink); }
