/* ==========================================================================
   V7 SOLID HERITAGE EXPLORER — Muted & Opaque Theme (ต่อยอดจาก V6)
   Palette: Deep Matte Forest #1E5236 · Heritage Pine #133A25 · Dark Pine #0D2417
            Burnished Terracotta #B85014 · Antique Ochre Gold #C88D20
            Muted Moss Olive #5E7032 · Matte Sandstone Cream #ECE4D6 · Ivory #F8F5EE
   ========================================================================== */
:root {
  color-scheme: light;

  /* V7 Muted & Solid Identity Tokens (โทนสีทึบ สุขุม หนักแน่น ลดความสว่างจ้าและความโปร่งใส) */
  --emerald: #1E5236;         /* Deep Matte Forest Green */
  --emerald-mid: #276041;     /* Solid Foliage Pine */
  --emerald-dark: #133A25;    /* Heritage Deep Pine */
  --emerald-deep: #0D2417;    /* Solid Dark Forest Canvas */
  --lime: #5E7032;            /* Muted Moss Olive */
  --sun: #C88D20;             /* Antique Ochre Gold */
  --sun-soft: #E5C178;        /* Warm Matte Gold on Dark */
  --coral: #B85014;           /* Burnished Terracotta (>=4.5:1 with #fff) */
  --coral-dark: #9A3F0C;      /* Deep Fired Terracotta */
  --sky: #285749;             /* Deep Pasak Slate Teal */
  --berry: #8E3709;           /* Deep Clay Rust */
  --bamboo: #9A6812;          /* Solid Bamboo Bronze (>=4.5:1 with #fff) */

  /* Opaque Matte Surfaces & High-Contrast Boundaries */
  --cream: #ECE4D6;           /* Solid Matte Sandstone Canvas */
  --cream-alt: #E1D7C5;       /* Deeper Warm Stone Band / Inset Surface */
  --surface: #F8F5EE;         /* Opaque Warm Ivory Card Surface */
  --surface-sage: #DCE6DF;    /* Solid Matte Sage Track & Tag Fill */
  --ink: #14231A;             /* High-Readability Charcoal Forest Ink */
  --muted: #47574D;           /* Solid Muted Earth Slate */
  --line: #B8C4BC;            /* 100% Opaque Card/Divider Border */
  --line-strong: #788D80;     /* >=3:1 Non-Text UI Control Boundary Contrast */
  --line-warm: #B8AC97;       /* Opaque Warm Sandstone Border */

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-card: 0 10px 26px rgba(13, 36, 23, 0.09);
  --shadow-pop: 0 14px 32px rgba(13, 36, 23, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Sarabun', sans-serif;
  color: var(--ink);
  /* Solid matte canvas without bright translucent radial glow blobs */
  background-color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

/* Modern Web Guidance: improve-text-layout-and-legibility */
h1, h2, h3, h4 {
  font-family: 'Prompt', sans-serif;
  line-height: 1.24;
  text-wrap: balance;
}
p, li, .pretty-text {
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* Scroll-Driven Top Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 150;
  background: linear-gradient(90deg, var(--lime), var(--sun), var(--coral), var(--sky));
  transform-origin: 0 50%;
  scale: 0 1;
  animation: v7-scroll-progress linear;
  animation-timeline: scroll();
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    scale: 1 1;
    opacity: 0.65;
  }
}
@keyframes v7-scroll-progress {
  to { scale: 1 1; }
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

/* Top Announcement Bar */
.topbar {
  background-color: var(--emerald-deep);
  color: #C8D8CE;
  border-bottom: 1px solid #1E462E;
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  gap: 12px;
}
.topbar-place {
  color: var(--sun-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-label {
  color: #B2C6BA;
}

/* ==========================================================================
   SOLID MATTE NAVBAR + OPAQUE MEGA DROPDOWNS (ไร้ความโปร่งแสงฟุ้ง)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  background-color: #E3DAC8;
  border-bottom: 1.5px solid var(--line-warm);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  padding: 6px 0;
  background-color: #DDD2BE;
  box-shadow: 0 10px 26px rgba(13, 36, 23, 0.14);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 10px;
  background-color: var(--surface);
  padding: 6px 12px 6px 16px;
  border-radius: 999px;
  border: 1.5px solid #9EB0A4;
  box-shadow: 0 6px 18px rgba(13, 36, 23, 0.08);
}
.brand-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding-right: 4px;
  transition: transform 0.2s ease;
}
.brand-logo:hover {
  transform: scale(1.02);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}
.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Center Menu Track */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  font-family: 'Prompt', sans-serif;
  font-size: 0.83rem;
  background-color: var(--surface-sage);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #B5C5BA;
}
.nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-menu > li > a .nav-ico {
  font-size: 0.9rem;
  line-height: 1;
}
.nav-menu > li > a .nav-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.22s ease;
}
.nav-menu > li:hover > a .nav-caret {
  transform: rotate(180deg);
}
.nav-menu > li > a:hover {
  background-color: #C9D8CE;
  color: var(--emerald-dark);
}
.nav-menu > li > a.active {
  background-color: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 36, 23, 0.22);
}

/* Opaque Mega Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 340px;
  background-color: var(--surface);
  border-radius: 22px;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 20px 48px rgba(13, 36, 23, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 120;
}
.nav-Dropdown-wide {
  width: 370px;
}
.nav-menu > li.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-menu > li.has-dropdown:hover .nav-dropdown,
.nav-menu > li.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.dropdown-item:hover {
  background-color: #E7DEC9;
  transform: translateX(3px);
}
.dropdown-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}
.dropdown-item strong {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.83rem;
  color: var(--ink);
  line-height: 1.25;
}
.dropdown-item small {
  display: block;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
}
.dropdown-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.dropdown-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
}
.dropdown-foot a:hover {
  color: var(--coral);
}

/* Right CTA & Burger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-map-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 11px;
  border-radius: 999px;
  background-color: var(--coral);
  border: 1px solid var(--coral-dark);
  color: #FFFFFF;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(13, 36, 23, 0.16);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-map-cta .pin-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--coral-dark);
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
}
.nav-map-cta:hover {
  background-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13, 36, 23, 0.22);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}
.menu-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-sage);
  border: 1.5px solid var(--line-strong);
  font-size: 1.25rem;
  color: var(--emerald-dark);
}

/* ==========================================================================
   SOLID MATTE BUTTONS (ไม่มีเงาสีสะท้อนแสงนีออน)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}
.btn-pop {
  background-color: var(--coral);
  border-color: var(--coral-dark);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(13, 36, 23, 0.16);
}
.btn-pop:hover {
  background-color: var(--coral-dark);
}
.btn-sun {
  background-color: #C9942C;
  border-color: #A6771B;
  color: #14231A;
  box-shadow: 0 6px 16px rgba(13, 36, 23, 0.14);
}
.btn-sun:hover {
  background-color: #B88420;
}
.btn-emerald {
  background-color: var(--emerald);
  border-color: var(--emerald-dark);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(13, 36, 23, 0.16);
}
.btn-emerald:hover {
  background-color: var(--emerald-dark);
}
.btn-outline {
  background-color: var(--surface);
  color: var(--emerald-dark);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover {
  background-color: var(--surface-sage);
  border-color: var(--emerald);
}
.btn-hero-ghost {
  background-color: #1A462F;
  color: #F4EFE6;
  border: 1.5px solid #538067;
}
.btn-hero-ghost:hover {
  background-color: #23573C;
  border-color: var(--sun-soft);
}
.btn-sm {
  padding: 8px 15px;
  font-size: 0.82rem;
}

/* ==========================================================================
   DEEP SOLID HERITAGE HERO BANNER (ตัดสีฟ้าสว่าง #0096C7 ออก ใช้เขียวสนเข้มทึบ)
   ========================================================================== */
.page-hero {
  padding: 20px 0 28px;
}
.subpage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background-color: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(13, 36, 23, 0.06);
}
.subpage-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--emerald-dark);
}
.subpage-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.subpage-breadcrumb a:hover {
  color: var(--coral);
}
.subpage-toolbar .chip-row {
  gap: 8px;
}
.subpage-toolbar .chip {
  padding: 7px 14px;
  font-size: 0.82rem;
}
.page-hero-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(135deg, #0D2417 0%, #173F29 56%, #204B3E 100%);
  border: 1.5px solid #29583F;
  color: #F4EFE6;
  box-shadow: 0 18px 42px rgba(13, 36, 23, 0.22);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  isolation: isolate;
}
.page-hero-box::before,
.page-hero-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.page-hero-box::before {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -90px;
  border: 2px dashed rgba(219, 179, 98, 0.22);
  animation: v7-orbit-spin 28s linear infinite;
}
.page-hero-box::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: 38%;
  border: 2px solid rgba(122, 160, 136, 0.16);
  animation: v7-orbit-spin 22s linear infinite reverse;
}
.page-hero-box.single {
  grid-template-columns: 1fr;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #1F4932;
  border: 1px solid #4D7B61;
  color: var(--sun-soft);
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  animation: v7-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both, v7-badge-float 3.8s ease-in-out 0.6s infinite;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 12px;
  color: #FAF6EE;
  animation: v7-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.hero-highlight {
  color: var(--sun-soft);
  background: linear-gradient(90deg, #DBB362 0%, #FFF3D1 45%, #E5A93C 75%, #DBB362 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: v7-gold-shimmer 5.5s linear infinite;
}
.page-hero p {
  color: #DAE6DF;
  font-size: 1.05rem;
  max-width: 640px;
  animation: v7-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.page-hero-media {
  position: relative;
  height: 250px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #3A684F;
  background-color: #0D2417;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  animation: v7-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both, v7-hero-levitate 6s ease-in-out 0.9s infinite;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: v7-ken-burns 12s ease-in-out infinite alternate;
  transition: opacity 0.38s ease, transform 0.5s ease;
}

/* ==========================================================================
   HOME INTERACTIVE ACTION CENTER & SOLID SPIN CARD
   ========================================================================== */
.action-hub {
  margin-top: 22px;
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.5vw, 32px);
  border: 2px solid #A89C86;
  box-shadow: 0 14px 36px rgba(13, 36, 23, 0.12);
}
.action-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.search-box-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.search-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
}
.search-input::placeholder {
  color: var(--muted);
}
.search-results-tray {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background-color: var(--cream);
  border: 1px solid #B7AD9B;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.quick-hit:hover {
  transform: translateX(4px);
  background-color: var(--cream-alt);
  border-color: var(--coral);
}
.quick-hit img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.quick-hit strong {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.86rem;
}
.quick-hit small {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Muted Antique Ochre Spin-a-Trip Box */
.spin-card {
  background: linear-gradient(145deg, #DFD3BC 0%, #CCB68E 55%, #BA9B67 100%);
  border: 1.5px solid #9E804E;
  border-radius: 22px;
  padding: 22px;
  color: #14231A;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.spin-card p {
  color: #2D3A31;
  font-weight: 500;
  opacity: 1;
}
.spin-result-box {
  background-color: var(--surface);
  border: 1px solid #B8A789;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spin-result-box img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS, OPAQUE KICKERS, CHIPS & CARDS
   ========================================================================== */
section { padding: 56px 0; }
.section-toned {
  background-color: var(--cream-alt);
  border-top: 1px solid var(--line-warm);
  border-bottom: 1px solid var(--line-warm);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background-color: #E5D1C0;
  border: 1px solid #C7A68C;
  color: #7D3006;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--emerald-dark);
}
.section-head p {
  color: var(--muted);
  max-width: 600px;
  margin-top: 4px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--surface);
  color: #36473D;
  border: 1.5px solid var(--line-strong);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover {
  background-color: var(--surface-sage);
  border-color: var(--emerald);
  color: var(--emerald-dark);
}
.chip.active {
  background-color: var(--coral);
  color: #FFFFFF;
  border-color: var(--coral-dark);
  box-shadow: 0 5px 14px rgba(13, 36, 23, 0.18);
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.v1-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid #A7B6AC;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.v1-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald);
  box-shadow: 0 18px 38px rgba(13, 36, 23, 0.15);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}
.card-media {
  position: relative;
  height: 215px;
  overflow: hidden;
  background-color: #CBD5CE;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.v1-card:hover .card-media img {
  transform: scale(1.05);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}
.card-pill-top {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid #B6C2B9;
  color: var(--emerald-dark);
  font-family: 'Prompt', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.18rem;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}
.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
  flex: 1;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag-badge {
  font-family: 'Prompt', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--surface-sage);
  color: var(--emerald-dark);
  border: 1px solid #AEBFB3;
}
.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.card-actions .btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.82rem;
}

/* ==========================================================================
   OPAQUE DIALOG, SOLID MOBILE BOTTOM BAR & DEEP FOOTER
   ========================================================================== */
dialog#v1QuickDialog {
  margin: auto;
  width: min(680px, calc(100% - 28px));
  border: 2px solid var(--line-strong);
  border-radius: 26px;
  padding: 0;
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
dialog#v1QuickDialog::backdrop {
  background-color: rgba(10, 24, 16, 0.78);
}
.dialog-hero {
  position: relative;
  height: 240px;
}
.dialog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #14231A;
  border: 1.5px solid #5B7364;
  color: #FFFFFF;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}
.dialog-body {
  padding: 26px;
}

/* Opaque Mobile Bottom App Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background-color: #F4EFE4;
  border-top: 2px solid #ABA08C;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -8px 24px rgba(13, 36, 23, 0.12);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 12px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
}
.mobile-nav-item.active {
  background-color: #E5D7C7;
  color: var(--coral-dark);
  font-weight: 700;
}
.mobile-nav-item .ico {
  font-size: 1.2rem;
}

/* Solid Deep Pine Footer */
.site-footer {
  background-color: var(--emerald-deep);
  border-top: 3px solid #245339;
  color: #D8E5DD;
  padding: 56px 0 40px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h4 {
  color: var(--sun-soft);
  margin-bottom: 12px;
  font-size: 1rem;
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--sun-soft); }
.footer-copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #264935;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #B9CCC0;
}

