/* Ko-Phi-Phi.com — "Andaman field journal"
   Limestone paper, deep lagoon ink, accents taken from the ribbons tied to longtail boat bows. */

:root {
  --ink: #0f2e33;
  --ink-2: #16434a;
  --lagoon: #0f7d78;
  --lagoon-2: #2cc4b4;
  --shallow: #bfeee3;
  --paper: #f5f0e6;
  --paper-2: #ece4d3;
  --card: #fffdf8;
  --line: #ddd3c0;
  --text: #1d2b2d;
  --muted: #5e6763;
  --coral: #e2533c;
  --saffron: #eba52a;
  --orchid: #c8437a;
  --moss: #5f7a3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 46, 51, .06), 0 10px 30px -12px rgba(15, 46, 51, .22);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --c: var(--lagoon);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--text);
  background: var(--paper);
  background-image: radial-gradient(rgba(15, 46, 51, .035) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; }
a { color: var(--lagoon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }

/* Colour themes per section */
.c-lagoon  { --c: var(--lagoon);  --c-soft: #d7efe9; }
.c-orchid  { --c: var(--orchid);  --c-soft: #f6dce6; }
.c-saffron { --c: #c98307;        --c-soft: #faebcb; }
.c-coral   { --c: var(--coral);   --c-soft: #f9ddd6; }
.c-ink     { --c: var(--ink-2);   --c-soft: #d9e3e3; }
.c-moss    { --c: var(--moss);    --c-soft: #e4ebd6; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgb(15, 46, 51); color: var(--paper); }  /* bez backdrop-filter: rozbil by position:fixed mobilního menu */
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo-mark { width: 44px; height: 30px; color: var(--paper); }
.logo-text { font: 400 1.6rem/1 var(--serif); letter-spacing: -.01em; display: flex; flex-direction: column; }
.logo-text small { font: 600 .62rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lagoon-2); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 22px 10px; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 14px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-item:hover .nav-link::after, .nav-item.is-current .nav-link::after, .nav-item:focus-within .nav-link::after { transform: scaleX(1); }
.nav-item .nav-link:hover { color: #fff; }
.nav-item.c-ink { --c: var(--lagoon-2); }
.nav-more { display: none; background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  width: min(640px, 92vw); display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: var(--card); color: var(--text); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; overflow: hidden;
}
.nav-item:nth-last-child(-n+2) .mega { left: auto; right: 0; transform: translate(0, 8px); }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item:nth-last-child(-n+2):hover .mega, .nav-item:nth-last-child(-n+2):focus-within .mega, .nav-item:nth-last-child(-n+2).is-open .mega { transform: translate(0, 0); }
.mega-intro { background: var(--c-soft); padding: 22px; border-right: 1px solid var(--line); }
.mega-ic { width: 30px; height: 30px; color: var(--c); }
.mega-title { font: 400 1.5rem/1.1 var(--serif); color: var(--ink); margin: 10px 0 6px; }
.mega-intro p { font-size: .85rem; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.mega-all { font-weight: 700; font-size: .85rem; color: var(--c); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.mega-all .ic { width: 16px; height: 16px; }
.mega-list { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-content: start; }
.mega-list a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.mega-list a:hover, .mega-list a[aria-current] { background: var(--paper); color: var(--c); }
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(245, 240, 230, .08);
  border: 1px solid rgba(245, 240, 230, .24);
  border-radius: 999px;
  color: var(--paper);
  transition: background .2s, border-color .2s;
  flex: none;
}
.lang-switch:hover, .lang-switch:focus-within {
  background: rgba(245, 240, 230, .14);
  border-color: rgba(245, 240, 230, .45);
}
.lang-switch .ic-globe {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--lagoon-2);
  pointer-events: none;
}
.lang-switch .ic-down {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: rgba(245, 240, 230, .7);
  pointer-events: none;
  transition: color .2s;
}
.lang-switch:hover .ic-down {
  color: var(--paper);
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--paper);
  font: 600 .82rem/1.2 var(--sans);
  letter-spacing: .02em;
  padding: 8px 30px 8px 32px;
  cursor: pointer;
}
.lang-select option {
  background-color: #0f2e33;
  color: #fff;
  font: 500 .88rem var(--sans);
  padding: 8px 12px;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(245,240,230,.3); color: var(--paper); border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--sans); gap: 6px; align-items: center; cursor: pointer; }
.ribbon { display: grid; grid-template-columns: 3fr 1fr 2fr 1fr; height: 4px; }
.ribbon i:nth-child(1) { background: var(--lagoon-2); }
.ribbon i:nth-child(2) { background: var(--saffron); }
.ribbon i:nth-child(3) { background: var(--orchid); }
.ribbon i:nth-child(4) { background: var(--coral); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; color: var(--paper); padding: 34px 0 120px; overflow: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--c) 50%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 120%, rgba(44, 196, 180, .25), transparent 70%),
    linear-gradient(170deg, rgba(15, 46, 51, .84) 0%, rgba(18, 57, 63, .90) 100%),
    var(--hero-bg, url('../img/hero-bg.webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 6px 0 14px; max-width: 18ch; }
.page-hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.55; max-width: 62ch; color: rgba(245, 240, 230, .9); margin: 0 0 18px; }
.page-hero .lead a { color: var(--shallow); }
.kicker, .eyebrow { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 22px 0 0; display: flex; align-items: center; gap: 10px; }
.kicker { color: var(--saffron); }
.kicker::before, .eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow { color: var(--c, var(--lagoon)); margin: 0 0 10px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(245, 240, 230, .7); margin: 0; }
.meta .ic { width: 16px; height: 16px; }
.crumbs { font-size: .82rem; color: rgba(245, 240, 230, .65); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: rgba(245, 240, 230, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.karst { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 1; }
.karst .k1 { fill: rgba(245, 240, 230, .1); }
.karst .k2 { fill: var(--paper); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: -40px; position: relative; z-index: 3; }
.layout-wide { grid-template-columns: minmax(0, 1fr); }
.content { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px clamp(20px, 4vw, 52px) 30px; min-width: 0; }
.prose { font-size: 1.06rem; }
.prose .block + .block { margin-top: 8px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin: 34px 0 12px; position: relative; }
.prose .block:first-child h2 { margin-top: 4px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { color: var(--lagoon); font-weight: 700; }
.prose strong { color: var(--ink); }

.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; margin: 0; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 400 1.7rem/1 var(--serif); color: var(--coral); }
.step-t { font-weight: 700; color: var(--ink); }
.step-d { color: var(--text); }

.note { margin: 18px 0 22px; padding: 16px 18px 6px; border-radius: 12px; position: relative; }
.note p { margin: 0 0 10px; }
.note-label { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; margin-bottom: 8px; }
.note-tip { background: #e3f4ef; border-left: 4px solid var(--lagoon-2); }
.note-tip .note-label { background: var(--lagoon); color: #fff; }
.note-warn { background: #fdf0dc; border-left: 4px solid var(--saffron); }
.note-warn .note-label { background: #b26f00; color: #fff; }

.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
tbody tr:nth-child(even) { background: #faf6ee; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); }

/* Side column */
.side { position: relative; padding-top: 0; }
.side > * { margin-bottom: 20px; }
.side-h { font: 700 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.glance { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.glance .side-h { color: var(--lagoon-2); }
.glance dl { margin: 0; }
.glance dl div { padding: 10px 0; border-top: 1px solid rgba(245, 240, 230, .14); }
.glance dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(245, 240, 230, .6); }
.glance dd { margin: 2px 0 0; font-weight: 600; font-size: .98rem; }
.glance a { color: var(--shallow); }
.side-map { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-map .map { height: 220px; }
.side-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .88rem; text-decoration: none; }
.side-link .ic { width: 16px; height: 16px; }
.toc { position: sticky; top: 96px; background: transparent; padding: 4px 0 0 18px; border-left: 2px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--coral); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 10px 0 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid rgba(15,46,51,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); color: var(--text); box-shadow: 0 2px 4px rgba(15,46,51,.06), 0 22px 40px -18px rgba(15,46,51,.35); }
.card-art {
  height: 112px; position: relative; display: flex; align-items: flex-end; padding: 14px; background-size: cover; background-position: center;
  background-color: var(--c);
  background-image:
    radial-gradient(120px 80px at 85% 15%, rgba(255,255,255,.35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 112' preserveAspectRatio='none'%3E%3Cpath d='M0 112V80c14-2 22-30 34-30 10 0 12 18 20 18s14-40 30-40 18 44 30 44c8 0 12-10 20-10 10 0 12 18 26 18 16 0 22-46 40-46 14 0 18 34 30 34 10 0 14-14 24-14 12 0 14 20 26 22 8 0 14-6 20-6V112z' fill='%23000' fill-opacity='.18'/%3E%3Cpath d='M0 112v-14c40 0 60-8 100-8s60 10 100 10 60-8 100-8v20z' fill='%23fff' fill-opacity='.18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%, 100% 100%;
}
.card.has-photo .card-art { height: 150px; background-size: cover; }
/* Variace karet bez fotek: posunutá silueta a jiný odstín, aby řada karet nebyla monotónní */
.card:nth-child(4n+2):not(.has-photo) .card-art { background-position: 0 0, 35% 0; background-size: 100% 100%, 160% 100%; filter: hue-rotate(-14deg) saturate(1.1); }
.card:nth-child(4n+3):not(.has-photo) .card-art { background-position: 0 0, 80% 0; background-size: 100% 100%, 210% 100%; filter: brightness(.9); }
.card:nth-child(4n+4):not(.has-photo) .card-art { background-position: 0 0, 10% 0; background-size: 100% 100%, 140% 100%; filter: hue-rotate(12deg) brightness(1.05); }
.card-ic { width: 34px; height: 34px; color: #fff; background: rgba(15,46,51,.25); border-radius: 50%; padding: 6px; backdrop-filter: blur(3px); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-kicker { font: 700 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.card-title { font: 400 1.45rem/1.1 var(--serif); color: var(--ink); }
.card-text { font-size: .9rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-cards { margin-bottom: 18px; }
.cards-hub { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Hotels */
.hotels { display: grid; gap: 14px; margin: 8px 0 24px; }
.hotel { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fffef9; position: relative; }
.hotel::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--saffron); }
.hotel-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hotel h3 { margin: 0; font-size: 1.12rem; }
.stars { color: var(--saffron); letter-spacing: 2px; font-size: .95rem; white-space: nowrap; }
.hotel-meta { font-size: .85rem; color: var(--muted); margin: 4px 0 8px !important; display: flex; align-items: center; gap: 4px; }
.hotel-meta .ic { width: 15px; height: 15px; color: var(--coral); }
.hotel p { margin-bottom: 12px; }
.hotel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--coral); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: #c7402b; border-color: #c7402b; color: #fff; transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: transparent; border-color: rgba(245,240,230,.5); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-ghost-dark { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--paper); border-color: var(--coral); color: var(--coral); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: .88rem; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--lagoon-2); margin-top: 6px; }

/* ---------- Booking / Affiliate Callout Cards ---------- */
.booking-card {
  margin: 24px 0 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fffef9 0%, #f6f3e9 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(15, 46, 51, .05);
  position: relative;
}
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 .72rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c7402b;
  background: rgba(224, 90, 71, .12);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.bc-badge .ic { width: 14px; height: 14px; }
.bc-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
}
.bc-desc {
  font-size: .98rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 14px;
}
.bc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}
.bc-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.bc-features li::before {
  content: "✓";
  color: var(--lagoon-2);
  font-weight: 700;
}
.bc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.bc-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font: 400 1.8rem/1 var(--serif); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 6px; color: var(--text); }

/* Maps */
.map { height: 380px; border-radius: 12px; background: #cfe9e3; z-index: 0; margin: 4px 0 6px; }
.map-tall { height: min(72vh, 640px); }
.map-note { font-size: .78rem; color: var(--muted); margin: 0 0 18px !important; }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pin.c-lagoon { background: var(--lagoon); } .pin.c-orchid { background: var(--orchid); } .pin.c-saffron { background: var(--saffron); }
.pin.c-coral { background: var(--coral); } .pin.c-ink { background: var(--ink); } .pin.c-moss { background: var(--moss); }
.leaflet-popup-content a { font-weight: 700; }

/* Climate chart */
.climate { margin: 0 0 26px; background: var(--paper); border-radius: 14px; padding: 18px 18px 12px; }
.climate figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .9rem; margin-bottom: 10px; color: var(--ink); }
.legend { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .8rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-rain { background: linear-gradient(var(--lagoon-2), var(--lagoon)); }
.lg-temp { background: var(--coral); border-radius: 50% !important; }
.climate-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; }
.cc { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--muted); border-radius: 8px; padding: 6px 0 4px; transition: background .2s; }
.cc:hover, .cc.is-active { background: var(--card); color: var(--ink); }
.cc.is-active { box-shadow: inset 0 0 0 2px var(--coral); }
.cc-temp { font-size: .78rem; font-weight: 700; color: var(--coral); }
.cc-bar { height: 130px; width: 70%; display: flex; align-items: flex-end; margin: 4px 0; }
.cc-bar span { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--lagoon-2), var(--lagoon)); position: relative; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.s-dry .cc-bar span { background: linear-gradient(#f6c96b, var(--saffron)); }
.s-shoulder .cc-bar span { background: linear-gradient(#8ddbcf, #3fa99c); }
.cc-bar em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; color: var(--muted); }
.cc-m { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.climate-note { font-size: .75rem; color: var(--muted); margin: 10px 0 0 !important; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cc:nth-child(2) span { animation-delay: .04s } .cc:nth-child(3) span { animation-delay: .08s } .cc:nth-child(4) span { animation-delay: .12s }
.cc:nth-child(5) span { animation-delay: .16s } .cc:nth-child(6) span { animation-delay: .2s } .cc:nth-child(7) span { animation-delay: .24s }
.cc:nth-child(8) span { animation-delay: .28s } .cc:nth-child(9) span { animation-delay: .32s } .cc:nth-child(10) span { animation-delay: .36s }
.cc:nth-child(11) span { animation-delay: .4s } .cc:nth-child(12) span { animation-delay: .44s }

.wx-figs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 20px; }
.wx-figs div { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px; }
.wx-figs span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lagoon-2); }
.wx-figs strong { font: 400 1.8rem/1.2 var(--serif); color: #fff; }
.months { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.months ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.months a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); }
.months a:hover { background: var(--paper); color: var(--coral); }
.months a[aria-current] { background: var(--ink); color: var(--paper); }
.wx-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; }
.wx-nav a { text-decoration: none; }

.contact-mail a { font: 400 clamp(1.6rem, 4vw, 2.4rem)/1.2 var(--serif); text-decoration: none; }

/* Related */
.related { margin-top: 56px; }
.related h2 { font-size: 2.2rem; margin: 0 0 6px; }

/* ---------- Home ---------- */
.home-hero {
  position: relative; overflow: hidden; color: var(--paper); padding: 70px 0 200px;
  background-color: #0c2a2f;
  background-image:
    linear-gradient(180deg, rgba(12, 42, 47, .78) 0%, rgba(17, 64, 71, .70) 55%, rgba(15, 46, 51, .90) 100%),
    var(--hero-bg, url('../img/hero-bg.webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 360px at 78% 70%, rgba(235, 165, 42, .38), transparent 70%),
    radial-gradient(500px 300px at 10% 20%, rgba(44, 196, 180, .22), transparent 70%); }
.sunball { position: absolute; right: 16%; bottom: 150px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd98a, #eba52a 60%, #e2533c); box-shadow: 0 0 120px 30px rgba(235,165,42,.35); animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-inner { position: relative; z-index: 2; }
.home-hero .coords { font: 700 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--lagoon-2); margin: 0 0 18px; animation: fadeup .8s .1s both; }
.home-hero h1 { color: #fff; font-size: clamp(3.4rem, 10vw, 8.2rem); line-height: .92; margin: 0 0 22px; max-width: 11ch; animation: fadeup .9s .2s both; }
.home-hero h1 em { color: var(--saffron); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 54ch; color: rgba(245,240,230,.9); margin: 0 0 28px; animation: fadeup .9s .35s both; }
.hero-lead a { color: var(--shallow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeup .9s .5s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.karst-hero { height: 190px; }
.karst-hero .k1 { fill: #0d3338; }

.starter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -90px; position: relative; z-index: 3; }
.start-tile { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--lagoon-2); transition: transform .25s; }
.start-tile:nth-child(2) { border-color: var(--saffron); } .start-tile:nth-child(3) { border-color: var(--orchid); } .start-tile:nth-child(4) { border-color: var(--coral); }
.start-tile:hover { transform: translateY(-4px); color: var(--text); }
.start-n { font: 400 1.1rem/1 var(--serif); color: var(--muted); }
.start-t { font: 400 1.6rem/1.1 var(--serif); color: var(--ink); }
.start-d { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.home-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin: 80px auto; align-items: start; }
.home-intro h2, .band-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 16px; }
.home-intro p { font-size: 1.08rem; }
.intro-facts { margin: 0; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 10px 26px; position: relative; }
.intro-facts::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 60%; height: 60%; border-radius: var(--radius); background: var(--saffron); z-index: -1; }
.intro-facts div { padding: 14px 0; border-bottom: 1px solid rgba(245,240,230,.14); }
.intro-facts div:last-child { border: 0; }
.intro-facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon-2); }
.intro-facts dd { margin: 3px 0 0; font-weight: 600; }
.intro-facts a { color: var(--shallow); }

.band { padding: 70px 0; margin: 70px 0; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2 { color: #fff; }
.band-ink .band-head p { color: rgba(245,240,230,.8); }
.band-ink .eyebrow { color: var(--lagoon-2); }
.band-sand { background: var(--paper-2); }
.band-head { max-width: 720px; margin-bottom: 26px; }
.band-head p { font-size: 1.06rem; color: var(--muted); }
.cards-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.cards-scroll .card { scroll-snap-align: start; }
section.wrap { margin-bottom: 70px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.split .map { height: 520px; }
.beach-list { list-style: none; counter-reset: b; margin: 0; padding: 0; }
.beach-list li { counter-increment: b; border-bottom: 1px solid var(--line); }
.beach-list a { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; padding: 12px 0; text-decoration: none; color: var(--text); }
.beach-list a::before { content: counter(b, decimal-leading-zero); grid-row: span 2; font: 400 1.4rem/1.1 var(--serif); color: var(--saffron); }
.beach-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.beach-list span { font-size: .88rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.beach-list a:hover strong { color: var(--coral); }
.split-weather { align-items: center; }
.split-weather .climate { background: var(--card); box-shadow: var(--shadow); }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .25s; }
.route:hover { transform: translateY(-3px); color: var(--text); }
.route .ic { grid-row: span 3; width: 40px; height: 40px; color: var(--lagoon); background: var(--shallow); border-radius: 50%; padding: 8px; }
.route-from { font: 400 1.5rem/1.1 var(--serif); color: var(--ink); }
.route-time { font-weight: 700; color: var(--lagoon); font-size: .92rem; }
.route-price { font-size: .88rem; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { border: 1px solid rgba(245,240,230,.18); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--paper); display: flex; flex-direction: column; gap: 8px; transition: background .25s, border-color .25s; }
.plan:hover { background: rgba(245,240,230,.06); border-color: var(--saffron); color: var(--paper); }
.plan-days { font: 400 3.2rem/1 var(--serif); color: var(--saffron); }
.plan-t { font-weight: 700; font-size: 1.05rem; }
.plan-d { font-size: .9rem; color: rgba(245,240,230,.75); line-height: 1.5; }
.home-faq { max-width: 860px; }
.home-faq h2 { font-size: 2.6rem; }

/* ---------- Footer ---------- */
.site-foot { position: relative; background: var(--ink); color: rgba(245,240,230,.8); margin-top: 120px; padding: 30px 0 30px; font-size: .92rem; }
.karst-foot { top: -109px; bottom: auto; transform: scaleX(-1); }
.karst-foot .k1 { fill: var(--ink-2); }
.karst-foot .k2 { fill: var(--ink); }
.site-foot a { color: rgba(245,240,230,.85); text-decoration: none; }
.site-foot a:hover { color: var(--saffron); }
.foot-top { display: grid; grid-template-columns: 280px 1fr; gap: 50px; padding-bottom: 30px; border-bottom: 1px solid rgba(245,240,230,.14); }
.foot-logo { font: 400 2.4rem/1 var(--serif); color: #fff; margin: 0 0 12px; }
.coords { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; color: var(--lagoon-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
.foot-h { font-weight: 700; color: #fff; margin: 0 0 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: 4px 0; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; padding-top: 20px; font-size: .82rem; color: rgba(245,240,230,.6); }
.foot-bottom p { margin: 0; max-width: 70ch; }
.foot-links { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 72px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 24px 40px; overflow-y: auto; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(245,240,230,.12); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 1.15rem; }
  .nav-link::after { display: none; }
  .nav-more { display: block; }
  .nav-item.is-open .nav-more { transform: rotate(180deg); }
  .mega, .nav-item:nth-last-child(-n+2) .mega { position: static; transform: none !important; width: 100%; display: none; opacity: 1; visibility: visible; background: transparent; box-shadow: none; grid-template-columns: 1fr; }
  .nav-item.is-open .mega { display: block; }
  .nav-item:hover .mega { display: none; }
  .nav-item.is-open:hover .mega { display: block; }
  .mega-intro { display: none; }
  .mega-list { padding: 0 0 14px; }
  .mega-list a { color: rgba(245,240,230,.85); }
  .mega-list a:hover { background: rgba(245,240,230,.08); }
  .lang-switch { margin-top: 20px; align-self: flex-start; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .side > * { margin: 0; }
  .starter, .plans { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .home-intro, .split { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .page-hero {
    padding: 22px 0 90px;
    background-image:
      radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--c) 50%, transparent), transparent 70%),
      radial-gradient(600px 300px at 0% 120%, rgba(44, 196, 180, .25), transparent 70%),
      linear-gradient(170deg, rgba(15, 46, 51, .86) 0%, rgba(18, 57, 63, .92) 100%),
      var(--hero-bg-mobile, var(--hero-bg, url('../img/hero-phi-phi-mobile.webp')));
  }
  .karst { height: 70px; }
  .content { padding: 26px 18px 18px; border-radius: 12px; }
  .side { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .routes, .starter, .plans { grid-template-columns: 1fr; }
  .cards-hub { grid-template-columns: 1fr; }
  .home-hero {
    padding: 40px 0 150px;
    background-image:
      linear-gradient(180deg, rgba(12, 42, 47, .82) 0%, rgba(17, 64, 71, .75) 55%, rgba(15, 46, 51, .92) 100%),
      var(--hero-bg-mobile, var(--hero-bg, url('../img/hero-phi-phi-mobile.webp')));
  }
  .sunball { width: 96px; height: 96px; right: 12%; bottom: 40px; }
  .karst-hero { height: 120px; }
  .starter { margin-top: -60px; }
  .wx-figs { grid-template-columns: repeat(2, 1fr); }
  .climate-cols { gap: 2px; }
  .cc-bar em { display: none; }
  .cc-m { font-size: .62rem; }
  .cc-temp { font-size: .66rem; }
  .split .map { height: 360px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .logo-text { font-size: 1.35rem; }
  .logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-head, .site-foot, .side, .related, .karst { display: none; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1 { color: #000; }
  .content { box-shadow: none; }
}
