/* ==========================================================
   CA›SIN›O Guide  |  Luxury Gold Travel Blog
   ========================================================== */

:root {
  --gold: #b8975a;
  --gold-light: #d9c08e;
  --gold-pale: #f3ead8;
  --gold-deep: #8c6d35;
  --gold-gradient: linear-gradient(135deg, #8c6d35 0%, #c9a961 35%, #ecd9a8 55%, #b8975a 75%, #8c6d35 100%);

  --ink: #17150f;
  --ink-2: #2a261d;
  --text: #3d382d;
  --muted: #857c6a;
  --line: #e7dfcf;
  --paper: #fbf8f2;
  --white: #ffffff;

  --font-display-en: "Cormorant Garamond", "Noto Serif Thai", serif;
  --font-display-th: "Noto Serif Thai", "Cormorant Garamond", serif;
  --font-body: "IBM Plex Sans Thai", "Inter", system-ui, sans-serif;

  --radius: 2px;
  --container: 1200px;
  --shadow: 0 20px 50px -25px rgba(23, 21, 15, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display-th); color: var(--ink); font-weight: 500; line-height: 1.35; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { font-family: var(--font-display-en); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 18px 0;
}
.divider-ornament::before, .divider-ornament::after { content: ""; width: 60px; height: 1px; background: currentColor; opacity: .6; }
.divider-ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; border: 1px solid var(--gold); color: var(--ink);
  background: transparent; cursor: pointer; transition: all .4s var(--ease);
  font-family: var(--font-body);
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn-gold { background: var(--gold-gradient); background-size: 200% 200%; color: var(--ink); border-color: transparent; }
.btn-gold:hover { background-position: 100% 0; color: var(--ink); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Top bar & Header ---------- */
.topbar {
  background: var(--ink); color: var(--gold-light);
  font-size: 12px; letter-spacing: .12em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-social { display: flex; gap: 18px; }
.topbar-social a { opacity: .8; transition: opacity .3s; }
.topbar-social a:hover { opacity: 1; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(23,21,15,.35); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 80px; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mark {
  font-family: "Cormorant Garamond", serif; font-size: 28px; font-weight: 600; letter-spacing: .14em;
}
.logo-mark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.logo-sep {
  font-style: normal; font-weight: 400; color: var(--gold); opacity: .75;
  margin: 0 .22em; font-size: .8em; transform: translateY(-.04em);
}
.logo-guide {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  letter-spacing: .02em; color: var(--ink-2); margin-left: .35em; font-size: .92em;
}
.footer .logo-guide { color: rgba(255,255,255,.85); }
.logo-sub { font-size: 9px; letter-spacing: .5em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }

.nav { display: flex; gap: 36px; }
.nav a {
  white-space: nowrap;
  font-size: 14px; font-weight: 400; color: var(--ink-2); position: relative; padding: 6px 0;
  letter-spacing: .04em;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: all .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { left: 0; width: 100%; }
.nav a.active { color: var(--gold-deep); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--ink-2); transition: all .3s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.lang-switch {
  display: flex; border: 1px solid var(--gold); border-radius: 40px; padding: 3px; gap: 2px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 40px; color: var(--gold-deep); transition: all .3s;
}
.lang-switch button.active { background: var(--gold-gradient); color: var(--ink); }

.menu-toggle { display: none; }

/* Destination switcher (lives in the top bar) */
.topbar-right { display: flex; align-items: center; gap: 24px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px;
  border: 1px solid rgba(201,169,97,.45); border-radius: 40px;
  font-size: 12px; color: var(--gold-light); white-space: nowrap; transition: all .3s;
}
.loc-chip svg { color: var(--gold); flex-shrink: 0; }
.loc-chip small { color: rgba(255,255,255,.5); font-size: 11px; }
.loc-chip:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.loc-chip:hover svg, .loc-chip:hover small { color: var(--ink); }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--ink) center/cover no-repeat;
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,21,15,.88) 0%, rgba(23,21,15,.55) 50%, rgba(23,21,15,.2) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 {
  color: var(--white); font-size: clamp(40px, 6vw, 76px); font-weight: 400; margin: 22px 0 24px;
  line-height: 1.2;
}
.hero h1 em { font-style: italic; }
.hero p { font-size: 18px; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-frame {
  position: absolute; z-index: 1; inset: 28px; border: 1px solid rgba(201,169,97,.35); pointer-events: none;
}
.hero-stats {
  position: absolute; z-index: 2; right: 0; bottom: 0;
  display: flex; background: rgba(23,21,15,.75); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,169,97,.4); border-left: 1px solid rgba(201,169,97,.4);
}
.hero-stats div { padding: 26px 40px; text-align: center; border-right: 1px solid rgba(201,169,97,.2); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 38px; font-weight: 500; line-height: 1; }
.hero-stats span { font-size: 11px; letter-spacing: .2em; color: var(--gold-light); text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: rgba(255,255,255,.75); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; gap: 24px; }
.section-head-row h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; }
.link-more {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; white-space: nowrap;
}

/* ---------- Image wrapper with gold fallback ---------- */
.img-wrap { position: relative; overflow: hidden; background: var(--gold-gradient); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ---------- Featured post ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--white); box-shadow: var(--shadow); }
.featured .img-wrap { min-height: 520px; }
.featured:hover .img-wrap img { transform: scale(1.05); }
.featured-body { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: clamp(28px, 3vw, 40px); margin: 18px 0; }
.featured-body p { color: var(--muted); margin-bottom: 28px; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); align-items: center; }
.meta .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500;
}
.tag-chip {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold-deep);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; background: rgba(255,255,255,.9);
}

