/* ============================================================
   SN Motorbike Rentals Chiang Mai
   Palette taken from the shop logo: teal, deep navy, lime accent
   ============================================================ */

:root {
  --teal-900: #064e57;
  --teal-700: #0b7f8c;
  --teal-600: #0b8f9c;
  --teal-500: #14a5b3;
  --teal-300: #7fd3dc;
  --teal-100: #d6f0f3;
  --teal-50:  #eefafb;

  --lime: #c9e832;
  --lime-dark: #a9c81c;

  --ink-900: #0d1b1f;
  --surface-deep: #0d1b1f;   /* always dark: carries white text in both themes */
  --ink-700: #24393f;
  --ink-500: #5b7178;
  --ink-300: #9aabb1;

  --bg: #ffffff;
  --bg-alt: #f7fafb;
  --card: #ffffff;
  --line: #e6edef;

  --wa: #25d366;
  --line-green: #06c755;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 31, .06), 0 2px 8px rgba(13, 27, 31, .04);
  --shadow-md: 0 4px 12px rgba(13, 27, 31, .07), 0 12px 32px rgba(13, 27, 31, .07);
  --shadow-lg: 0 8px 24px rgba(13, 27, 31, .09), 0 24px 64px rgba(13, 27, 31, .10);

  --wrap: 1180px;
  --font: 'Outfit', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
          Roboto, sans-serif;

  /* This site is light-only by design — it must read as clean white
     even for visitors whose phone or laptop is set to dark mode. */
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* The browser's own [hidden] rule is only `display: none`, so any author
   rule that sets display (e.g. .login-wrap { display: flex }) silently
   beats it and the element stays on screen. Make hidden mean hidden. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); }
img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal-600); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 4px 14px rgba(11,143,156,.32); }
.btn-primary:hover { background: var(--teal-500); color: #fff; box-shadow: 0 6px 20px rgba(11,143,156,.42); }

.btn-ghost { background: transparent; color: var(--teal-600); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-500); background: var(--teal-50); }

.btn-wa   { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #1fbe5b; color: #06331a; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b34d; color: #fff; }

.btn-sm  { padding: 9px 18px; font-size: .9rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-900); flex-shrink: 0; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: .76rem; color: var(--ink-500); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-700); font-weight: 500; font-size: .94rem;
  padding: 8px 14px; border-radius: 999px; transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-600); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  align-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: var(--bg); }
.hero-glow {
  position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,165,179,.13), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 7px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-700);
  margin-bottom: 22px;
}
.stars { color: #f5a524; letter-spacing: 1px; }

.grad { background: linear-gradient(100deg, var(--teal-600), var(--teal-500) 55%, var(--lime-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-500); max-width: 52ch; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-badges { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; margin: 0; padding: 0; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-size: .94rem; font-weight: 500; color: var(--ink-700); }
.tick {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 21px; height: 21px; border-radius: 50%; background: var(--lime); color: var(--teal-900);
  font-size: .72rem; font-weight: 800;
}

/* ---------- Quick quote card ---------- */
.hero-card { display: flex; justify-content: center; }
.quick-quote {
  width: 100%; max-width: 400px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.qq-title { font-size: 1.15rem; margin-bottom: 18px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-300); }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: .97rem; color: var(--ink-900);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,165,179,.15);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b7178' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { text-align: center; }
.step {
  width: 44px; height: 46px; flex-shrink: 0; font-size: 1.3rem; font-weight: 600;
  background: var(--teal-50); color: var(--teal-600);
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.step:hover { background: var(--teal-100); border-color: var(--teal-300); }

.qq-result { background: var(--teal-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.qq-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.qq-row span { font-size: .9rem; color: var(--ink-500); }
.qq-row strong { font-size: 1.6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }
.qq-note { margin: 6px 0 0; font-size: .8rem; color: var(--teal-600); font-weight: 500; }

.qq-fineprint { margin: 10px 0 0; font-size: .78rem; color: var(--ink-300); text-align: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--teal-900); color: #fff; padding: 38px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-num { font-size: 2.1rem; font-weight: 800; color: var(--lime); letter-spacing: -.03em; line-height: 1.1; }
.trust-num span { font-size: 1.2rem; }
.trust-item p { margin: 2px 0 0; font-size: .9rem; color: rgba(255,255,255,.82); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--teal-600); margin-bottom: 10px; }
.section-sub { color: var(--ink-500); font-size: 1.05rem; margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--ink-500);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--teal-300); color: var(--teal-600); }
.chip.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* ---------- Fleet ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 24px; }

.bike-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bike-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-300); }

