/* =========================================================
   Phú Quốc Ơi — giao diện v2
   ========================================================= */
:root {
  --bg: #f8f4ec;
  --surface: #ffffff;
  --surface-2: #fcf9f3;
  --ink: #14262b;
  --muted: #56696f;
  --line: #e8e0d2;
  --sea: #0a5c66;
  --sea-2: #0f7f86;
  --lagoon: #16a6a1;
  --sea-soft: #e3f2f1;
  --coral: #cf5529;
  --coral-soft: #fcebe3;
  --sun: #f2b33d;
  --sun-soft: #fdf3dc;
  --palm: #2f7d4f;
  --palm-soft: #e5f2ea;
  --footer: #0b3a40;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --read: 760px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 43, .06);
  --shadow: 0 2px 6px rgba(20, 38, 43, .05), 0 14px 34px rgba(20, 38, 43, .08);
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d181b;
    --surface: #132327;
    --surface-2: #101e21;
    --ink: #e7eef0;
    --muted: #9fb2b8;
    --line: #23383d;
    --sea: #5fcbcf;
    --sea-2: #7fd8da;
    --lagoon: #4cc9c2;
    --sea-soft: #15302f;
    --coral: #f2906a;
    --coral-soft: #33221c;
    --sun: #f5c25e;
    --sun-soft: #30291a;
    --palm: #7cc79a;
    --palm-soft: #18291f;
    --footer: #081316;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 14px 34px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d181b; --surface: #132327; --surface-2: #101e21; --ink: #e7eef0; --muted: #9fb2b8; --line: #23383d;
  --sea: #5fcbcf; --sea-2: #7fd8da; --lagoon: #4cc9c2; --sea-soft: #15302f; --coral: #f2906a; --coral-soft: #33221c;
  --sun: #f5c25e; --sun-soft: #30291a; --palm: #7cc79a; --palm-soft: #18291f; --footer: #081316;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { color: var(--coral); font-style: italic; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--sea); background: var(--sea-soft); }
.nav a[aria-current="page"] { color: var(--sea); background: var(--sea-soft); font-weight: 600; }
.nav .lang { border: 1px solid var(--line); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-left: 4px; }
.nav-toggle { display: none; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.nav-toggle .ico { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 12px; }
  .js .site-header.open .nav { display: flex; }
  .js .nav a { padding: 10px 12px; border-radius: 10px; }
  .js .nav .lang { margin: 6px 0 0; align-self: flex-start; }
}

/* ---------- Reading progress & back to top ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral)); }
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 9; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--sea); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ico { width: 20px; height: 20px; }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--sun); color: #2a1d05; box-shadow: 0 6px 18px rgba(242, 179, 61, .35); }
.btn-primary:hover { color: #2a1d05; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 214, 120, .55), transparent 26%),
    linear-gradient(180deg, #0b5f69 0%, #12898c 45%, #4bb6a9 75%, #f2c27a 100%);
  padding: 72px 0 0;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 150px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 18px; max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, .15); }
.hero h1 em { color: var(--sun); font-style: italic; }
.hero p { font-size: 1.12rem; max-width: 600px; margin: 0 0 26px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; z-index: 1; display: block; }
.hero-art .sea-back { fill: #1b8f92; }
.hero-art .sea-mid { fill: #0f7479; }
.hero-art .sea-front { fill: var(--bg); }

.hero.has-photo { background: #0b3a40; min-height: min(92vh, 760px); display: flex; align-items: flex-end; padding-top: 110px; }
.hero.has-photo .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 24, 30, .25) 0%, rgba(4, 24, 30, .2) 35%, rgba(4, 24, 30, .78) 100%); }
.hero.has-photo .hero-inner { width: 100%; }
.hero .photo-credit { top: 12px; bottom: auto; }

.facts { position: relative; z-index: 3; margin-top: -54px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 20px 22px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .ico { width: 30px; height: 30px; color: var(--lagoon); }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.fact span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section h2, .section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 6px 0 6px; }
.section .lead { color: var(--muted); margin: 0; max-width: 640px; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.see-all { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-cover { position: relative; height: 132px; display: grid; place-items: center; overflow: hidden; color: #fff; }
.card-cover::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 80px; background: rgba(255, 255, 255, .14); border-radius: 50%; }
.card-cover .ico { width: 52px; height: 52px; stroke-width: 1.5; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .15)); }
.cover-sea { background: linear-gradient(135deg, #0b5f69, #16a6a1); }
.cover-sun { background: linear-gradient(135deg, #e8932e, #f4c45a); }
.cover-coral { background: linear-gradient(135deg, #b8452a, #ec8a5b); }
.cover-palm { background: linear-gradient(135deg, #1f6a43, #5bb27a); }
.cover-dusk { background: linear-gradient(135deg, #5b3f8c, #e0795d); }
.cover-lagoon { background: linear-gradient(135deg, #1386a8, #5fd0c9); }
.cover-rose { background: linear-gradient(135deg, #8e3f68, #e397ae); }
.cover-indigo { background: linear-gradient(135deg, #283f7f, #5f8fd8); }
.card-band { height: 8px; background: var(--sea); }
.card-band.coral { background: var(--coral); }
.card-band.sun { background: var(--sun); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--sea); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; position: relative; z-index: 1; }

.card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--sea-soft); }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.photo-card { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; display: block; background: #0b3a40; box-shadow: var(--shadow-sm); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 24, 30, .82)); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card:hover { color: #fff; }
.photo-card .pc-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.photo-card .pc-text small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.photo-card .pc-text strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-top: 2px; }
.photo-card .pc-credit { position: absolute; top: 8px; right: 10px; z-index: 1; font-size: .68rem; color: rgba(255, 255, 255, .8); }
.photo-card.big { grid-column: span 2; grid-row: span 2; }
.photo-card.big .pc-text strong { font-size: 1.9rem; }
.photo-card.wide { grid-column: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; } .photo-card.big, .photo-card.wide { grid-column: auto; grid-row: span 1; } .photo-card.big { grid-row: span 2; } }

/* Author strip */
.author-strip { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.author-strip .avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, var(--sea), var(--lagoon)); }
.author-strip h3 { margin: 0 0 4px; font-size: 1.15rem; }
.author-strip p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .author-strip { flex-direction: column; align-items: flex-start; } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.tile-icon .ico { width: 26px; height: 26px; }
.tile strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.tile span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.tile .tile-icon { display: grid; color: #fff; }
.tile strong { color: var(--ink); }

/* Start-here boxes */
.intro-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; box-shadow: var(--shadow-sm); }
.intro-box h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--sea); display: flex; align-items: center; gap: 8px; }
.intro-box h3 .ico { width: 20px; height: 20px; color: var(--coral); }
.intro-box p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Region map ---------- */
.region-wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 36px; align-items: center; }
.island-map { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.island-map .land { fill: #cfe7d6; stroke: #7fb595; stroke-width: 2; }
.island-map .forest { fill: #a9d5b6; }
.island-map .water { fill: var(--sea-soft); }
.island-map .islet { fill: #cfe7d6; stroke: #7fb595; stroke-width: 1.5; }
.island-map .pin circle { fill: var(--coral); stroke: #fff; stroke-width: 3; }
.island-map .pin text { font: 700 13px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.island-map a:hover circle, .island-map a:focus circle { fill: var(--sun); }
.island-map .compass { font: 700 12px var(--font-body); fill: var(--muted); }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.region { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: 90px; }
.region h3 { margin: 0 0 4px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.region h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); flex: none; }
.region p { margin: 0 0 8px; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.region ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
@media (max-width: 760px) { .region-wrap { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--sun) 28%, transparent), transparent 40%),
    linear-gradient(170deg, var(--sea-soft), var(--bg) 85%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 38px;
}
.article-hero.has-photo {
  overflow: hidden;
  min-height: min(68vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 46px;
  border-bottom: 0;
  color: #fff;
  background: #0b3a40;
}
.article-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 25, 30, .15) 0%, rgba(5, 25, 30, .35) 45%, rgba(5, 25, 30, .82) 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-hero.has-photo > .read, .article-hero.has-photo > .wrap { position: relative; z-index: 2; width: 100%; }
.article-hero.has-photo > .wrap h1 { max-width: 820px; }
.article-hero.has-photo > .wrap .summary { max-width: 720px; }
.article-hero.has-photo h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.article-hero.has-photo .summary, .article-hero.has-photo .meta, .article-hero.has-photo .breadcrumb, .article-hero.has-photo .breadcrumb a { color: rgba(255, 255, 255, .9); }
.article-hero.has-photo .meta strong { color: #fff; }
.article-hero.has-photo a { color: #fff; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .78); }
.photo-credit a { color: rgba(255, 255, 255, .92); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.article-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.16; margin: 0 0 14px; }
.article-hero .summary { color: var(--muted); font-size: 1.1rem; margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 600; }

.article { padding: 32px 0 56px; }
.article h2 { font-size: clamp(1.45rem, 3vw, 1.75rem); line-height: 1.28; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.article h3 { font-size: 1.16rem; margin: 1.7em 0 .45em; scroll-margin-top: 90px; }
.article p { margin: 0 0 1.15em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--lagoon); }

.toc { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lagoon); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 30px; font-size: .95rem; box-shadow: var(--shadow-sm); }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.08rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.note, .tip, .warn { border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.35em; font-size: .97rem; border-left: 4px solid var(--sea); background: var(--sea-soft); }
.tip { border-left-color: var(--sun); background: var(--sun-soft); }
.warn { border-left-color: var(--coral); background: var(--coral-soft); }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; background: var(--surface); }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sea-soft); font-weight: 700; color: var(--ink); }
tbody tr:nth-child(even) td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lagoon); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }

.related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 26px; }
.related h2 { margin-top: 0; font-size: 1.35rem; }
.related ul { padding-left: 1.2em; }
.updated-note { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 34px; }