/* ---------- Category tiles ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { position: relative; aspect-ratio: 3/4; color: var(--white); display: block; }
.cat-card .img-wrap { position: absolute; inset: 0; }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23,21,15,.85) 100%);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 2; }
.cat-card h3 { color: var(--white); font-size: 26px; }
.cat-card span { font-size: 12px; letter-spacing: .2em; color: var(--gold-light); text-transform: uppercase; }
.cat-card .frame { position: absolute; inset: 14px; border: 1px solid rgba(217,192,142,0); z-index: 2; transition: border-color .5s; }
.cat-card:hover .frame { border-color: rgba(217,192,142,.7); }

/* ---------- Post grid ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post-card { display: flex; flex-direction: column; }
.post-card .img-wrap { aspect-ratio: 4/3; margin-bottom: 24px; }
.post-card .tag-chip { position: absolute; top: 18px; left: 18px; z-index: 2; }
.post-card:hover img { transform: scale(1.06); }
.post-card h3 { font-size: 23px; margin: 10px 0 12px; transition: color .3s; }
.post-card:hover h3 { color: var(--gold-deep); }
.post-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; flex: 1; }

/* ---------- Destinations strip ---------- */
.destinations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(201,169,97,.25); border: 1px solid rgba(201,169,97,.25); }
.dest { background: var(--ink); padding: 40px 24px; text-align: center; transition: background .4s; }
.dest:hover { background: var(--ink-2); }
.dest strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 44px; font-weight: 400; line-height: 1; }
.dest h3 { font-size: 20px; margin: 12px 0 4px; }
.dest span { font-size: 12px; letter-spacing: .16em; color: var(--gold-light); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { position: relative; }
.about-img .img-wrap { aspect-ratio: 4/5; }
.about-img::before { content: ""; position: absolute; inset: -24px 24px 24px -24px; border: 1px solid var(--gold); z-index: -1; }
.about h2 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 22px; }
.about p { margin-bottom: 18px; }
.signature { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 34px; margin-top: 12px; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; position: relative; overflow: hidden; }
.newsletter::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: radial-gradient(circle at 20% 30%, var(--gold) 0, transparent 40%), radial-gradient(circle at 80% 70%, var(--gold) 0, transparent 40%);
}
.newsletter h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 12px; }
.newsletter form { display: flex; max-width: 520px; margin: 36px auto 0; border: 1px solid rgba(201,169,97,.5); position: relative; }
.newsletter input {
  flex: 1; background: transparent; border: 0; padding: 18px 22px; color: var(--white);
  font-family: var(--font-body); font-size: 15px; outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,.45); }