.bike-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--teal-100), var(--teal-50));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bike-media img {
  width: 100%; height: 100%;
  object-fit: contain;      /* show the whole bike, never crop it */
  padding: 10px;
}
.bike-media .placeholder-cc { font-size: 2.6rem; font-weight: 800; color: var(--teal-300); letter-spacing: -.04em; }

.bike-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--lime); color: var(--teal-900);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 999px;
}

.bike-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.bike-name { font-size: 1.12rem; margin-bottom: 4px; }
.bike-meta { font-size: .84rem; color: var(--ink-300); margin-bottom: 12px; }
.bike-desc { font-size: .9rem; color: var(--ink-500); margin-bottom: 16px; flex: 1; }

.bike-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.spec { font-size: .74rem; font-weight: 600; color: var(--ink-500); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.bike-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.bike-price strong { font-size: 1.35rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }
.bike-price span { font-size: .82rem; color: var(--ink-300); }

.fleet-foot { text-align: center; color: var(--ink-500); font-size: .96rem; margin-top: 36px; }

/* ---------- Price table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm); }

.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 15px 20px; text-align: left; }
.price-table thead th { background: var(--teal-900); color: #fff; font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.price-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.price-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.th-note { display: block; font-size: .72rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.6); }

.price-table tbody tr { border-top: 1px solid var(--line); transition: background .16s ease; }
.price-table tbody tr:hover { background: var(--teal-50); }
.price-table td:first-child { font-weight: 600; color: var(--ink-900); }
.price-table td .cc { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-300); }
.price-table .price-cell { font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.price-table .price-cell small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-300); }

.included { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; }
.included h3 { margin-bottom: 16px; }
.included-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.included-list li { display: flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 500; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: none; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.step-num {
  width: 42px; height: 42px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step-card p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 22px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.review .stars { font-size: .95rem; margin-bottom: 12px; }
.review p { font-size: .95rem; color: var(--ink-700); flex: 1; }
.review footer { display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--line); }
.review footer strong { font-size: .92rem; color: var(--ink-900); }
.review footer span { font-size: .8rem; color: var(--ink-300); }
.reviews-cta { text-align: center; margin-top: 34px; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal-500); border-radius: var(--radius); padding: 24px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-card p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---------- Book ---------- */
.book-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: start; }
.book-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.book-summary {
  background: var(--teal-50); border-radius: 14px; padding: 14px 18px; margin: 6px 0 18px;
  font-size: .95rem; color: var(--ink-700);
}
.book-summary strong { font-size: 1.35rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }

.book-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.book-aside { background: var(--teal-900); color: #fff; border-radius: var(--radius-lg); padding: 30px; }
.book-aside h3 { color: #fff; font-size: 1.08rem; }
.aside-h3 { margin-top: 26px; }

.contact-list, .bring-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li:last-child { border-bottom: none; }
.cl-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-300); }
.contact-list a { color: #fff; font-weight: 600; font-size: .96rem; }
.contact-list a:hover { color: var(--lime); }


.bring-list li { position: relative; padding: 6px 0 6px 20px; font-size: .92rem; color: rgba(255,255,255,.85); }
.bring-list li::before { content: '·'; position: absolute; left: 6px; color: var(--lime); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color .18s ease;
}
.faq-list details[open] { border-color: var(--teal-300); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 600; font-size: 1rem; color: var(--ink-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal-600); transition: transform .22s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--ink-500); font-size: .95rem; }

