/* ==========================================================================
   TBMC — Tourism Banteay Meanchey
   Design system: institutional tourism-board language
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — Khmer sandstone gold against deep lacquer teal */
  --tbmc-deep:        #0b2b33;
  --tbmc-deep-800:    #123a45;
  --tbmc-deep-700:    #1a4d5a;
  --tbmc-deep-600:    #24606f;
  --tbmc-teal:        #2b7d8c;
  --tbmc-teal-300:    #6fb3bd;
  --tbmc-teal-100:    #d7eaec;
  --tbmc-teal-50:     #eef6f7;

  --tbmc-gold:        #c8952c;
  --tbmc-gold-600:    #a87b1f;
  --tbmc-gold-300:    #e6c176;
  --tbmc-gold-100:    #f8eed7;

  --tbmc-clay:        #a8563a;
  --tbmc-jade:        #2f7d5c;

  /* Neutrals */
  --ink:              #14212b;
  --ink-700:          #33444f;
  --ink-500:          #5b6c77;
  --ink-400:          #7d8b95;
  --line:             #dfe4e7;
  --line-soft:        #edf1f2;
  --paper:            #ffffff;
  --paper-alt:        #f7f9f9;
  --paper-warm:       #fbf9f5;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-khmer:   "Noto Sans Khmer", "Inter", sans-serif;

  /* Space & shape */
  --wrap: 1240px;
  --wrap-narrow: 880px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 43, 51, .06);
  --shadow-sm: 0 2px 8px rgba(11, 43, 51, .07);
  --shadow:    0 8px 26px rgba(11, 43, 51, .10);
  --shadow-lg: 0 20px 48px rgba(11, 43, 51, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* The [hidden] attribute must win over component display rules such as
   .grid { display: grid }. Without this, loading placeholders and the
   detail wrapper stay visible because both selectors have equal specificity. */
[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--tbmc-deep);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: .98rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--tbmc-teal); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--tbmc-gold-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--tbmc-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 999;
  background: var(--tbmc-deep); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 0; color: #fff; }

.khmer { font-family: var(--font-khmer); line-height: 1.9; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-warm { background: var(--paper-warm); }
.section-deep { background: var(--tbmc-deep); color: rgba(255,255,255,.82); }
.section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4 { color: #fff; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-500); margin-bottom: 0; font-size: 1.03rem; }
.section-deep .section-head p { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--tbmc-gold-600);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--tbmc-gold); display: block;
}
.eyebrow--light { color: var(--tbmc-gold-300); }
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }

.lede { font-size: 1.12rem; line-height: 1.75; color: var(--ink-500); }
.section-deep .lede { color: rgba(255,255,255,.76); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700; letter-spacing: .01em;
  padding: .82rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--tbmc-gold); color: #1d1403; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--tbmc-gold-300); color: #1d1403; box-shadow: var(--shadow-sm); }