/* Modern Web Guidance (color): Preserve boundaries & active state in Forced Colors Mode */
@media (forced-colors: active) {
  .v1-card,
  .nav-bar,
  .nav-dropdown,
  .action-hub,
  .spin-card,
  .page-hero-box,
  dialog#v1QuickDialog {
    border: 1px solid CanvasText;
  }
  .btn,
  .chip,
  .nav-map-cta {
    border: 1px solid ButtonText;
  }
  .nav-menu > li > a.active,
  .chip.active,
  .mobile-nav-item.active {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* Community Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: var(--surface-sage);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover, .gallery-item.active {
  transform: translateY(-2px);
  border-color: var(--sun-soft);
  box-shadow: 0 6px 14px rgba(13, 36, 23, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Share & Quick Contact Bar (ตาม data-user/Markdown.md ข้อ 5) */
.share-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--surface-sage);
  color: var(--emerald-dark);
  border: 1px solid #9CB0A2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.share-pill:hover {
  background-color: #C7D6CC;
  transform: translateY(-1px);
}
.share-pill.call {
  background-color: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald-dark);
}
.share-pill.call:hover {
  background-color: var(--emerald-dark);
}

/* Route Verification Notice Box (ตาม data-user/Markdown.md ข้อ 4) */
.route-notice-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background-color: #E7DEC9;
  border: 1.5px solid #B59B6D;
  font-size: 0.88rem;
  color: var(--ink);
}
.route-notice-box strong {
  font-family: 'Prompt', sans-serif;
  color: var(--emerald-dark);
}