/* ---------- Contact / map ---------- */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: stretch; }
.contact-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.contact-info address { font-style: normal; color: var(--ink-500); line-height: 1.8; margin-bottom: 20px; }
.hours { margin: 0 0 24px; }
.hours dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-600); font-weight: 700; }
.hours dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; color: var(--ink-900); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--bg-alt); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-deep); color: rgba(255,255,255,.7); padding: 56px 0 24px; margin-bottom: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.footer-logo { width: 62px; height: 62px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 34ch; margin: 0; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.5); }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px; box-shadow: 0 -4px 20px rgba(13,27,31,.1);
}
.mb-btn { flex: 1; text-align: center; padding: 13px 8px; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.mb-call { background: var(--teal-50); color: var(--teal-600); }
.mb-wa   { background: var(--wa); color: #06331a; }
.mb-book { background: var(--teal-600); color: #fff; }
.mb-wa:hover { color: #06331a; }
.mb-book:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--surface-deep); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 8px;
  padding: 3px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-btn {
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  color: var(--ink-500); background: transparent; border: none;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; line-height: 1.2;
  transition: background .16s ease, color .16s ease;
}
.lang-btn:hover { color: var(--teal-600); }
.lang-btn.is-active { background: var(--teal-600); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { justify-content: flex-start; }
  .quick-quote { max-width: 100%; }
  .book-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }

  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .book-buttons { grid-template-columns: 1fr; }
  .book-form, .book-aside, .contact-info, .included { padding: 22px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .toast { bottom: 88px; }
}

@media (max-width: 460px) {
  .hero-badges { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1; }
}

@media print {
  .site-header, .mobile-bar, .hero-actions, .book-buttons, .nav-toggle, .map-frame { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---------- Map card (fallback where iframes are blocked) ---------- */
.map-card {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); color: #fff; text-decoration: none;
  background:
    linear-gradient(to top, rgba(6,78,87,.94) 0%, rgba(6,78,87,.55) 55%, rgba(6,78,87,.30) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.07) 0 1px, transparent 1px 52px),
    linear-gradient(140deg, var(--teal-600), var(--teal-900));
  transition: transform .2s ease, box-shadow .2s ease;
}
.map-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.map-card .mc-pin { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.map-card strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.map-card span { font-size: .92rem; color: rgba(255,255,255,.82); }
.map-card .mc-go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-weight: 700; font-size: .92rem; color: var(--lime);
}

/* ---------- WeChat QR ----------
   A QR needs to survive being scanned off a phone screen, so it gets a
   permanently white plate (never a dark-mode ground) and a real quiet
   zone of padding. Sized generously — this is the whole point of the
   block, not a decorative thumbnail. */
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line);
}
.qr-img {
  position: relative; width: 210px; height: 210px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.qr-img img { width: 100%; height: 100%; object-fit: contain; }

/* Placeholder shown only until assets/wechat-qr.png exists */
.qr-fallback {
  display: none; position: absolute; inset: 14px;
  align-items: center; justify-content: center;
  border: 2px dashed #7fd3dc; border-radius: 10px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #9aabb1; text-align: center;
}
.qr-img.is-missing img { display: none; }
.qr-img.is-missing .qr-fallback { display: flex; }

.qr-caption { margin: 0; text-align: center; font-size: .88rem; color: var(--ink-500); }
.qr-caption strong { display: block; font-size: 1.05rem; color: var(--ink-900); margin-bottom: 2px; }

/* Thai stacks tall marks above and below the line — give it more leading
   and drop the tight Latin letter-spacing, which looks wrong in Thai. */
body[data-lang="th"] { line-height: 1.8; }
body[data-lang="th"] h1,
body[data-lang="th"] h2,
body[data-lang="th"] h3 { line-height: 1.35; letter-spacing: 0; }
body[data-lang="th"] .kicker,
body[data-lang="th"] .cl-label,
body[data-lang="th"] .brand-text small { letter-spacing: .04em; }

/* Chinese sets solid with no word spaces; the tight tracking used for
   the Latin display face makes it look cramped. */
body[data-lang="zh"] h1,
body[data-lang="zh"] h2,
body[data-lang="zh"] h3 { letter-spacing: 0; line-height: 1.3; }
body[data-lang="zh"] .kicker,
body[data-lang="zh"] .cl-label,
body[data-lang="zh"] .brand-text small { letter-spacing: .08em; }

/* On mobile the switcher sits inside the dropdown menu */
@media (max-width: 760px) {
  .lang-switch { margin: 10px 0 0; align-self: flex-start; }
  .lang-btn { padding: 8px 16px; font-size: .92rem; }
}

/* ============================================================
   ADMIN PANEL  (only present when the URL ends in #admin)
   ============================================================ */
body.admin-page { background: var(--bg-alt); }
.dash { min-height: 100vh; }

.admin-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface-deep); color: #fff;
  box-shadow: var(--shadow-md);
}
.admin-bar-in {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.admin-title { display: flex; flex-direction: column; margin-right: auto; }
.admin-title strong { font-size: 1.05rem; }
.admin-title span { font-size: .8rem; color: rgba(255,255,255,.6); }
.admin-title span.is-live  { color: var(--lime); }
.admin-title span.is-local { color: #ffd479; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.abtn {
  font-family: var(--font); font-size: .86rem; font-weight: 600;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .16s ease;
}
.abtn:hover { background: rgba(255,255,255,.22); }
.abtn-ghost { background: transparent; }
.abtn-go { background: var(--teal-500); border-color: var(--teal-500); }
.abtn-go:hover { background: var(--teal-300); color: var(--teal-900); }
.abtn-go:disabled { opacity: .6; cursor: default; }
.abtn-small { margin-top: 14px; background: var(--teal-50); color: var(--teal-600); border-color: var(--line); }
.abtn-small:hover { background: var(--teal-100); }

.admin-body {
  max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px;
  display: flex; flex-direction: column; gap: 22px;
}

.acard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
}
.acard h2 { font-size: 1.2rem; margin-bottom: 6px; }
.ahint { font-size: .88rem; color: var(--ink-500); margin: 0 0 18px; }