.btn-deep { background: var(--tbmc-deep); color: #fff; }
.btn-deep:hover { background: var(--tbmc-deep-700); color: #fff; }

.btn-outline { border-color: var(--tbmc-deep); color: var(--tbmc-deep); background: transparent; }
.btn-outline:hover { background: var(--tbmc-deep); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--tbmc-deep); border-color: #fff; }

.btn-ghost { color: var(--tbmc-teal); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--tbmc-gold-600); transform: none; }

.btn-sm { padding: .55rem 1.1rem; font-size: .84rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--tbmc-deep);
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.topbar p { margin: 0; }
.topbar-links { display: flex; align-items: center; gap: 1.1rem; }
.topbar a { color: rgba(255,255,255,.82); font-weight: 500; }
.topbar a:hover { color: var(--tbmc-gold-300); }
.topbar-lang { display: flex; align-items: center; gap: .45rem; }
.topbar-lang span { color: rgba(255,255,255,.42); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--tbmc-deep), var(--tbmc-teal));
  color: var(--tbmc-gold-300);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: .92rem; letter-spacing: .02em;
  border: 1px solid rgba(200,149,44,.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.14rem; color: var(--tbmc-deep); letter-spacing: -.02em;
}
.brand-sub {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400);
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: block; position: relative;
  padding: .6rem .72rem;
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--tbmc-teal); background: var(--tbmc-teal-50); }
.primary-nav a[aria-current="page"] { color: var(--tbmc-deep); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .18rem;
  height: 2px; background: var(--tbmc-gold); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
  padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--tbmc-deep);
  position: relative; transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--tbmc-deep); transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
  padding: 1.1rem 1.25rem 3rem;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.mobile-nav-close {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 1.3rem; line-height: 1; color: var(--tbmc-deep); cursor: pointer;
}
.mobile-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a {
  display: block; padding: .95rem .2rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.03rem;
  color: var(--tbmc-deep);
}
.mobile-nav a[aria-current="page"] { color: var(--tbmc-gold-600); }
.mobile-nav-foot { display: grid; gap: .6rem; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--tbmc-deep);
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,43,51,.62) 0%, rgba(11,43,51,.24) 34%, rgba(11,43,51,.86) 100%),
    linear-gradient(90deg, rgba(11,43,51,.7) 0%, rgba(11,43,51,0) 62%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lede { color: rgba(255,255,255,.86); max-width: 620px; }
.hero-kicker {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tbmc-gold-300); margin-bottom: 1rem;
  display: block;
}
.hero-actions { margin-top: 1.85rem; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(11,43,51,.42);
  backdrop-filter: blur(4px);
}
.hero-stats .wrap {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem; padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem); color: var(--tbmc-gold-300);
  line-height: 1.15;
}
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.74); }

.hero-sub {
  position: relative;
  min-height: 340px;
  display: flex; align-items: flex-end;
  background: var(--tbmc-deep); color: #fff; overflow: hidden;
}
.hero-sub .hero-inner { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.75rem, 4vw, 2.5rem); }
.hero-sub h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--tbmc-teal-100); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line-soft);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--tbmc-teal); }
.card-body p { font-size: .92rem; color: var(--ink-500); margin-bottom: 1rem; }
.card-body .link-arrow { margin-top: auto; }

.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  font-size: .78rem; color: var(--ink-400); margin-bottom: .7rem;
}
.card-meta strong { color: var(--ink-700); font-weight: 600; }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .28rem .62rem;
  border-radius: var(--radius-pill);
  background: var(--tbmc-teal-50); color: var(--tbmc-deep-600);
  border: 1px solid var(--tbmc-teal-100);
}
.tag--gold { background: var(--tbmc-gold-100); color: var(--tbmc-gold-600); border-color: rgba(200,149,44,.3); }
.tag--clay { background: #f8ece7; color: var(--tbmc-clay); border-color: #eed9d0; }
.tag--jade { background: #e8f3ee; color: var(--tbmc-jade); border-color: #cfe5da; }

.tag-overlay {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--tbmc-deep);
  border: 0;
}
.tag-overlay--gold { background: rgba(200,149,44,.95); color: #23180a; }

/* Feature card (image-led, taller) */
.card-feature .card-media { aspect-ratio: 4 / 3; }
.card-feature .card-body h3 { font-size: 1.28rem; }

/* Horizontal card */
.card-row { flex-direction: row; }
.card-row .card-media { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 190px; }
.card-row .card-body { padding: 1.35rem 1.5rem; }

/* Stat / info card */
.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem;
  border-top: 3px solid var(--tbmc-gold);
}
.stat-card strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.9rem; color: var(--tbmc-deep); line-height: 1.1; margin-bottom: .35rem;
}
.stat-card span { font-size: .9rem; color: var(--ink-500); }