/* Toast Notification for Copy Link */
.v7-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--emerald-deep);
  color: #FAF6EE;
  border: 1.5px solid var(--sun-soft);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(13, 36, 23, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 220;
}
.v7-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PAGE ENTRANCE & SCROLL REVEAL (ถอดแบบ V3 เข้า V7)
   ========================================================================== */
body {
  animation: v7-pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes v7-pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal items (เหมือน V3 data-reveal) */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter caret animation เหมือน V3 */
.typewriter {
  display: inline-block;
  min-width: 1ch;
  color: var(--sun-soft);
  position: relative;
}
.typewriter::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.05em;
  background: var(--coral);
  animation: v7-caret 0.8s steps(1) infinite;
}
@keyframes v7-caret {
  50% { opacity: 0; }
}

/* Split-words word-by-word reveal เหมือน V3 */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(115%);
  animation: v7-wordUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 85ms + 150ms);
}
@keyframes v7-wordUp {
  to { transform: none; }
}

/* Hero elements entrance */
.anim-up {
  opacity: 0;
  animation: v7-animUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes v7-animUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   MOTION & INTERACTIVE ANIMATIONS (Compositor-Friendly transform & opacity)
   ========================================================================== */
@keyframes v7-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes v7-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes v7-hero-levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes v7-ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1.5%); }
}
@keyframes v7-gold-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes v7-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes v7-pin-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.08); }
}
@keyframes v7-card-enter {
  from {
    opacity: 0.72;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-map-cta .pin-circle {
  animation: v7-pin-bounce 2.4s ease-in-out infinite;
}
.nav-menu > li > a .nav-ico {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-menu > li > a:hover .nav-ico {
  transform: translateY(-2px) scale(1.15) rotate(-5deg);
}

/* Button Sheen Sweep Effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-22deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(340%) skewX(-22deg);
}

/* Card Media Hover Zoom & Scroll-Driven Reveal */
.card-media img {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.v1-card:hover .card-media img {
  transform: scale(1.07);
}
@supports (animation-timeline: view()) {
  .v1-card,
  .action-hub {
    animation: v7-card-enter linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
}

/* Floating Interactive Overlay Badges & Slide Switcher inside Hero Media */
.hero-float-pill {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #133A25;
  color: var(--sun-soft);
  border: 1.5px solid #4D7B61;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  animation: v7-badge-float 3.4s ease-in-out infinite;
}
.hero-float-pill.top-left {
  top: 12px;
  left: 12px;
}
.hero-float-pill.bottom-bar {
  bottom: 12px;
  left: 12px;
  right: 12px;
  justify-content: space-between;
  background-color: #0D2417;
  color: #FAF6EE;
  padding: 7px 12px;
  animation: none;
}
.hero-slide-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: #4D7B61;
  border: none;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.hero-slide-dot.active {
  width: 22px;
  background-color: var(--sun-soft);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-box::before,
  .page-hero-box::after,
  .eyebrow-badge,
  .page-hero h1,
  .hero-highlight,
  .page-hero p,
  .page-hero-media,
  .page-hero-media img,
  .nav-map-cta .pin-circle,
  .hero-float-pill,
  .v1-card,
  .action-hub {
    animation: none !important;
    transition: none !important;
  }
  .hero-highlight {
    -webkit-text-fill-color: var(--sun-soft);
  }
}

/* Standardized Subpage Footer Links */
.footer-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-quick-links a {
  color: var(--sun-soft);
  font-weight: 600;
  font-size: 0.85rem;
}
.footer-quick-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .page-hero-box, .action-hub-grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-bar {
    border-radius: 24px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-color: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 14px 20px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
    border: 2px solid var(--line-strong);
    z-index: 140;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li {
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
  }
  .nav-menu > li.has-dropdown::after {
    display: none;
  }
  .nav-menu > li > a { width: 100%; }
  .nav-dropdown,
  .nav-Dropdown-wide {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid #B7C6BC;
    background-color: var(--surface-sage);
    margin-top: 6px;
    padding: 10px;
  }
  .menu-burger { display: inline-grid; place-items: center; }
}

@media (max-width: 640px) {
  .topbar-label { display: none; }
  .topbar-inner { justify-content: center; }
  .grid-3, .footer-grid, .search-results-tray {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav { display: grid; }
  .nav-map-cta { display: none; }
  .nav-menu {
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 190px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 190px - env(safe-area-inset-bottom, 0px));
  }
}