/* ---------- Footer ---------- */
.footer { background: #100f0b; color: rgba(255,255,255,.6); padding: 80px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer .logo-mark { font-size: 26px; }
.footer .logo-sub { color: rgba(255,255,255,.4); }
.footer h4 { color: var(--gold-light); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); font-weight: 500; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(201,169,97,.18); padding: 24px 0; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; }

/* ==========================================================
   BLOG DETAIL
   ========================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold-gradient); z-index: 200; }

.breadcrumb { font-size: 13px; color: var(--muted); padding: 28px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb li:last-child { color: var(--ink-2); }

.post-header { text-align: center; max-width: 880px; margin: 0 auto; padding: 48px 24px 48px; }
.post-header h1 { font-size: clamp(34px, 5vw, 60px); margin: 22px 0 18px; font-weight: 500; }
.post-header .lead { font-size: 19px; color: var(--muted); max-width: 700px; margin: 0 auto 28px; }
.post-header .meta { justify-content: center; }

.author-inline { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); padding: 2px; background: var(--white); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; padding: 4px; flex-shrink: 0; }

.post-cover { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.post-cover .img-wrap { aspect-ratio: 21/9; }
.post-cover figcaption, .article figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; font-style: italic; }

.post-layout {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 64px; gap: 64px;
  max-width: 1240px; margin: 72px auto 0; padding: 0 24px;
}

/* --- Table of Contents --- */
.toc {
  position: sticky; top: 112px; align-self: start;
  border-top: 2px solid var(--gold); background: var(--white);
  padding: 28px 26px; box-shadow: var(--shadow);
  max-height: calc(100vh - 140px); overflow: auto;
}
.toc-title {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep);
  font-weight: 500; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center;
}
.toc-toggle { display: none; background: none; border: 0; color: var(--gold-deep); cursor: pointer; font-size: 18px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc > nav > ol > li { counter-increment: toc; }
.toc a {
  display: block; font-size: 14px; color: var(--text); padding: 8px 0 8px 14px; line-height: 1.5;
  border-left: 1px solid var(--line); transition: all .25s;
}
.toc > nav > ol > li > a::before { content: counter(toc, decimal-leading-zero) ". "; color: var(--gold); font-size: 12px; }
.toc ol ol a { padding-left: 30px; font-size: 13px; color: var(--muted); }
.toc a:hover { color: var(--gold-deep); border-left-color: var(--gold-light); }
.toc a.active { color: var(--gold-deep); border-left: 2px solid var(--gold); font-weight: 500; background: linear-gradient(90deg, var(--gold-pale), transparent); }

/* --- Article typography --- */
.article { font-size: 18px; color: var(--text); min-width: 0; }
.article > * + * { margin-top: 1.4em; }
.article h2 {
  font-size: clamp(28px, 3vw, 36px); margin-top: 2.4em; padding-top: .4em; position: relative;
}
.article h2::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold-gradient); margin-bottom: 18px; }
.article h3 { font-size: 24px; margin-top: 1.8em; }
.article h2:first-child { margin-top: 0; }
.article .anchor {
  margin-left: 10px; color: var(--gold); opacity: 0; font-size: .7em; transition: opacity .2s; vertical-align: middle;
}
.article h2:hover .anchor, .article h3:hover .anchor { opacity: 1; }
.article p strong { color: var(--ink); font-weight: 500; }
.article a:not(.anchor) { color: var(--gold-deep); border-bottom: 1px solid var(--gold-light); }
.article ul.list { padding-left: 0; }
.article ul.list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.article ul.list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }

.article figure .img-wrap { aspect-ratio: 16/10; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.figure-pair .img-wrap { aspect-ratio: 4/5; }

.dropcap::first-letter {
  float: left; font-family: "Cormorant Garamond", serif; font-size: 4.4em; line-height: .85;
  padding: 6px 12px 0 0; color: var(--gold);
}

blockquote {
  border: 0; padding: 36px 40px; background: var(--white); position: relative; text-align: center;
  font-family: var(--font-display-th); font-size: 23px; color: var(--ink); line-height: 1.6;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
html[lang="en"] blockquote { font-family: var(--font-display-en); font-size: 26px; font-style: italic; }
blockquote::before {
  content: "\201C"; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif; font-size: 80px; color: var(--gold); background: var(--paper); padding: 0 16px; line-height: 1;
}
blockquote cite { display: block; font-size: 13px; font-style: normal; letter-spacing: .2em; color: var(--gold-deep); margin-top: 14px; font-family: var(--font-body); text-transform: uppercase; }

.callout { background: var(--gold-pale); border-left: 3px solid var(--gold); padding: 24px 28px; font-size: 16px; }
.callout strong { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; font-weight: 500; }

.day-card { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.day-card:last-of-type { border-bottom: 1px solid var(--line); }
.day-num { text-align: center; }
.day-num small { display: block; font-size: 11px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.day-num b { font-family: "Cormorant Garamond", serif; font-size: 52px; font-weight: 500; line-height: 1; }
.day-card h4 { font-size: 20px; margin-bottom: 6px; }
.day-card p { font-size: 16px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
th { background: var(--ink); color: var(--gold-light); font-weight: 500; text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: .1em; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; font-weight: 500; color: var(--ink); background: var(--gold-pale); }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 16px; color: var(--muted); }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 56px !important; }
.post-tags a { padding: 6px 16px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: all .3s; }
.post-tags a:hover { border-color: var(--gold); color: var(--gold-deep); }

.author-box { display: flex; gap: 28px; align-items: center; background: var(--white); padding: 36px; border: 1px solid var(--line); }
.author-box h4 { font-size: 22px; }
.author-box p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* --- Share rail --- */
.share { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share small { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.share .icon-btn { width: 44px; height: 44px; background: var(--white); }

/* --- Related --- */
.related { margin-top: 110px; padding: 100px 0; background: var(--white); border-top: 1px solid var(--line); }

/* --- Back to top --- */
.to-top {
  position: fixed; right: 28px; bottom: 28px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--gold-light); border: 1px solid var(--gold);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: all .4s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* ---------- Thai typography: wide tracking breaks Thai glyphs ---------- */
html[lang="th"] :is(.btn, .eyebrow, .tag, .tag-chip, .link-more, .hero-stats span, .cat-card span,
  .toc-title, .footer h4, .share small, .callout strong, .dest span, .topbar) { letter-spacing: .03em; }

/* ---------- Bilingual blocks ---------- */
html[lang="th"] [data-lang="en"],
html[lang="en"] [data-lang="th"] { display: none !important; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1320px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .header .logo-mark { font-size: 24px; }
  .header .container { gap: 20px; }
}

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .share { display: none; }
  .destinations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--ink);
    flex-direction: column; padding: 100px 36px; gap: 22px; transform: translateX(100%); transition: transform .45s var(--ease); z-index: 150;
  }
  .nav.open { transform: none; }
  .nav a { color: var(--white); font-size: 18px; }
  .menu-toggle { display: grid; position: relative; z-index: 160; }
  .header-actions .search-btn { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured .img-wrap { min-height: 320px; }
  .featured-body { padding: 40px 32px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { position: relative; margin-top: 48px; width: 100%; }
  .hero { flex-direction: column; justify-content: flex-end; padding-top: 120px; }
  .hero-stats div { flex: 1; padding: 20px 10px; }

  .post-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .toc { position: relative; top: 0; max-height: none; }
  .toc-toggle { display: block; }
  .toc.collapsed nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-social { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-tagline { display: none; }
  .header .container { height: 68px; }
  .logo-mark { font-size: 22px; }
  .logo-sub { display: none; }
  .header-actions { gap: 10px; }
  .lang-switch button { padding: 5px 9px; }
  .section { padding: 72px 0; }
  .section-head-row { flex-direction: column; align-items: start; }
  .categories, .posts { grid-template-columns: 1fr; }
  .destinations { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-frame { inset: 12px; }
  .hero-stats strong { font-size: 28px; }
  .newsletter form { flex-direction: column; border: 0; gap: 12px; }
  .newsletter input { border: 1px solid rgba(201,169,97,.5); }
  .post-cover { padding: 0; }
  .post-cover .img-wrap { aspect-ratio: 4/3; }
  .post-layout { padding: 0 16px; }
  .article { font-size: 17px; }
  .figure-pair { grid-template-columns: 1fr; }
  .day-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .author-box { flex-direction: column; text-align: center; padding: 28px 20px; }
  blockquote { padding: 32px 20px; font-size: 20px; }
}