/* Info panel (sidebar) */
.panel {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
}
.panel h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.panel-deep { background: var(--tbmc-deep); border-color: var(--tbmc-deep); color: rgba(255,255,255,.8); }
.panel-deep h3, .panel-deep h4 { color: #fff; }

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: grid; grid-template-columns: 108px minmax(0,1fr);
  gap: .75rem; padding: .72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem; margin: 0;
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt, .fact-list .fact-key {
  font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-400);
}
.panel-deep .fact-list li { border-color: rgba(255,255,255,.14); }
.panel-deep .fact-list .fact-key { color: var(--tbmc-gold-300); }

/* --------------------------------------------------------------------------
   8. Page furniture
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: .82rem; color: var(--ink-400);
  padding: 1rem 0 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--tbmc-teal); }

.page-hero {
  background: var(--tbmc-deep);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,44,.22), transparent 68%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .5em; }
.page-hero .lede { color: rgba(255,255,255,.8); max-width: 680px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.6); padding-top: 0; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.72); }
.page-hero .breadcrumb a:hover { color: var(--tbmc-gold-300); }
.page-hero .breadcrumb li + li::before { color: rgba(255,255,255,.35); }

.quick-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.quick-links a {
  background: #fff; padding: 1.15rem 1.25rem;
  color: var(--tbmc-deep); font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.quick-links a::after { content: "→"; color: var(--tbmc-gold-600); }
.quick-links a:hover { background: var(--tbmc-teal-50); color: var(--tbmc-teal); }

/* --------------------------------------------------------------------------
   9. Filters & toolbar
   -------------------------------------------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: .8rem 1rem;
  align-items: center; justify-content: space-between;
  padding: 1rem 0; margin-bottom: 1.75rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filter-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  padding: .42rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--tbmc-teal-300); color: var(--tbmc-teal); }
.chip[aria-pressed="true"] {
  background: var(--tbmc-deep); border-color: var(--tbmc-deep); color: #fff;
}
.result-count { font-size: .85rem; color: var(--ink-400); }

.field { display: block; margin-bottom: 1.1rem; }
.field > label,
.field-label {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .03em;
  color: var(--tbmc-deep); margin-bottom: .4rem;
}
.field .hint { display: block; font-size: .78rem; color: var(--ink-400); font-weight: 400; margin-top: .3rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .72rem .85rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--tbmc-teal);
  box-shadow: 0 0 0 3px rgba(43,125,140,.14);
}
textarea { min-height: 130px; resize: vertical; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: .5rem; }
.check {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .6rem .75rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; cursor: pointer;
  font-size: .88rem; transition: all .18s var(--ease);
}
.check:hover { border-color: var(--tbmc-teal-300); background: var(--tbmc-teal-50); }
.check input { margin: .22rem 0 0; flex-shrink: 0; accent-color: var(--tbmc-teal); width: 16px; height: 16px; }

.consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: var(--ink-500);
}
.consent input { margin-top: .28rem; width: 16px; height: 16px; accent-color: var(--tbmc-teal); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   10. Articles / prose
   -------------------------------------------------------------------------- */
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p { color: var(--ink-700); }
.prose ul li { color: var(--ink-700); }
.prose blockquote {
  margin: 1.75rem 0; padding: .25rem 0 .25rem 1.4rem;
  border-left: 3px solid var(--tbmc-gold);
  font-size: 1.06rem; color: var(--tbmc-deep); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); color: var(--tbmc-deep); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em; background: var(--paper-alt); }

.callout {
  background: var(--tbmc-gold-100);
  border-left: 4px solid var(--tbmc-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem; margin: 1.6rem 0;
  font-size: .94rem;
}
.callout strong { color: var(--tbmc-deep); }
.callout p:last-child { margin-bottom: 0; }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  font-size: .84rem; color: var(--ink-400);
  padding-bottom: 1.25rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   11. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid; gap: .65rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
  grid-auto-rows: 132px;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(9,26,32,.94);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* --------------------------------------------------------------------------
   12. Timeline (events / news)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.timeline li {
  display: grid; grid-template-columns: 78px minmax(0,1fr);
  gap: 2rem; padding-bottom: 2rem; margin: 0;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-date {
  font-family: var(--font-display); font-weight: 800;
  color: var(--tbmc-deep); text-align: right; line-height: 1.25;
}
.timeline-date .d { display: block; font-size: 1.5rem; }
.timeline-date .m { display: block; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--tbmc-gold-600); }
.timeline-body { position: relative; padding-left: .2rem; }
.timeline-body::before {
  content: ""; position: absolute; left: -2.32rem; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--tbmc-gold); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
}
.timeline-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.timeline-body p { font-size: .92rem; color: var(--ink-500); margin-bottom: .6rem; }