/* --- price table --- */
.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; min-width: 660px; }
.atable th {
  text-align: left; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500);
  padding: 0 10px 10px; border-bottom: 1px solid var(--line);
}
.atable td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable .aname { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.atable .aname small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-300); }
.acenter { text-align: center; }

.anum, .admin input[type="text"], .admin textarea, .admin select {
  font-family: var(--font); font-size: .92rem; color: var(--ink-900);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 9px;
  padding: 9px 11px; width: 100%;
}
.anum { max-width: 108px; font-variant-numeric: tabular-nums; }
.admin input:focus, .admin textarea:focus, .admin select:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,165,179,.15);
}
.admin input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal-600); }

.alink {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: .84rem; font-weight: 600; color: var(--teal-600);
}
.adanger { color: #c8453a; }
.alink:hover { text-decoration: underline; }

/* --- generic field grid --- */
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.agrid > label, .admin fieldset {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
}
.agrid > label em, .admin legend em { font-style: normal; font-weight: 400; color: var(--ink-300); }
.awide { grid-column: 1 / -1; }

/* --- bike detail accordions --- */
.abikes { display: flex; flex-direction: column; gap: 10px; }
.abike { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.abike summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-weight: 600; color: var(--ink-900); background: var(--bg-alt);
}
.abike summary::-webkit-details-marker { display: none; }
.abike summary span { font-weight: 400; color: var(--ink-300); font-size: .85rem; }
.abike[open] summary { border-bottom: 1px solid var(--line); }
.abike .agrid { padding: 18px; }

.admin fieldset {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.admin legend { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); padding: 0 6px; }
.aspecs { display: flex !important; flex-flow: row wrap !important; gap: 8px 16px !important; }
.achk { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: .84rem; color: var(--ink-700); }
.achk input { flex-shrink: 0; }

/* --- language tabs --- */
.alang { display: flex; gap: 8px; margin-bottom: 18px; }
.atab {
  font-family: var(--font); font-size: .86rem; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: var(--bg-alt); color: var(--ink-500); border: 1.5px solid var(--line);
}
.atab.is-on { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

@media (max-width: 560px) {
  .admin-bar-in { padding: 12px 16px; }
  .admin-actions { width: 100%; }
  .admin-actions .abtn { flex: 1; }
  .admin-body { padding: 18px 16px 70px; }
  .acard { padding: 18px; }
}

/* ============================================================
   Bike card placeholder — a designed plate, not an empty box.
   Used until a real photo is added for that bike.
   ============================================================ */
.bike-media.is-placeholder {
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(150deg, var(--teal-100), var(--teal-50));
}
.ph-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; height: 100%;
}
.ph-icon { width: 78px; height: auto; color: var(--teal-600); opacity: .5; }
.ph-cc {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--teal-700); opacity: .85; line-height: 1;
}
.ph-class {
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--teal-600); opacity: .6;
}