/* ---------- Places directory ---------- */
.place-hero .cat-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; margin-bottom: 14px; box-shadow: var(--shadow); }
.place-hero .cat-badge .ico { width: 30px; height: 30px; }
.filter-bar { position: sticky; top: 66px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 12px 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.filter button:hover { border-color: var(--lagoon); color: var(--sea); }
.filter button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.filter-count { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.places { display: grid; gap: 16px; margin: 0 0 1.5em; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.place[hidden] { display: none; }
.place h3 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.35; }
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.place-tags span { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.place-tags .area { color: #fff; border: 0; }
.area.bac { background: #2f7d4f; }
.area.trung-tam { background: #0f7f86; }
.area.dong { background: #6a4fa0; }
.area.nam { background: #cf5529; }
.place-tags .price { color: var(--ink); background: var(--sun-soft); border-color: transparent; }
.place p { margin: 0 0 10px; }
.place-facts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .93rem; color: var(--muted); }
.place-facts strong { color: var(--ink); }
.place-tip { font-size: .93rem; background: var(--sea-soft); border-radius: 10px; padding: 9px 13px; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--muted); margin: 0 0 14px; }

/* ---------- Static pages ---------- */
.page { padding: 40px 0 64px; }
.page h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin: 0 0 10px; line-height: 1.2; }
.page h2 { font-size: 1.4rem; margin: 1.9em 0 .5em; }
.page .muted { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer); color: #b9d3d6; padding: 70px 0 26px; font-size: .93rem; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 0); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.site-footer h4 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.site-footer .footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin: 0 0 8px; }
.site-footer .footer-brand span { color: var(--sun); font-style: italic; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #d7e9eb; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #8fb1b5; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero-inner { padding-bottom: 110px; }
  .section { padding: 40px 0; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .fact:last-child { border-bottom: 0; }
  .header-inner { min-height: 58px; }
  .filter-bar { top: 58px; }
  .place { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Region colours (shared by map dots, tags and region cards) */
.dot.trung-tam, .region .dot.trung-tam { background: #0f7f86; }
.dot.bac, .region .dot.bac { background: #2f7d4f; }
.dot.dong, .region .dot.dong { background: #6a4fa0; }
.dot.nam, .region .dot.nam { background: #cf5529; }
.island-map .compass-arrow { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.island-map .pin.trung-tam circle { fill: #0f7f86; }
.island-map .pin.bac circle { fill: #2f7d4f; }
.island-map .pin.dong circle { fill: #6a4fa0; }
.island-map .pin.nam circle { fill: #cf5529; }
.filter button:disabled { opacity: .45; cursor: not-allowed; }
.place-tags .pick { background: var(--coral); color: #fff; border: 0; }

/* Inline photos inside articles */
.article figure.photo { margin: 1.6em 0 1.8em; }
.article figure.photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--sea-soft); }
.article figure.photo figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.article figure.photo figcaption a { color: var(--muted); }

/* Blog listing */
.card .card-date { font-size: .8rem; color: var(--muted); }