/* --------------------------------------------------------------------------
   13. Forms: enquiry & trip planner
   -------------------------------------------------------------------------- */
.form-shell {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-xs);
}
.form-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tbmc-gold-600);
  padding-bottom: .6rem; margin: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}
.form-section-title:not(:first-child) { margin-top: 2rem; }

.form-status {
  border-radius: var(--radius); padding: .95rem 1.15rem;
  font-size: .92rem; margin-bottom: 1.4rem; display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #e8f3ee; border: 1px solid #cfe5da; color: #1e5a41; }
.form-status--err { background: #fbeceb; border: 1px solid #f0d2cf; color: #8f3225; }

.steps {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: flex; align-items: center; gap: .5rem;
  font-size: .84rem; color: var(--ink-400); margin: 0;
}
.steps li::before {
  content: counter(s);
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--line-soft); color: var(--ink-500);
  font-family: var(--font-display); font-weight: 700; font-size: .76rem;
}
.steps li:not(:last-child)::after { content: "—"; color: var(--line); margin-left: .3rem; }
.steps li.is-active { color: var(--tbmc-deep); font-weight: 600; }
.steps li.is-active::before { background: var(--tbmc-gold); color: #23180a; }

.summary-list { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .9rem; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.summary-list li span:last-child { color: var(--tbmc-deep); font-weight: 600; text-align: right; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--tbmc-deep-800);
  color: #fff; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,43,51,.95) 30%, rgba(11,43,51,.62));
}
.cta-band .wrap { position: relative; z-index: 2; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 620px; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--tbmc-deep); color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem; padding: clamp(2.75rem, 5vw, 4rem) 0 2.5rem;
}
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--tbmc-gold-300); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-brand p { margin: 1.1rem 0 0; max-width: 34ch; }
.footer-contact { margin-top: 1.2rem; font-size: .88rem; }
.footer-contact a { color: var(--tbmc-gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 1.35rem 0;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; }
.social-row { display: flex; gap: .55rem; margin-top: 1.2rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 700;
  font-family: var(--font-display);
  transition: all .2s var(--ease);
}
.social-row a:hover { background: var(--tbmc-gold); border-color: var(--tbmc-gold); color: #23180a; }

/* --------------------------------------------------------------------------
   16. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.text-center { text-align: center; }
.muted { color: var(--ink-400); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }

.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
  color: var(--ink-400); background: var(--paper-alt);
}
.empty-state h3 { color: var(--ink-500); }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, #e4eaec 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-lg);
  min-height: 260px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 980px) {
  .primary-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split-wide { grid-template-columns: 1fr; }
  .hero-stats .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: 118px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .card-row { flex-direction: column; }
  .card-row .card-media { width: 100%; min-height: 200px; aspect-ratio: 16/10; }
  .timeline::before { left: 3.1rem; }
  .timeline li { grid-template-columns: 2.6rem minmax(0,1fr); gap: .9rem; }
  .timeline-body::before { left: -1.42rem; }
  .timeline-date .d { font-size: 1.25rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 108px; }
  .gallery img:first-child { grid-column: span 2; grid-row: span 1; }
  .footer-main { grid-template-columns: 1fr; gap: 1.85rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .topbar .wrap { justify-content: center; text-align: center; min-height: 38px; }
  .topbar-links { justify-content: center; }
  .fact-list li { grid-template-columns: 96px minmax(0,1fr); }
  .toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .hero-stats .wrap { grid-template-columns: 1fr 1fr; gap: .85rem; }
}