/* ---------- Admin login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(20,165,179,.14), transparent 70%),
    var(--bg-alt);
}
.login-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.login-logo { width: 64px; height: 64px; border-radius: 50%; align-self: center; margin-bottom: 16px; }
.login-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; }
.login-sub { font-size: .92rem; color: var(--ink-500); text-align: center; margin-bottom: 22px; }

.login-tabs {
  display: flex; gap: 3px; padding: 3px; margin-bottom: 20px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
}
.ltab {
  flex: 1; font-family: var(--font); font-size: .88rem; font-weight: 600;
  padding: 9px 10px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-500);
  transition: background .16s ease, color .16s ease;
}
.ltab.is-on { background: var(--teal-600); color: #fff; }

.login-msg { margin: 0 0 14px; font-size: .88rem; min-height: 1.2em; }
.login-msg.is-bad  { color: #c8453a; }
.login-msg.is-good { color: var(--teal-600); }

.login-hint {
  margin: 16px 0 0; font-size: .82rem; color: var(--ink-500);
  background: var(--teal-50); border-radius: 10px; padding: 12px 14px;
}
.login-back {
  margin-top: 18px; text-align: center; font-size: .86rem; font-weight: 600;
}

/* ---------- Dashboard notice ---------- */
.dash-note {
  margin: 0 0 4px; padding: 14px 18px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 500;
}
.dash-note.is-warn {
  background: #fff6e0; border: 1px solid #f0d9a0; color: #7a5410;
}

/* ---------- Photo picker in the admin ---------- */
.photo-field { display: flex; flex-direction: column; gap: 8px; }
.photo-label { font-size: .8rem; font-weight: 600; color: var(--ink-700); }
.photo-row { display: flex; gap: 16px; align-items: flex-start; }

.photo-thumb {
  flex-shrink: 0; width: 132px; height: 100px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-alt); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.photo-empty { font-size: .78rem; color: var(--ink-300); }

.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.photo-pick { display: inline-block; cursor: pointer; }
.photo-hint { margin: 0; font-size: .78rem; color: var(--ink-300); max-width: 42ch; }
.photo-hint.is-busy { color: var(--teal-600); font-weight: 600; }
.photo-hint.is-bad  { color: #c8453a; font-weight: 600; }

@media (max-width: 520px) {
  .photo-row { flex-direction: column; }
}
