/* painaima.com public site: IG-style design (prototype on branch proto/ig-style-static, owner decisions in
   prototype/README.md). One accent (blue) plus navy, Sarabun everywhere, corner radius 8–14px.
   Light and dark follow the device; every text colour reaches 4.5:1 on its surface. */
:root {
  --bg: #fbfaf7;
  --card: #fff;
  --ink: #14213d;
  --muted: #5d6472;
  --line: #e8e5de;
  /* card / section frames on the warm page (owner, 2026-11-12) */
  --line2: #e2dccf;
  --soft: #f3eee4;
  /* deep blue for prices, links, icons and the breadcrumb (owner, 2026-11-12); dark mode keeps a light blue */
  --brand: #073681;
  --brand-solid: #073681;
  --navy: #14213d;
  --navy2: #1b2a49;
  /* one blue for every blue text and icon (owner, 2026-11-12) */
  --accent2: var(--brand);
  /* LINE: darker than LINE's own #06c755 so white text reaches 4.5:1 (owner, 2026-11-11) */
  --line-green: #04833b;
  --ok: #2e8b4a;
  --no: #b4492f;
  --r: 10px;
  --font: 'Sarabun', system-ui, sans-serif;
  /* Names kept for calendar.css */
  --thai: var(--font);
  --latin: var(--font);
  --serif: var(--font);
  --t-navy: var(--ink);
  --border: var(--line);
  --surface: var(--card);
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1220; --card: #151c30; --ink: #f1f3f8; --muted: #a3acbd; --line: #242c42; --line2: #2b3550; --soft: #1b2338; --brand: #6ea5ff; --navy: #0a0f1d; --ok: #5fc27c; --no: #e98a72; }
}
html * { max-height: 1000000px; } /* stops LINE's Android in-app browser from inflating text */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { font: 17px/1.65 var(--font); background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
/* side gutter: 16px on every screen (owner, 2026-11-12; was 8px on phones); full-bleed blocks pull back by the same amount */
:root { --gut: 16px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }
.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; }
.img-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--line), color-mix(in srgb, var(--line) 50%, var(--bg))); }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: grid; gap: 14px; justify-items: center; }
.preview-bar { position: sticky; top: 60px; z-index: 45; padding: 8px 16px; background: #fbf1dc; color: #6e4708; font-weight: 600; text-align: center; }

/* keyboard focus: visible everywhere, nothing for mouse clicks */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
footer.ft :focus-visible, .rvband :focus-visible { outline-color: #fff; }
.hsearch input:focus-visible, .hsearch select:focus-visible { outline: 0; }
.rtrack .rc:focus-visible, .rmap a:focus-visible, .masonry.mg a:focus-visible, .htrack a:focus-visible, .gdots button:focus-visible { outline-offset: -3px; }
.garr:focus-visible, .gdots button:focus-visible, .rc:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgba(10, 15, 29, .6); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .15s; }
.skip:focus { top: 10px; }
main:focus { outline: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 9px 18px; border-radius: 8px; font-weight: 500; font-size: .92rem; border: 0; cursor: pointer; transition: transform .15s; white-space: nowrap; line-height: 1.4; }
.btn:hover { transform: translateY(-1px); }
.btn.brand { background: var(--brand-solid); color: #fff; }
.btn.line { background: var(--line-green); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.big { padding: 12px 22px; font-size: 1rem; width: 100%; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn svg { flex: none; }

/* header: the page's own warm white (#fbfaf7) so the green and gold logo reads, also in dark mode (owner, 2026-11-12); logo left, menu right, then
   Instagram / Facebook, phone (amber) and LINE. Section headings keep the deep blue (--head). */
:root { --head: #073681; --amber: #e0a84a; --warm-ink: #7a4a10; --hbar: #fbfaf7; --hbar-line: #e8e5de; }
@media (prefers-color-scheme: dark) { :root { --warm-ink: #e8c48a; } }
header.top { position: sticky; top: 0; z-index: 30; background: var(--hbar); color: #14213d; border-bottom: 1px solid var(--hbar-line); }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand-logo { flex: none; display: block; margin-right: auto; }
.brand-logo img { height: 42px; width: auto; }
.menu { display: flex; gap: 2px; }
.menu a { padding: 8px 10px; font-size: .95rem; font-weight: 500; color: #4a4f5c; }
.menu a:hover { color: #14213d; }
.menu a[aria-current=page] { color: #14213d; font-weight: 700; box-shadow: inset 0 -2px 0 var(--amber); }
.hsoc { display: flex; padding-left: 12px; border-left: 1px solid var(--hbar-line); }
.hsoc a { width: 40px; height: 40px; display: grid; place-items: center; color: #14213d; border-radius: 8px; }
.hsoc a:hover { background: rgba(20, 33, 61, .07); }
.hsoc svg { width: 20px; height: 20px; }
.acts { display: flex; gap: 8px; }
.acts .btn { padding: 9px 14px; font-weight: 700; }
.btn.call { background: var(--amber); color: #14213d; font-weight: 700; }
.btn.call:hover { background: #d69a37; }
.hmore { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: none; color: #14213d; cursor: pointer; border-radius: 8px; }
header.top :focus-visible { outline-color: #14213d; }
@media (max-width: 1060px) { .menu a { padding: 8px 7px; font-size: .9rem; } .acts .btn span { display: none; } .acts .btn { padding: 9px 11px; } }

/* phones and tablets: logo, Instagram / Facebook and "more" on top; the menu bar at the bottom */
.bbar { display: none; }
@media (max-width: 860px) {
  .nav { height: 56px; gap: 2px; }
  .menu, .acts { display: none; }
  .hsoc { padding-left: 0; border-left: 0; }
  .hsoc a { width: 44px; height: 44px; }
  .hmore { display: grid; }
  .brand-logo img { height: 36px; }
  body { padding-bottom: 76px; }
  .bbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 33, 61, .08); }
  .bi { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.2; cursor: pointer; }
  .bi svg { width: 22px; height: 22px; }
  /* the page you are on and hover: warm sand, like the page (owner, 2026-11-12) */
  .bi:hover { background: var(--soft); }
  .bi[aria-current=page] { color: var(--warm-ink); font-weight: 700; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2); }
  .bi.line { background: var(--line-green); color: #fff; font-weight: 700; }
  .bi.call { background: var(--amber); color: #14213d; font-weight: 700; }
  .bi.call:hover { background: #d69a37; }
  .bi.line:hover { background: #036e32; }
  .bbar :focus-visible { outline-color: var(--ink); }
  .preview-bar { top: 56px; }
}
@media (max-width: 360px) { .bbar { gap: 2px; padding-left: 4px; padding-right: 4px; } .bi { font-size: .7rem; } }

/* "เมนูอื่นๆ" sheet: drops from the top over a dark veil */
.msheet { position: fixed; inset: 0; z-index: 80; }
.ms-back { position: absolute; inset: 0; background: rgba(10, 16, 32, .6); }
/* slides down from the top (owner, 2026-11-12) */
.ms-panel { position: absolute; left: 0; right: 0; top: 0; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 12px 16px; background: var(--bg); border-radius: 0 0 18px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: ms-down .25s ease-out; }
@keyframes ms-down { from { transform: translateY(-100%); } to { transform: none; } }
.ms-back { animation: ms-fade .25s ease-out; }
@keyframes ms-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 861px) { .ms-panel { left: auto; width: 400px; border-radius: 0 0 0 18px; } }
.ms-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.ms-head b { font-size: 1.25rem; }
.ms-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--head); color: #fff; cursor: pointer; }
.ms-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); }
.ms-search:focus-within { border-color: var(--brand); }
.ms-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; color: var(--ink); }
.ms-grp { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.ms-grp h2 { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; margin: 0; background: var(--head); color: #fff; font-size: .95rem; }
.ms-grp ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.ms-grp li { border-top: 1px solid var(--line); }
.ms-grp li:nth-child(-n+2) { border-top: 0; }
.ms-grp li:nth-child(odd) { border-right: 1px solid var(--line); }
.ms-grp a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; font-weight: 600; font-size: .95rem; }
.ms-grp a svg { flex: none; color: var(--accent2); }
.ms-grp a:hover { background: var(--soft); }
.ms-grp a[aria-current=page] { background: var(--soft); color: var(--warm-ink); }
.ms-soc { display: flex; justify-content: center; gap: 12px; }
.ms-soc a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--head); color: #fff; }
body.menu-open { overflow: hidden; }

/* footer: navy, left aligned, small icons */
footer.ft { margin-top: 64px; background: #0f1f4a; color: #fff; padding: 26px 0 24px; }
footer.ft .wrap { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
footer.ft ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
footer.ft a { color: #fff; }
.fnav li { font-size: .92rem; }
.fnav li + li { border-left: 1px solid rgba(255, 255, 255, .28); margin-left: 16px; padding-left: 16px; }
.fico { gap: 8px 18px; }
.fico a { display: flex; align-items: center; gap: 7px; font-size: .88rem; }
.fico svg { width: 16px; height: 16px; flex: none; }
footer.ft .addr { font-size: .85rem; color: #d5dbea; max-width: 640px; }
footer.ft .copy { width: 100%; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .8rem; color: #c7cfe2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
/* phones and tablets: no footer, the black bottom bar carries the menu and Instagram / Facebook (owner, 2026-11-11) */
@media (max-width: 860px) { footer.ft { display: none; } main { padding-bottom: 24px; } }


/* home hero: a landscape behind the name, the short text and the search capsule (owner mock-up, 2026-11-11) */
.hero { position: relative; overflow: visible; color: var(--ink); background: linear-gradient(120deg, color-mix(in srgb, var(--ink) 6%, var(--bg)), var(--bg)); }
.hero.has-img { background: var(--bg); }
/* the bottom of the picture fades softly into the page (owner, 2026-11-11) */
.hero.has-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; z-index: 1; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg)); pointer-events: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* the same wash as the CMS list banners: the page colour on the left behind the text, the picture clear on the right (owner, 2026-11-11) */
.hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 22%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 80%); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(360px, 32vw, 440px); padding-top: clamp(36px, 5vw, 64px); padding-bottom: 28px; }
.hero-eye { display: flex; align-items: center; gap: 16px; font-size: .86rem; letter-spacing: .38em; font-weight: 500; color: var(--muted); }
.hero-eye i { display: block; width: 26px; border-top: 1px solid currentColor; }
.hero-eye.th { letter-spacing: .04em; font-size: 1.05rem; font-weight: 600; }
/* Prompt italic for the name and the short text (owner, 2026-11-11) */
.hero-title { margin: 18px 0 14px; font-family: 'Prompt', var(--font); font-size: clamp(3rem, 7vw, 4.875rem); line-height: 1.1; font-weight: 500; font-style: italic; letter-spacing: -.01em; }
.hero-lede { max-width: 640px; font-family: 'Prompt', var(--font); font-size: clamp(1.1rem, 2.1vw, 1.65rem); line-height: 1.55; font-style: italic; font-weight: 200; }
/* search bar: as wide as the page content (lines up with the text and the trip cards), gently rounded */
/* search bar (home style, every page): beige like the page, a thin border, gently rounded (owner, 2026-11-12) */
.hsearch { position: relative; margin-top: auto; width: 100%; display: flex; align-items: center; padding: 0 8px 0 10px; height: 74px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(10, 20, 40, .14); }
.hsearch label, .hsearch summary { display: flex; align-items: center; gap: 12px; min-width: 0; height: 52px; color: var(--ink); }
.hsearch label > svg, .hsearch summary > svg { flex: none; color: var(--ink); }
.hs-q { flex: 1.7 1 0; padding-right: 18px; }
.hs-sel { flex: 1 1 0; min-width: 0; padding: 0 22px; border-left: 1px solid var(--line); }
.hsearch { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .hsearch { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1f3f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
.hsearch .hs-sel select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: var(--chev) no-repeat right center; }
.hsearch input, .hsearch select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 1rem; }
.hsearch select option { color: #14213d; background: #fff; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch select { font-weight: 600; cursor: pointer; }
.hsearch label:focus-within { box-shadow: inset 0 -2px 0 var(--brand-solid); }
.hs-go { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.hs-go:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
/* Story Tags: several at once, in a panel under the bar */
.hsearch details.tagf { position: relative; display: flex; align-items: center; }
.hsearch details.tagf summary { flex: 1; list-style: none; cursor: pointer; padding-right: 24px; background: var(--chev) no-repeat right center; }
.hsearch details.tagf summary::-webkit-details-marker { display: none; }
.hsearch .tagf .tl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hsearch .tagf .tl.has { color: var(--brand); }
.hsearch .tagpanel { top: calc(100% + 10px); left: 0; }
.hsearch .tagpanel label { height: auto; gap: 10px; }
.hsearch.two .hs-q { flex: 2.6 1 0; }
.home section.sec.first { padding-top: 34px; }
/* the other pages: the same hero without the search bar is shorter (owner, 2026-11-12) */
.hero.no-search .hero-in { min-height: clamp(240px, 22vw, 300px); padding-bottom: 40px; }
.hero-act { margin-top: 22px; }
/* review pages: the picture itself as the hero, white text on it bottom left (owner, 2026-11-12) */
@media (max-width: 700px) {
  .hero-in { min-height: 0; padding-top: 24px; padding-bottom: 14px; }
  .hero-eye { font-size: .7rem; letter-spacing: .22em; }
  /* phones: the text runs the full width, so the wash covers more of the picture */
  .hero.has-img::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
  .hero.has-img::after { height: 10%; }
  .hsearch { margin-top: 24px; height: auto; flex-wrap: wrap; padding: 4px 6px; border-radius: 12px; }
  .hs-q { flex: 1 1 100%; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .hs-sel { flex: 1 1 50%; padding: 0 10px; border-left: 0; }
  .hs-sel + .hs-sel { border-left: 1px solid var(--line); }
  .hsearch.two .hs-sel { flex-basis: 100%; }
  .hsearch .tagpanel { left: auto; right: 0; }
  .hs-go { width: 40px; height: 40px; }
}


/* sub-tabs (chips) */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 22px 0 6px; }
.tabs.left { justify-content: flex-start; padding: 6px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 7px 16px; font-size: .92rem; }
.chip[aria-current=page] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover:not([aria-current=page]) { border-color: var(--muted); }
.cat-tabs { padding-top: 12px; }
/* trip lists: small chips and the calendar icon on one row */
.ltabs { flex-wrap: nowrap; gap: 6px; padding-top: 18px; }
.ltabs .chip { flex: none; padding: 5px 12px; font-size: .85rem; }
.ltabs .chip.ico { padding: 5px 9px; }
@media (max-width: 360px) { .ltabs { gap: 4px; } .ltabs .chip { padding: 5px 9px; font-size: .8rem; } .ltabs .chip.ico { padding: 5px 7px; } }
/* Story Tag chips wrap onto more lines instead of running off the page */
@media (max-width: 600px) {
  .cat-tabs { gap: 6px; }
  .cat-tabs .chip { padding: 6px 11px; font-size: .85rem; gap: 5px; }
}

/* Story Tags panel */
.tagpanel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 240px; max-height: 340px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 30, 60, .18); padding: 8px; cursor: auto; }
.tagpanel label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.tagpanel label:hover { background: var(--bg); }
.tagpanel label { justify-content: flex-start; text-align: left; }
.tp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.tclr { border: 0; background: none; color: var(--muted); font-size: .85rem; padding: 6px; cursor: pointer; }
.tagpanel input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; }

/* section headings */
section.sec { padding: 44px 0 8px; }
section.sec.first { padding-top: 22px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 22px 0 16px; }
.sec-h h1, .sec-h h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-right: auto; }
.sec .sec-h, .rvband .sec-h { margin-top: 0; }
/* Trip list: the trip calendar at the bottom (/trip#calendar), reached from the "ปฏิทินทริป" tab. */
.list-cal { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line, #e5e2d8); }
.cnt { font-size: .88rem; font-weight: 400; color: var(--muted); margin-left: 10px; }
a.allbtn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: transform .15s; }
a.allbtn:hover { transform: translateY(-1px); }
.sec-h .clear { color: var(--brand); font-size: .92rem; }
.sort-form select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); padding: 0 10px; font-size: .9rem; cursor: pointer; }
.sublink { display: flex; justify-content: flex-end; padding: 10px 0 0; }
.sublink a { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--brand); }

/* trip tiles: 4:5 photo, badge, name, dates + price on a dark fade */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.tile { container-type: inline-size; display: block; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.tile:hover { box-shadow: 0 10px 28px rgba(15, 30, 60, .16); transform: translateY(-2px); }
.tile .pic { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .94); color: #14213d; font-size: .74rem; padding: 2px 10px; border-radius: 999px; }
.tag.l { right: auto; left: 12px; }
/* a light fade at the very bottom only, so the photo keeps its colours (owner, 2026-11-11) */
.tile .foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 34px 5cqw 11px; color: #fff; background: linear-gradient(to top, rgba(8, 14, 30, .62), rgba(8, 14, 30, .28) 55%, rgba(8, 14, 30, 0)); text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.tile .tt { font-weight: 600; font-size: clamp(.86rem, 6.4cqw, 1.18rem); line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .fl { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .55); white-space: nowrap; font-size: clamp(.72rem, 5.2cqw, 1rem); }
.tile .fl span { overflow: hidden; text-overflow: ellipsis; }
.tile .fl b { font-weight: 600; }

/* home: black Review band, 4 cards desktop / 3 phones, slides every 3 s */
.rvband { background: #000; color: #fff; margin-top: 48px; padding: 34px 0 36px; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax); }
.rvband a.allbtn { background: #fff; color: #000; }
.rtrack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rtrack::-webkit-scrollbar { display: none; }
.rc { position: relative; display: block; border-radius: 10px; overflow: hidden; color: #fff; }
.rtrack .rc { flex: 0 0 calc((100% - 36px) / 4); scroll-snap-align: start; }
.rph { display: block; aspect-ratio: 4 / 5; background: #111; }
.rph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rc:hover .rph img { transform: scale(1.05); }
.rc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0) 48%); pointer-events: none; }
.rt { position: absolute; right: 14px; bottom: 14px; left: 22%; z-index: 2; text-align: right; font-weight: 500; font-size: .98rem; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1024px) { .rgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .rtrack { gap: 8px; }
  .rtrack .rc { flex-basis: calc((100% - 16px) / 3); }
  .rtrack .rt { font-size: .74rem; left: 10%; right: 8px; bottom: 8px; line-height: 1.3; }
  .rgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rgrid .rt { font-size: .86rem; right: 10px; bottom: 10px; left: 12%; }
}

/* stories: 3 columns (text under the picture), phones a row with the picture left */
.s3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.sc3 { display: flex; flex-direction: column; gap: 12px; }
.sc3 .ph { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--line); }
.sc3 .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sc3:hover .ph img { transform: scale(1.05); }
.sc3 .tx { display: block; }
.sc3 .stg { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.sc3 h3 { font-size: 1.12rem; line-height: 1.4; }
.sc3 .sp { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
@media (max-width: 700px) {
  .s3 { grid-template-columns: 1fr; gap: 16px; }
  .sc3 { display: grid; grid-template-columns: 38% 1fr; gap: 14px; align-items: start; }
  .sc3 h3 { font-size: 1.02rem; }
  .sc3 .sp { font-size: .9rem; }
}
@media (min-width: 701px) and (max-width: 900px) { .s3 { grid-template-columns: repeat(2, 1fr); } }

.quote { background: var(--navy); color: #fff; border-radius: 14px; padding: 54px 26px; text-align: center; margin-top: 48px; }
.quote p { font-size: clamp(1.4rem, 3.6vw, 2.4rem); line-height: 1.35; max-width: 760px; margin: 0 auto 12px; }
.quote small { color: #c7cfe2; }
@media (prefers-color-scheme: dark) { .quote { border: 1px solid var(--line); } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 26px 0 0; color: var(--muted); font-size: .92rem; }

/* gallery: masonry of pictures only, no captions */
.masonry.mg { columns: 2; column-gap: 8px; }
@media (min-width: 700px) { .masonry.mg { columns: 3; column-gap: 12px; } }
@media (min-width: 1050px) { .masonry.mg.wall { columns: 4; } }
.masonry.mg a { display: block; margin-bottom: 8px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: var(--line); }
@media (min-width: 700px) { .masonry.mg a { margin-bottom: 12px; } }
.masonry.mg img { width: 100%; height: auto; transition: transform .5s; }
.masonry.mg a:hover img { transform: scale(1.04); }
.masonry.mg a:nth-child(5n+1) img { aspect-ratio: 3 / 4; object-fit: cover; }
.masonry.mg a:nth-child(5n+2) img { aspect-ratio: 1; object-fit: cover; }
.masonry.mg a:nth-child(5n+3) img { aspect-ratio: 4 / 5; object-fit: cover; }
.masonry.mg a:nth-child(5n+4) img { aspect-ratio: 4 / 3; object-fit: cover; }
.masonry.mg a:nth-child(5n) img { aspect-ratio: 2 / 3; object-fit: cover; }
.masonry.mg .f-land img { aspect-ratio: 3 / 2; }
.masonry.mg .f-port img { aspect-ratio: 3 / 4; }
.masonry.mg .f-sq img { aspect-ratio: 1; }
/* Review and Gallery walls: tighter gaps (owner, 2026-11-11) */
.masonry.mg.wall { column-gap: 4px; }
.masonry.mg.wall a { margin-bottom: 4px; border-radius: 8px; }
@media (min-width: 700px) { .masonry.mg.wall { column-gap: 6px; } .masonry.mg.wall a { margin-bottom: 6px; } }
/* Review wall: the title bottom left, under a thin line, on a light fade */
.masonry.mg.titled a { position: relative; }
.masonry.mg.titled a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(8, 14, 30, .7), rgba(8, 14, 30, 0)); pointer-events: none; }
.masonry.mg .mt { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 500; font-size: .98rem; line-height: 1.35; text-align: left; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
@media (max-width: 700px) { .masonry.mg .mt { left: 9px; right: 9px; bottom: 8px; padding-top: 5px; font-size: .84rem; } }
.mainc .masonry.mg { columns: 3; column-gap: 8px; }
.mainc .masonry.mg a { margin-bottom: 8px; }
@media (max-width: 700px) { .mainc .masonry.mg { columns: 2; } }

/* ---------- trip detail (owner mock-up 2026-11-12) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 16px; align-items: start; }
.mainc, .side { min-width: 0; }
.mainc { display: flex; flex-direction: column; gap: 12px; }
/* where am I: trip list / country, small and light (owner, 2026-11-12) */
.crumb ol { list-style: none; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumb li { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb li:first-child { flex: none; }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumb a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* title block: small flags with the share button at the right on one line, then the title across the full width */
.theading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; }
.theading .flags { grid-column: 1; grid-row: 1; }
.theading .tshare { grid-column: 2; grid-row: 1; }
.theading h1 { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.3; overflow-wrap: anywhere; }
.flags { display: flex; }
.flagc { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; background: var(--card); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.flags.many .flagc + .flagc { margin-left: -8px; }
/* share: a small outlined pill on the flags' line; the menu opens under it */
.tshare { position: relative; }
.shbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.shbtn:hover { border-color: var(--muted); }
.sharepop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 30, 60, .18); padding: 6px; display: flex; flex-direction: column; }
.sharepop a, .sharepop button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; text-align: left; }
.sharepop a:hover, .sharepop button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.shi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .82rem; font-weight: 700; flex: none; line-height: 1; }
/* 3:2 carousel: dots inside the picture, counter top right */
.gwrap { position: relative; }
.gallery { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--line); }
.gslide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.gslide.on { opacity: 1; z-index: 1; }
.gslide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.counter { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--head); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 600; }
.garr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #14213d; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.garr.prev { left: 12px; }
.garr.next { right: 12px; }
.gdots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; padding: 6px 10px; background: rgba(10, 15, 29, .38); border-radius: 999px; }
.gdots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; }
.gdots button.on { background: #fff; width: 18px; border-radius: 4px; }
/* phones and tablets: the picture first, edge to edge, then the path, title and share */
@media (max-width: 900px) {
  .gwrap { order: -1; margin: -16px calc(var(--gut) * -1) 0; }
  .gallery { border-radius: 0; }
  .garr { display: none; }
}

/* sections that open and close: navy heading with an icon while open, a white bar while closed */
.tsecs { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tsec { position: relative; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; scroll-margin-top: 80px; }
.tsec > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 16px; cursor: pointer; color: var(--ink); }
.tsec > summary::-webkit-details-marker { display: none; }
.tsec > summary h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.12rem; line-height: 1.35; }
.tsec > summary small { flex: none; color: var(--muted); font-size: .85rem; }
.tsec > summary .ts-ic { flex: none; color: var(--accent2); }
.ts-chev { flex: none; color: var(--accent2); }
.tsec[open] > summary { background: var(--head); color: #fff; }
.tsec[open] > summary small, .tsec[open] > summary .ts-ic, .tsec[open] > summary .ts-chev { color: #fff; }
@media (hover: hover) { .tsec > summary:hover h2 { text-decoration: underline; text-underline-offset: 3px; } }
.tsec > summary:focus-visible { outline-offset: -3px; }
.tsec[open] > summary:focus-visible { outline-color: #fff; }
.ts-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
/* "เปิดทั้งหมด" sits in the heading, in place of the count, while the section is open */
.ts-tools { position: absolute; top: 0; right: 48px; z-index: 1; height: 56px; display: flex; align-items: center; }
.ts-all { min-height: 36px; padding: 4px 14px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 999px; background: none; color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ts-all:hover { background: rgba(255, 255, 255, .12); }
.ts-all:focus-visible { outline-color: #fff; }
.tsec.has-tools[open] > summary small { display: none; }
.tsec.has-tools[open] > summary h2 { padding-right: 118px; }
@media (min-width: 901px) {
  .tsec > summary { padding: 6px 22px; min-height: 58px; } .tsec > summary h2 { font-size: 1.25rem; } .ts-body { padding: 20px 24px 24px; }
  .ts-tools { height: 58px; right: 56px; }
}
.linkbtn { align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--brand); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* overview: facts, the short line, the text (3 lines on phones, then "อ่านต่อ"), tags */
/* trip facts: icon, small label, the value in bold; thin lines between cells, then a line under the block */
.tfactw { overflow: hidden; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.tfacts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -1px 0 0 -1px; }
.tfacts li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tfacts li > svg { flex: none; color: var(--ink); stroke-width: 1.4; }
.tfacts li > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tfacts small { color: var(--muted); font-size: .85rem; }
.tfacts b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.05rem; font-weight: 700; }
.lvl { display: inline-flex; gap: 4px; }
.lvl i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.lvl i.on { background: var(--ink); }
/* phones: still 3 × 2, so the icon sits above the words and each cell is centred */
@media (max-width: 700px) {
  .tfacts li { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; }
  .tfacts li > svg { width: 24px; height: 24px; }
  .tfacts li > span { align-items: center; }
  .tfacts small { font-size: .78rem; }
  .tfacts b { justify-content: center; gap: 4px 6px; font-size: .9rem; line-height: 1.3; }
  .lvl i { width: 8px; height: 8px; }
}
.lede { font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 700; line-height: 1.4; color: var(--ink); }
@media (max-width: 900px) { .js .clamp.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
.clampw { display: flex; flex-direction: column; gap: 2px; }
.ttags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ttags a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line2); font-size: .85rem; }
.ttags a:hover { border-color: var(--muted); }

/* price, rounds and the round calendar (month grid styles from calendar.css) */
.tprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.2; }
.tprice small { font-size: .9rem; color: var(--muted); }
.tprice b { font-size: 1.7rem; font-weight: 700; color: var(--accent2); }
.tprice.big b { font-size: 2.1rem; }
.tprice b.ask { font-size: 1.3rem; }
.tripcal { display: flex; flex-direction: column; gap: 10px; }
.tc-pick { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.tc-pick small { color: var(--muted); font-weight: 400; }
.tc-pick select { height: 48px; width: 100%; border: 1.5px solid var(--brand); border-radius: 10px; background: var(--card); color: var(--ink); padding: 0 12px; font-size: 1rem; cursor: pointer; }
.tc-one { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 600; }
.tc-one svg { color: var(--accent2); }
.tc-one small { color: var(--muted); font-weight: 400; }
.tripcal-box { padding: 14px; border-color: var(--line2); }
.tripcal .tc-inline-month h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.tripcal-plain { margin: 0; padding-left: 1.2em; }
@media (max-width: 480px) { .tripcal-box { padding: 10px; } }
.fr { display: flex; gap: 10px; align-items: flex-start; }
.fr svg { flex: none; margin-top: 4px; color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; }
/* include / exclude: side by side, first items only until "ดูรายการทั้งหมด" */
.incg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.incb { padding: 12px 14px; border-radius: 10px; font-size: .93rem; line-height: 1.5; }
.incb.yes { background: color-mix(in srgb, #2e8b4a 8%, var(--card)); }
.incb.no { background: color-mix(in srgb, #b4492f 7%, var(--card)); }
.incb > b { display: block; margin-bottom: 6px; }
.incb.yes > b { color: var(--ok); }
.incb.no > b { color: var(--no); }
.incb ul { list-style: none; display: grid; gap: 4px; }
.incb li { position: relative; padding-left: 20px; }
.incb.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.incb.no li::before { content: "✕"; position: absolute; left: 0; color: var(--no); }
.js .incg:not(.all) li.more { display: none; }
@media (max-width: 380px) { .incg { grid-template-columns: 1fr; } }
.tcta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .tcta { grid-template-columns: 1fr; } }

/* highlights: one per row with a small photo; tap the row to see the photo full width under it */
.hlist { list-style: none; display: flex; flex-direction: column; }
.hlist > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hlist > li:first-child { border-top: 0; padding-top: 0; }
.hlist > li > svg, .highlight-photo summary > svg { flex: none; align-self: flex-start; margin-top: 2px; color: var(--accent2); }
.hl-copy { flex: 1; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; line-height: 1.5; overflow-wrap: anywhere; }
.hl-copy b { font-size: 1.05rem; }
.hl-copy span { color: var(--muted); font-size: .95rem; }
.highlight-photo { flex: 1; min-width: 0; }
.highlight-photo summary { list-style: none; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.highlight-photo summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .highlight-photo summary:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.hl-thumb { flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--line); }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-photo[open] .hl-thumb { display: none; }
.hl-full { display: block; margin-top: 10px; border-radius: 10px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.hl-full img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
@media (min-width: 901px) { .hl-thumb { width: 128px; height: 86px; } }

/* program accordion */
.days { display: flex; flex-direction: column; }
details.day { border-top: 1px solid var(--line); }
details.day:first-child { border-top: 0; }
/* the DAY box, the text and the toggle all start at the top of the row */
details.day summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; }
details.day summary::-webkit-details-marker { display: none; }
.day-toggle { flex: none; color: var(--accent2); margin-left: auto; margin-top: 3px; }
.dn { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 6px; border-radius: 8px; line-height: 1; font-size: .68rem; letter-spacing: .14em; color: #fff; background: #073681; }
.dn b { font-size: 1.45rem; color: inherit; letter-spacing: 0; margin-top: 4px; }
.dt { flex: 1; min-width: 0; }
.dt .tl2 { display: block; line-height: 1.4; }
.dt .tl2 b { font-weight: 600; }
.dt .sty { color: var(--muted); font-weight: 400; font-size: .92rem; }
.dt .sty i { font-style: normal; margin: 0 8px; opacity: .5; }
.dt small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.dmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.dmeta span { display: inline-flex; align-items: center; gap: 4px; }
details.day .in { padding: 0 0 18px; }
.dimg { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: var(--line); }
.dimg img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { details.day summary { gap: 10px; } .dn { min-width: 50px; } .dn b { font-size: 1.25rem; } }
/* stay box inside a day */
.day-stay { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.day-stay-box { margin: 18px 0 4px; padding: 14px 16px; border-radius: 10px; }
.day-stay-box .day-stay { margin-bottom: 10px; }
.day-stay-box:not(.has-img) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.day-stay-box:not(.has-img) .day-stay { margin: 0; }
.day-stay-box:not(.has-img) .stay-row, .day-stay-box:not(.has-img) .stay-info { display: contents; }
.day-stay-box:not(.has-img) .hotel-note { flex-basis: 100%; }
.stay-row { display: flex; align-items: flex-start; gap: 16px; }
.stay-row img { flex: none; width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.stay-info { display: grid; gap: 4px; min-width: 0; }
.hotel-name { font-weight: 700; }
.hotel-caption, .hotel-city { font-size: .9rem; }
.hotel-city { display: inline-flex; align-items: center; gap: 4px; }
.hotel-note { font-size: .78rem; line-height: 1.5; }
@media (max-width: 600px) { .stay-row { flex-direction: column; gap: 10px; } .stay-row img { width: 100%; } }

/* review photos and links */
.mainc .masonry.mg { columns: 2; column-gap: 8px; }
.mainc .masonry.mg a { margin-bottom: 8px; }
@media (min-width: 701px) { .mainc .masonry.mg { columns: 4; } }
.rvlinks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rvlinks a { color: var(--brand); font-weight: 600; font-size: .95rem; }

/* route: map, the stay timeline, the hotels (in the sidebar on desktop) */
.rmap { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.rmap img { width: 100%; max-height: 520px; object-fit: contain; }
.staybox { background: var(--soft); border-radius: 10px; padding: 14px 16px; }
.stay-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.stay-h span { color: var(--muted); font-size: .9rem; }
.stl { list-style: none; position: relative; }
.stl li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.stl li + li::before { content: ""; position: absolute; left: 16px; top: -22px; height: 44px; border-left: 2px dashed var(--line2); }
.stl .sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; z-index: 1; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }
.stl .sb b { display: block; line-height: 1.3; }
.stl .sb small { display: block; color: var(--muted); font-size: .88rem; }
.stl .nt { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 12px; font-size: .88rem; white-space: nowrap; }
.hotels-m h3, .flights h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.02rem; margin-bottom: 8px; }
.hotels-m h3 small { color: var(--muted); font-weight: 400; font-size: .88rem; }
@media (min-width: 901px) { .hotels-m { display: none; } }
/* cards that scroll sideways */
.ctrack { position: relative; }
.sc { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
.sc button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 1.15rem; line-height: 1; }
.htrack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.htrack::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 240px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hcard figcaption { padding: 8px 12px 10px; font-size: .9rem; }
@media (max-width: 600px) { .hcard { flex-basis: 74%; } }
.flr { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.flights .flr:first-child { border-top: 0; padding-top: 0; }
.flr .fc { color: var(--muted); font-size: .85rem; align-self: center; }
.flr small { grid-column: 1 / -1; color: var(--muted); }
/* FAQ: closed, two columns on wide screens */
.faqg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
@media (max-width: 700px) { .faqg { grid-template-columns: 1fr; } }
details.fq { background: var(--soft); border-radius: 8px; padding: 12px 14px; }
details.fq summary { cursor: pointer; font-weight: 600; }
details.fq .prose { color: var(--muted); margin-top: 6px; font-size: .95rem; }

/* other trips on phones and tablets: the sidebar card, at the end of the page */
.rel-m { margin-top: 0; }
.rel-m .ts-body { gap: 0; }
@media (min-width: 901px) { .rel-m { display: none; } }

/* desktop sidebar: sticky price card, hotels, other trips (navy card headings like the sections) */
/* the sidebar scrolls with the page; nothing in it is sticky (owner, 2026-11-12) */
.side { display: flex; flex-direction: column; gap: 14px; }
.scard { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.scard h2 { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; margin: 0; background: var(--head); color: #fff; font-size: 1rem; }
/* sidebar cards that open and close (other trips): white bar while closed, like the sections */
details.scard > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer; color: var(--ink); }
details.scard > summary::-webkit-details-marker { display: none; }
details.scard > summary h2 { flex: 1; min-height: 0; padding: 0; background: none; color: inherit; }
details.scard > summary svg { flex: none; color: var(--accent2); }
details.scard[open] > summary { background: var(--head); color: #fff; }
details.scard[open] > summary svg { color: #fff; }
details.scard > summary:focus-visible { outline-offset: -3px; }
details.scard[open] > summary:focus-visible { outline-color: #fff; }
.scard h2 small { margin-left: auto; font-weight: 400; font-size: .85rem; color: #d5dbea; }
.scb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.sprice { box-shadow: 0 8px 24px rgba(20, 33, 61, .08); }
.snext { color: var(--muted); font-size: .9rem; }
.sbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sbtns .btn { font-weight: 700; }
.slist { list-style: none; }
.slist li { display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.4; }
.slist a { flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--line); }
.slist img { width: 100%; height: 100%; object-fit: cover; }
.relc { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.scb .relc:first-child, .rel-m .relc:first-child { border-top: 0; padding-top: 0; }
.relc .rth { display: block; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; background: var(--line); }
.relc img { width: 100%; height: 100%; object-fit: cover; }
.relc b { display: block; line-height: 1.35; font-size: .95rem; }
.relc small { color: var(--muted); }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .side { display: none; }
}

/* text from the CMS (**bold**, bullets, ## headings, links, coloured words) */
.prose p { margin-bottom: .85em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 .85em; padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose h3 { margin: 1.2em 0 .5em; font-size: 1.12rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.prose .day-summary { margin: 18px 0 4px; padding: 12px 18px 6px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, var(--card)); }
.prose .day-summary h3 { margin-top: 0; }
/* Trip-day cards (stay, day summary): light grey with dark text (owner, 2026-11-12), matching heading/body sizes. */
.day-stay-box, details.day .day-summary { background: color-mix(in srgb, var(--ink) 6%, var(--card)); color: var(--ink); font-size: .95rem; }
.day-stay-box .day-stay, .day-stay-box .hotel-name, details.day .day-summary h3 { font-size: 1rem; font-weight: 700; }
.day-stay-box .hotel-note { font-size: .95rem; }
.day-stay-box .hotel-caption, .day-stay-box .hotel-city, .day-stay-box .hotel-note,
details.day .day-summary :is(a, .tx-orange, .tx-green, .tx-gold) { color: inherit; }
.mdb { font-size: 1.02rem; }
.tx-orange { color: #a64f1f; }
.tx-green { color: #237043; }
.tx-gold { color: #85592a; }
@media (prefers-color-scheme: dark) { .tx-orange { color: #f0a273; } .tx-green { color: #7ccf98; } .tx-gold { color: #e3bb7a; } }

/* ---------- story / review / about pages ---------- */
.post .post-gap { height: 24px; }
.phero { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; margin: 18px 0; background: var(--line); }
.phero img { width: 100%; height: 100%; object-fit: cover; }
.pt { display: flex; gap: 6px; flex-wrap: wrap; }
.pt a { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 12px; background: var(--card); }
.post h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.3; margin: 10px 0 6px; }
.post .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 4px; }
.post .meta { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.s-body { display: grid; gap: 22px; margin-top: 18px; }
/* review / gallery page as an Instagram profile (2026-11-12): round flag, name, bio, 3-column portrait grid */
.igp { max-width: 935px; margin: 0 auto; padding: 32px var(--gut) 8px; }
.igp-head { display: flex; align-items: center; gap: clamp(20px, 7vw, 88px); padding: 0 clamp(0px, 4vw, 48px) 28px; }
.igp-av { position: relative; flex: none; width: 150px; height: 150px; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, #e0a84a, #c0561f, #9c2f6b, #e0a84a); }
.igp-av > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); background: var(--card); }
.igp-more { position: absolute; right: -4px; bottom: 2px; display: flex; }
.igp-more img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: var(--card); }
.igp-more img + img { margin-left: -10px; }
.igp-info { min-width: 0; }
.igp h1 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; margin: 0 0 10px; font-style: normal; }
.igp-count { margin: 0 0 10px; font-size: .95rem; }
.igp-bio p { margin: 0; line-height: 1.6; white-space: pre-line; }
.igp-where { margin-top: 4px !important; font-size: .92rem; }
.igp-where a { color: var(--ink); font-weight: 600; text-decoration: none; }
.igp-where a:hover { text-decoration: underline; }
.igp-text { margin: 0 0 24px; padding: 0 clamp(0px, 4vw, 48px); color: var(--muted); }
.igp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.igp-grid a { display: block; overflow: hidden; background: var(--line); }
.igp-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .15s; }
.igp-grid a:hover img { opacity: .88; }
.igp-grid.trip-photos { border-top: 0; padding-top: 0; border-radius: 8px; overflow: hidden; }
@media (max-width: 700px) {
  .igp { padding-top: 20px; }
  .igp-head { gap: 20px; padding: 0 0 18px; align-items: flex-start; }
  .igp-av { width: 86px; height: 86px; padding: 3px; }
  .igp-av > img { border-width: 3px; }
  .igp-more img { width: 24px; height: 24px; }
  .igp-text { padding: 0; }
  .igp-grid { margin: 0 calc(var(--gut) * -1); gap: 2px; padding-top: 2px; }
  /* Inside a trip-page section the grid stays within the card. */
  .igp-grid.trip-photos { margin: 0; padding-top: 0; }
}
.s-text { font-size: 1.06rem; line-height: 1.9; }
.s-text.is-first > p:first-child { font-size: 1.15rem; }
.s-images figure { margin: 0; }
.s-images img { width: 100%; height: auto; border-radius: 8px; background: var(--line); }
.s-images figcaption { margin-top: 8px; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.s-images.is-one { text-align: center; }
.is-one img { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
.is-masonry .s-track { columns: 2; column-gap: 10px; }
.is-masonry figure { break-inside: avoid; margin-bottom: 10px; }
.is-masonry .f-land img { aspect-ratio: 3 / 2; object-fit: cover; }
.is-masonry .f-port img { aspect-ratio: 3 / 4; object-fit: cover; }
.is-masonry .f-sq img { aspect-ratio: 1; object-fit: cover; }
.is-grid .s-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.is-grid.cols-2 .s-track { grid-template-columns: repeat(2, 1fr); }
.is-grid img { aspect-ratio: 3 / 2; object-fit: cover; }
.is-slide .s-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.is-slide .s-track::-webkit-scrollbar { display: none; }
.is-slide figure { flex: none; max-width: 92%; scroll-snap-align: center; }
.is-slide img { width: auto; height: min(56vh, 480px); object-fit: cover; }
.s-slide-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.s-slide-ctl button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
@media (max-width: 700px) {
  .s-images { margin: 0 calc(var(--gut) * -1); }
  .s-images figcaption { padding: 0 var(--gut); }
  .s-images img { border-radius: 0; }
  .is-masonry .s-track { column-gap: 4px; }
  .is-masonry figure { margin-bottom: 4px; }
  .is-grid .s-track, .is-grid.cols-2 .s-track { grid-template-columns: 1fr 1fr; gap: 4px; }
  .is-slide .s-track { gap: 6px; padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
}
.share { display: flex; gap: 8px; margin: 28px 0; flex-wrap: wrap; }
.fromtrip { display: grid; grid-template-columns: 110px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-items: center; margin-bottom: 22px; }
.fromtrip .ph { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--line); }
.fromtrip img { width: 100%; height: 100%; object-fit: cover; }
.fromtrip > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.fromtrip b { font-size: 1.05rem; line-height: 1.35; }
.fromtrip small { color: var(--muted); }
.fromtrip .fp { color: var(--brand); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.pn a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pn a.nx { text-align: right; grid-column: 2; }
.pn small { color: var(--brand); }
.pn b { font-weight: 500; line-height: 1.4; }
/* previous / next stay side by side on phones too (owner, 2026-11-12); long titles stop at two lines */
.pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .pn { gap: 8px; } .pn a { padding: 10px 12px; } .pn small { font-size: .8rem; } .pn b { font-size: .92rem; } }
/* about */
.about-body { padding-top: 12px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .cards3 { grid-template-columns: 1fr; } }
.cbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cbox small { color: var(--muted); }
.cbox b { font-size: 1.15rem; }
.cbox .brk { word-break: break-all; }
.cbox.addr { margin-bottom: 8px; }

/* review / gallery photos: "painaima.com" drawn over the picture so a screenshot keeps it; the shield takes long-presses */
.wm-zone a[data-full], .wm-pic, .lightbox.is-protected .lb-pic { position: relative; display: block; line-height: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wm-zone .is-one a[data-full], .lightbox.is-protected .lb-pic { display: inline-block; max-width: 100%; }
.wm-zone a[data-full] img, .wm-pic img, .lightbox.is-protected img { pointer-events: none; -webkit-user-drag: none; }
.wm-zone a[data-full]::before, .wm-pic::before, .lightbox.is-protected .lb-pic::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.wm-zone a[data-full]::after, .wm-pic::after, .lightbox.is-protected .lb-pic::after { content: 'painaima.com'; position: absolute; right: 10px; bottom: 8px; z-index: 2; pointer-events: none; font: 600 11px/1 var(--font); letter-spacing: .04em; color: rgba(255, 255, 255, .92); text-shadow: 0 0 1px rgba(0, 0, 0, .5), 0 0 6px rgba(0, 0, 0, .45); }
.wm-pic, .wm-pic img { width: 100%; height: 100%; }
.wm-pic img { object-fit: cover; }
.wm-pic::after, .lightbox.is-protected .lb-pic::after { right: 14px; bottom: 12px; font-size: 13px; }
@media (max-width: 700px) { .wm-zone a[data-full]::after { right: 7px; bottom: 6px; font-size: 9px; } }
/* lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(5, 9, 20, .92); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 6px; }
.lb-pic { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #14213d; font-size: 22px; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 14px; right: auto; }
.lightbox .lb-next { right: 14px; }
/* buttons above the picture's save guard (.lb-pic::before, z-index 1), which covered them on phones */
.lightbox button { z-index: 3; }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.lb-count:empty { display: none; }
/* review / gallery viewer: full screen like Instagram (owner, 2026-11-12) */
.lightbox.is-ig { padding: 0; background: #000; touch-action: pan-y; }
.lightbox.is-ig .lb-pic { max-width: 100vw; }
.lightbox.is-ig img { display: block; width: auto; height: auto; max-width: 100vw; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
.lightbox.is-ig button { width: 40px; height: 40px; font-size: 20px; background: rgba(255, 255, 255, .88); }
.lightbox.is-ig .lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox.is-ig .lb-count { top: max(22px, calc(env(safe-area-inset-top) + 10px)); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.lightbox.is-ig .lb-prev { left: 10px; }
.lightbox.is-ig .lb-next { right: 10px; }
@media (max-width: 700px) { .lightbox.is-ig .lb-prev, .lightbox.is-ig .lb-next { width: 34px; height: 34px; font-size: 18px; background: rgba(255, 255, 255, .7); } }
.lightbox button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgba(10, 15, 29, .6); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 999px; z-index: 99; font-size: .9rem; }

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