:root {
  --bg: #FAFBF8;
  --bg-tint: #F4F8F6;
  --surface: #ffffff;
  --ink: #2F3B3A;
  --muted: #5A6A68;
  --line: #D9E5E1;
  --brand: #3D8B7A;
  --brand-dark: #2A6B5D;
  --brand-soft: #D8EFE8;
  --accent: #5B8FB9;
  --accent-soft: #E3F0F8;
  --sand: #EFE8DC;
  --sand-soft: #F7F3EC;
  --warn: #8A6A2F;
  --warn-bg: #FBF3E0;
  --safety: #7A5A20;
  --safety-bg: #FBF3E0;
  --safety-border: #E8D5A8;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(47, 59, 58, 0.06);
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Nunito", "Be Vietnam Pro", system-ui, sans-serif;
  --max: 1080px;
  --max-wide: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,251,248,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: .75rem; min-height: 64px; flex-wrap: wrap; }
.nav__logo {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.nav__logo span { color: var(--brand); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.lang-toggle, .nav__toggle, .nav__dropbtn {
  font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: .4rem .85rem; color: var(--ink);
}
.lang-toggle { font-weight: 700; min-width: 3rem; }
.nav__toggle { width: 44px; height: 40px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
.nav__menu {
  list-style: none; margin: 0; padding: 0;
  display: none; flex-direction: column; gap: .25rem;
  width: 100%; padding-bottom: 1rem;
}
.nav__menu.is-open { display: flex; }
.nav__menu a, .nav__dropbtn {
  display: block; width: 100%; text-align: left; text-decoration: none;
  padding: .65rem .85rem; border-radius: 12px; color: var(--ink); border: 0; background: transparent;
}
.nav__menu a:hover, .nav__dropbtn:hover, .nav__menu a.is-active { background: var(--brand-soft); }
.nav__dropdown { position: relative; }
.nav__submenu {
  list-style: none; margin: .25rem 0 0; padding: .25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: none;
}
.nav__dropdown.is-open .nav__submenu { display: block; }
.nav__submenu a { font-size: .95rem; }
@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex; flex-direction: row; align-items: center; width: auto;
    margin-left: 0; padding-bottom: 0; gap: .15rem; flex: 1; justify-content: flex-end;
  }
  .nav__actions { order: 3; margin-left: .5rem; }
  .nav__logo { order: 0; }
  .nav__menu { order: 2; }
  .nav__menu a, .nav__dropbtn { width: auto; padding: .45rem .7rem; font-size: .92rem; }
  .nav__submenu {
    position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px;
    box-shadow: var(--shadow); z-index: 20;
  }
}
.hero, .page-hero {
  padding: 2.5rem 0 2rem;
}
.page-hero {
  background:
    radial-gradient(circle at 12% 8%, #E3F0F8 0, transparent 42%),
    radial-gradient(circle at 88% 0%, #D8EFE8 0, transparent 38%),
    var(--bg);
}
.page-hero--safety {
  background:
    radial-gradient(circle at 20% 20%, #FBF3E0 0, transparent 45%),
    var(--bg);
}
/* Homepage hero: Yagan Square photo with soft light overlay */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(105deg, rgba(250,251,248,.88) 0%, rgba(250,251,248,.72) 42%, rgba(232,240,236,.55) 100%),
    url("assets/photos/hero/yagan-square-kaya-sm.webp");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}
@media (min-width: 700px) {
  .hero {
    background-image:
      linear-gradient(105deg, rgba(250,251,248,.86) 0%, rgba(250,251,248,.68) 40%, rgba(227,240,248,.52) 100%),
      url("assets/photos/hero/yagan-square-kaya.webp");
  }
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero {
    background-image:
      linear-gradient(105deg, rgba(250,251,248,.88) 0%, rgba(250,251,248,.72) 42%, rgba(232,240,236,.55) 100%),
      image-set(
        url("assets/photos/hero/yagan-square-kaya-sm.webp") type("image/webp") 1x,
        url("assets/photos/hero/yagan-square-kaya.webp") type("image/webp") 2x
      );
  }
  @media (min-width: 700px) {
    .hero {
      background-image:
        linear-gradient(105deg, rgba(250,251,248,.86) 0%, rgba(250,251,248,.68) 40%, rgba(227,240,248,.52) 100%),
        image-set(url("assets/photos/hero/yagan-square-kaya.webp") type("image/webp"));
    }
  }
}
.hero__grid { display: grid; gap: 1.5rem; position: relative; z-index: 1; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.3fr .9fr; align-items: center; }
}
.hero__credit {
  position: absolute; right: .75rem; bottom: .45rem; z-index: 2;
  margin: 0; font-size: .68rem; color: var(--muted); opacity: .85;
  background: rgba(250,251,248,.72); padding: .15rem .45rem; border-radius: 999px;
  text-decoration: none; max-width: calc(100% - 1.5rem);
}
.hero__credit:hover { opacity: 1; color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700;
  color: var(--brand); margin: 0 0 .5rem;
}
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.sample-tag {
  display: inline-block; margin-top: 1rem; padding: .25rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 600;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.hero__list { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.section { padding: 2.5rem 0; }
.section--tint { background: var(--bg-tint); }
.section__lead { color: var(--muted); max-width: 42rem; }
.map-wrap {
  display: grid; gap: 1.5rem; margin-top: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 1rem; box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .map-wrap { grid-template-columns: minmax(220px, 320px) 1fr; align-items: start; padding: 1.25rem; }
}
.wa-map { width: 100%; height: auto; }
.map-region path {
  fill: #C5DDD5; stroke: #fff; stroke-width: 3; transition: fill .15s ease, transform .15s ease;
}
.map-region--metro path { fill: #A8D0E8; }
.map-region text {
  fill: #2F3B3A; font-family: var(--display); font-size: 13px; font-weight: 800;
  pointer-events: none;
}
.map-region .map-sub { font-size: 11px; font-weight: 700; }
.map-legend { fill: var(--muted); font-size: 12px; font-weight: 700; }
.map-region:hover path, .map-region:focus path { fill: var(--brand); }
.map-region:hover text, .map-region:focus text { fill: #fff; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.region-list a {
  display: flex; gap: .75rem; align-items: flex-start; text-decoration: none; color: inherit;
  padding: .75rem; border-radius: 12px; border: 1px solid transparent;
}
.region-list a:hover { background: var(--bg-tint); border-color: var(--line); }
.region-list__n {
  flex: 0 0 1.8rem; height: 1.8rem; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.region-list small { display: block; color: var(--muted); font-size: .82rem; }
.card-grid {
  display: grid; gap: 1rem; margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; text-decoration: none; color: inherit; box-shadow: 0 4px 16px rgba(47,59,58,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #B7D4CC; }
.card p { color: var(--muted); margin: 0; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--brand-dark); background: var(--brand-soft);
  padding: .2rem .5rem; border-radius: 999px; margin: 0 0 .6rem;
}
.callout {
  margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #C5DCEB;
}
.callout--safety { background: var(--safety-bg); border-color: var(--safety-border); }
.safety-banner {
  display: grid; gap: .35rem; margin: 0 0 1.25rem; padding: .9rem 1rem;
  border-radius: 12px; background: var(--safety-bg); border: 1px solid var(--safety-border); color: var(--safety);
  font-size: .95rem;
}
.safety-banner__link { font-weight: 700; color: var(--safety); }
.prose h2 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink); }
.muted { color: var(--muted); }
.warn { color: var(--warn); background: var(--warn-bg); padding: .75rem 1rem; border-radius: 12px; }
.guide-list { display: grid; gap: 1rem; }
.guide {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.guide ul { margin: .4rem 0; color: var(--muted); }
.form { display: grid; gap: .85rem; margin-top: 1rem; max-width: 34rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  font: inherit; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.form-note { font-size: .85rem; color: var(--muted); margin: 0; font-weight: 400; }
.scam-list, .help-links { padding-left: 1.1rem; }
.scam-list li, .help-links li { margin-bottom: .75rem; }
.site-footer {
  margin-top: 2rem; padding: 2.5rem 0 1.5rem; background: #2F3B3A; color: #EAF2F0;
}
.site-footer a { color: #B8DFD4; }
.footer__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer__brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0 0 .5rem; }
.footer__heading { font-weight: 800; margin: 0 0 .5rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__note { color: #B7C5C2; font-size: .9rem; }
.footer__bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #445553; color: #A8B8B5; font-size: .85rem; }

/* i18n: default Vietnamese */
html[lang="vi"] .lang-en { display: none !important; }
html[lang="en"] .lang-vi { display: none !important; }
/* When both siblings need space in mixed blocks already handled by hiding */

.top-safety {
  background: #FBF3E0;
  color: #5C4A1F;
  font-size: .88rem;
  border-bottom: 1px solid #E8D5A8;
}
.top-safety__inner { padding: .55rem 0; }
.top-safety p { margin: 0; line-height: 1.45; }
.top-safety a { color: #2A6B5D; font-weight: 700; }
.top-safety a:hover { color: #1F5247; }

.rules-summary {
  margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg-tint); border: 1px solid var(--line); font-size: .92rem; color: var(--muted);
}
.rules-summary p { margin: .25rem 0; }
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 560px; margin-inline: auto;
  background: #2F3B3A; color: #EAF2F0; border-radius: 14px;
  padding: .9rem 1rem; box-shadow: var(--shadow); font-size: .9rem;
  display: none;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar a { color: #B8DFD4; }
.cookie-bar__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.cookie-bar .btn { padding: .45rem .9rem; font-size: .85rem; }

.section { padding: 2.75rem 0; }
.container--wide { width: min(100% - 2rem, var(--max-wide)); margin-inline: auto; }
.layout-rail {
  display: grid; gap: 1.5rem; align-items: start;
}
@media (min-width: 1100px) {
  .layout-rail {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.ad-rail {
  display: none;
}
@media (min-width: 1100px) {
  .ad-rail {
    display: block;
    position: sticky; top: 88px;
  }
}
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; text-align: center;
  border: 1.5px dashed #C5D4CF;
  background: var(--sand-soft);
  border-radius: 14px;
  color: var(--muted);
  font-size: .82rem;
  padding: .75rem;
  box-sizing: border-box;
  overflow: hidden;
}
.ad-slot__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7A8C89; margin: 0;
}
.ad-slot__cta { font-size: .78rem; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.ad-slot__cta:hover { text-decoration: underline; }
.ad-slot--sidebar {
  width: 300px; min-height: 250px; height: 600px; max-height: 600px;
}
.ad-slot--infeed {
  width: 100%; min-height: 100px; height: 100px; margin: 1.25rem 0;
}
.ad-slot--article {
  width: 100%; min-height: 100px; height: 120px; margin: 1.5rem 0 0;
}
.ad-slot--leaderboard {
  width: min(100%, 728px); min-height: 90px; height: 90px; margin: 0 auto 1.25rem;
}
.ad-slot .adsbygoogle { display: block; width: 100%; }
.footer-ad-wrap {
  background: var(--bg-tint); border-top: 1px solid var(--line);
  padding: 1.25rem 0 .25rem;
}

.photo-grid {
  display: grid; gap: .85rem; margin: 1rem 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.photo-grid--one { grid-template-columns: 1fr; max-width: 420px; }
.photo-card { margin: 0; }
.photo-card__btn {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.photo-card__btn img {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.photo-credit {
  font-size: .72rem; color: var(--muted); margin: .35rem .15rem 0; line-height: 1.35;
}
.photo-credit a { color: var(--brand-dark); }
.dest-town { margin: 1.75rem 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.dest-town:last-child { border-bottom: 0; }
.perth-gallery {
  display: grid; gap: 1.25rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.perth-spot h4 { margin: .5rem 0 .2rem; font-size: 1.05rem; }
.activity-tag {
  display: inline-block; margin: 0; padding: .2rem .55rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: .78rem; font-weight: 600;
}
.table-wrap { overflow-x: auto; }
.credits-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.credits-table th, .credits-table td {
  text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.credits-table th { background: var(--bg-tint); }
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(20,28,27,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__img { max-width: min(96vw, 1100px); max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox__credit { color: #EAF2F0; font-size: .85rem; margin: .75rem 0 0; text-align: center; }
.lightbox__close {
  position: absolute; top: .75rem; right: 1rem; border: 0; background: transparent;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.dest-embed .photo-card__btn img { height: 160px; }

/* Homepage full-page background: Sugarloaf Rock (photo by Phong) */
body.home { position: relative; background: transparent; }
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    url("assets/photos/home/sugarloaf-rock.webp") center 62% / cover no-repeat;
}
@media (max-width: 760px) {
  body.home::before {
    background:
      url("assets/photos/home/sugarloaf-rock-sm.webp") center 62% / cover no-repeat;
  }
}

/* Homepage: section headings in a white banner panel over the photo */
body.home .section--tint { background: transparent; }
.section-banner {
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: inline-block; max-width: 100%;
}
.section-banner > :last-child { margin-bottom: 0; }
.section-banner > :first-child { margin-top: 0; }

/* ---- Forum / accounts ---- */
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.forum-form label { display: block; margin: .75rem 0 .35rem; font-weight: 600; }
.forum-form input, .forum-form select, .forum-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: inherit; padding: .65rem .8rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.forum-form textarea { resize: vertical; min-height: 120px; }
.forum-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.forum-form .check input { width: auto; margin-top: .35rem; }
.form-note { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; }
.form-msg { margin: .75rem 0; padding: .65rem .85rem; border-radius: 12px; }
.form-msg--ok { background: var(--brand-soft); color: var(--brand-dark); }
.form-msg--err { background: #FCE8E6; color: #8A2F2F; }
.btn--danger { background: #B33A3A; color: #fff; border: 0; }
.btn--danger:hover { background: #8F2C2C; color: #fff; }
.btn--small { padding: .35rem .7rem; font-size: .85rem; border-radius: 999px; }
.forum-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; padding: 1rem; }
.forum-filters label { flex: 1; min-width: 140px; font-weight: 600; font-size: .9rem; }
.forum-filters select { width: 100%; margin-top: .35rem; font: inherit; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line); }
.thread-list { display: grid; gap: .85rem; }
.thread-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.thread-card h3 a { text-decoration: none; color: var(--ink); }
.thread-card h3 a:hover { color: var(--brand-dark); }
.thread-meta { margin: 0; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem .65rem; align-items: center; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill--soft { background: var(--accent-soft); color: #2F5A7A; }
.badge-admin { display: inline-block; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; margin-left: .25rem; vertical-align: middle; }
.post-list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.post-card__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-bottom: .5rem; color: var(--muted); font-size: .9rem; }
.post-card__head strong { color: var(--ink); }
.post-card__head time { margin-left: auto; font-size: .8rem; }
.post-card__body { white-space: normal; line-height: 1.65; }
.post-status { font-size: .85rem; margin: .5rem 0 0; }
.post-status--pending { color: var(--warn); background: var(--warn-bg); display: inline-block; padding: .25rem .6rem; border-radius: 8px; }
.post-status--hidden { color: #8A2F2F; background: #FCE8E6; display: inline-block; padding: .25rem .6rem; border-radius: 8px; }
.admin-list { display: grid; gap: .85rem; margin-bottom: 2rem; }
.admin-body { white-space: pre-wrap; background: var(--bg-tint); padding: .75rem; border-radius: 10px; font: inherit; font-size: .92rem; overflow: auto; max-height: 220px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.footer__admin { opacity: .55; font-size: .85rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
