/* Whasson Cornwall — one stylesheet, no frameworks, no web fonts (fast + no third-party font requests) */
:root {
  --sea: #0b7285;
  --sea-deep: #025275;
  --sea-soft: #e3f3f5;
  --coral: #f2694b;
  --coral-soft: #fde7e1;
  --sun: #f8a50f;
  --sand: #fbf3e4;
  --ink: #1f2a30;
  --muted: #5b6b72;
  --line: #ece3d3;
  --bg: #fffaf2;
  --card: #ffffff;
  --on-sea: #ffffff;
  --max: 1160px;
  --read: 720px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(16, 42, 52, .06);
  --shadow: 0 12px 32px rgba(16, 42, 52, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --sea: #4cc3d9; --sea-deep: #9be3f0; --sea-soft: #133640; --coral: #ff8d70; --coral-soft: #3a2420; --sun: #ffb938;
    --sand: #1b292f; --ink: #e8f0f2; --muted: #9fb2b9; --line: #26383f; --bg: #0f1a1e; --card: #16242a; --on-sea: #062a33;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3); --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); line-height: 1; z-index: 41; }
.logo-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: 0 2px 8px rgba(2, 82, 117, .18); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.logo-name em { font-style: normal; color: var(--coral); }
.logo-sub { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sea); margin-top: 3px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sea-soft); color: var(--sea); }
.nav a[aria-current="page"] { background: var(--sea); color: var(--on-sea); }

/* Hamburger that morphs into an X */
.nav-toggle { display: none; position: relative; z-index: 41; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sea-soft); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--sea); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .18); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 940px) {
  /* No blur on phones: backdrop-filter would trap the fixed full-screen menu inside the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  body.menu-open .site-header { background: transparent; box-shadow: none; border-color: transparent; }
  .nav-toggle { display: block; }
  /* Full-screen menu: solid sea colours so text is always high-contrast, whatever is behind it */
  .nav { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; padding: 90px 28px 40px;
    background: radial-gradient(120% 80% at 100% 0%, #12a7b1 0%, #0b7285 45%, #025275 100%);
    clip-path: circle(0 at calc(100% - 39px) 33px); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
  .nav.open { clip-path: circle(150% at calc(100% - 39px) 33px); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { color: #fff; font-family: var(--display); font-size: 1.7rem; font-weight: 800; padding: 10px 18px; border-radius: 16px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease), background .2s; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open li:nth-child(2) a { transition-delay: .05s; } .nav.open li:nth-child(3) a { transition-delay: .1s; }
  .nav.open li:nth-child(4) a { transition-delay: .15s; } .nav.open li:nth-child(5) a { transition-delay: .2s; }
  .nav.open li:nth-child(6) a { transition-delay: .25s; }
  .nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .nav a[aria-current="page"] { background: #fff; color: #0b7285; }
  .nav::after { content: "Whasson? 👋"; position: absolute; left: 28px; bottom: 32px; color: rgba(255, 255, 255, .7); font-family: var(--display); font-weight: 700; }
  body.menu-open .logo { color: #fff; }
  body.menu-open .logo-sub { color: var(--sun); }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--sea-deep), var(--sea)); padding: 64px 0 90px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; max-width: 780px; font-weight: 800; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0; opacity: .94; }
.hero--photo { min-height: min(82vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 110px; background: #0a3f4e; }
.hero--photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; animation: kenburns 28s ease-in-out infinite alternate; }
.hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 28, 36, .9) 0%, rgba(4, 28, 36, .55) 45%, rgba(4, 28, 36, .05) 85%); }
.hero--photo .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 .rotator { display: inline-block; color: var(--sun); min-width: 6ch; }
.hero h1 .rotator.swap { animation: wordswap .5s var(--ease); }
.hero-kicker { display: inline-block; font-family: var(--display); font-weight: 800; font-size: .95rem; background: var(--coral); color: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(242, 105, 75, .4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .hero-credit { position: absolute; z-index: 2; top: 12px; right: 14px; margin: 0; max-width: calc(100% - 28px); font-size: .7rem; line-height: 1.5; opacity: 1; color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .28); padding: 3px 10px; border-radius: 999px; }
.hero-credit a { color: #fff; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; height: 70px; width: 100%; color: var(--bg); }
.wave path { fill: currentColor; }
.wave .w2 { opacity: .5; animation: drift 9s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes wordswap { from { opacity: 0; transform: translateY(.4em) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@media (max-width: 760px) { .hero--photo { min-height: 78vh; padding-bottom: 96px; } .wave { height: 46px; } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sea); color: var(--on-sea); border: 0; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 6px 16px rgba(11, 114, 133, .25); }
.btn:hover { color: var(--on-sea); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 114, 133, .32); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(242, 105, 75, .35); }
.btn-coral:hover { color: #fff; box-shadow: 0 10px 22px rgba(242, 105, 75, .45); }
.btn-ghost { background: transparent; color: var(--sea); box-shadow: inset 0 0 0 2px var(--sea); }
.btn-ghost:hover { background: var(--sea); color: var(--on-sea); }
.btn-light { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--sea-deep); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ===== Layout ===== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px 16px 72px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; } }
.sidebar .sticky { position: sticky; top: 90px; }
.sidebar h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 10px; font-family: var(--font); }
.sidebar ul { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.sidebar li + li { border-top: 1px solid var(--line); }
.sidebar li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 600; transition: background .2s, padding .2s; }
.sidebar li a:hover { background: var(--sea-soft); padding-left: 22px; }
.section-title { font-size: 1.7rem; margin: 0 0 20px; font-weight: 800; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--sand); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.07); }
.card .thumb span { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: #074b5a; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.card .body { padding: 18px 20px 22px; flex: 1; }
.card h2 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card h2 a:hover { color: var(--sea); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ===== Today strip + Surprise me (homepage) ===== */
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: -46px 0 34px; position: relative; z-index: 4; }
.today-tile { background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.today-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.today-icon.sun { background: #fff1d6; } .today-icon.moon { background: #e6e9ff; } .today-icon.trip { background: var(--coral-soft); }
@media (prefers-color-scheme: dark) { .today-icon.sun { background: #3b3220; } .today-icon.moon { background: #262a45; } }
.today-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.today-value { font-family: var(--display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.today-value small { font-size: .8rem; color: var(--muted); font-weight: 600; font-family: var(--font); }
.today-tile a { text-decoration: none; color: inherit; }
@media (max-width: 600px) {
  .today { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -40px; }
  .today-tile { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .today-icon { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 12px; }
  .today-label { font-size: .6rem; letter-spacing: .04em; }
  .today-value { font-size: 1.05rem; }
  .today-value small { display: block; font-size: .7rem; }
}

.surprise { margin: 56px 0 8px; border-radius: var(--r-lg); padding: 30px; background: radial-gradient(120% 140% at 0% 0%, var(--sun) 0%, var(--coral) 55%, #d94f6b 100%); color: #fff; position: relative; overflow: hidden; }
.surprise::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.surprise h2 { margin: 0 0 6px; font-size: 1.7rem; color: #fff; }
.surprise > p { margin: 0 0 18px; opacity: .95; }
.surprise-card { background: rgba(255, 255, 255, .96); color: #1f2a30; border-radius: var(--r); padding: 18px 20px; min-height: 120px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.surprise-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.surprise-card .place-area { color: #5b6b72; font-size: .88rem; margin: 0 0 8px; }
.surprise-card p { margin: 0 0 8px; }
.surprise-card.spinning h3 { animation: flick .12s linear infinite; }
.surprise-card .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.surprise .btn { background: #fff; color: #c2410c; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.surprise .btn:hover { color: #9a3412; }
@keyframes flick { 50% { opacity: .55; } }

/* ===== Articles ===== */
.article { max-width: var(--read); }
.article--wide { max-width: 980px; }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.12; margin: 0 0 12px; font-weight: 800; }
.article h2 { font-size: 1.6rem; margin: 2.2em 0 .5em; line-height: 1.25; font-weight: 800; }
.article h3 { font-size: 1.18rem; margin: 1.6em 0 .4em; }
.article p, .article li { margin: 0 0 1.1em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li::marker { color: var(--coral); }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.lede { font-size: 1.2rem; color: var(--muted); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.tip { background: var(--sand); border-left: 5px solid var(--coral); padding: 16px 20px; border-radius: 6px var(--r) var(--r) 6px; margin: 1.6em 0; }
.tip p:last-child { margin: 0; }
.toc { background: var(--card); border-radius: var(--r); padding: 18px 22px; margin: 0 0 28px; box-shadow: var(--shadow-sm); }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--display); }
.toc ol { margin: 0; }
.toc li { margin: 0 0 4px; }
.table-scroll { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow-sm); margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
th, td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sea-soft); color: var(--ink); }
.related { margin-top: 48px; padding: 22px 24px; background: var(--sand); border-radius: var(--r); }
.related h3 { margin-top: 0; }
.photo { margin: 0 0 1.6em; }
.photo img { width: 100%; border-radius: var(--r); background: var(--sand); box-shadow: var(--shadow-sm); }
.photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.photo .credit { display: block; font-size: .78rem; opacity: .85; }
.photo .credit a { color: inherit; }
.hint { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); font-style: italic; margin: .4em 0 1em; }
.cta-panel { background: linear-gradient(135deg, var(--sea-soft), var(--sand)); border-radius: var(--r-lg); padding: 26px; margin: 1em 0 2em; }
.cta-panel .btn { margin: 6px 8px 0 0; }

/* Reading progress + back to top */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), var(--coral)); z-index: 60; }
.to-top { position: fixed; right: 16px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sea); color: var(--on-sea); font-size: 1.3rem; box-shadow: var(--shadow); cursor: pointer; z-index: 25; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Scroll reveal (class added by JS, so content is never hidden without it) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Ad slots ===== */
.ad-slot { margin: 36px auto; text-align: center; clear: both; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot ins { display: block; border-radius: 12px; overflow: hidden; }
.ad-leaderboard { min-height: 110px; max-width: 970px; }
.ad-incontent { min-height: 280px; }
.ad-sidebar { min-height: 620px; width: 300px; margin-top: 0; }
@media (max-width: 760px) { .ad-leaderboard { min-height: 280px; } }
.ads-off .ad-slot { display: none; }
/* If Google has no ad to show in a slot, collapse it rather than leave a gap */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ads-demo .ad-slot ins { background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 10px, transparent 10px, transparent 20px); border: 1px dashed var(--line); height: 100%; min-height: inherit; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.ads-demo .ad-slot ins::after { content: attr(data-demo-label); }
.ads-demo .ad-leaderboard ins { min-height: 90px; }
.ads-demo .ad-incontent ins { min-height: 250px; }
.ads-demo .ad-sidebar ins { min-height: 600px; }

/* ===== Footer ===== */
.site-footer { position: relative; background: var(--sea-deep); color: rgba(255, 255, 255, .78); padding: 70px 0 34px; margin-top: 40px; font-size: .93rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0a1316; } }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; font-family: var(--display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a, .site-footer .link-btn { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--sun); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ===== Forms ===== */
form.contact { display: grid; gap: 14px; max-width: 520px; }
form.contact label { font-weight: 600; font-size: .95rem; }
form.contact input, form.contact textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: var(--card); color: var(--ink); }

/* ===== Price badges ===== */
.price { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; background: var(--sand); color: var(--ink); }
.price.pfree { background: #e1f5e7; color: #1e6b35; }
.price.p3 { background: var(--coral-soft); color: #9a3412; }
@media (prefers-color-scheme: dark) { .price.pfree { background: #1d3a26; color: #9fe0b2; } .price.p3 { color: #ffb59f; } }
.price-key { background: var(--card); border-radius: var(--r); padding: 16px 20px; font-size: .93rem; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.price-key > span { display: inline-block; margin: 4px 12px 4px 0; }
.price-key p { margin: 8px 0 0; color: var(--muted); }

/* ===== Filter chips ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; position: sticky; top: 66px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 10px 0; z-index: 5; }
.chip { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); cursor: pointer; min-height: 40px; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, transform .2s var(--ease); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--sea); color: var(--on-sea); }
.filter-count { color: var(--muted); font-size: .88rem; margin-left: 4px; white-space: nowrap; }
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 10px 16px; }
  .chip { flex: none; }
}

/* ===== Attraction cards ===== */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.place { background: var(--card); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.place:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.place[hidden], .place-group[hidden] { display: none; }
.place-photo { position: relative; margin: -20px -20px 16px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--sand); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.place:hover .place-photo img { transform: scale(1.06); }
.place-photo figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: .62rem; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-photo figcaption a { color: #fff; }
.place-photo.pending { display: grid; place-items: center; background: linear-gradient(135deg, var(--sea-soft), var(--sand)); color: var(--muted); font-weight: 700; font-size: .9rem; }
.place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.place h3 { margin: 0 0 4px; font-size: 1.18rem; line-height: 1.3; }
.place p { margin: 0 0 10px; font-size: .95rem; }
.place .place-area { color: var(--muted); font-size: .85rem; }
.place-tags { margin: auto 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sea); background: var(--sea-soft); padding: 3px 9px; border-radius: 999px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease), background .2s; }
.btn-small:hover { border-color: var(--sea); color: var(--sea); }
.btn-small:active { transform: scale(.96); }
.btn-small.add-plan { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-small.add-plan:hover { color: #fff; filter: brightness(1.05); }
.btn-small.add-plan.added { background: transparent; color: var(--coral); animation: pop .4s var(--ease); }
.btn-small-solid { padding: 8px 18px; }
@keyframes pop { 40% { transform: scale(1.12); } }

/* Offers */
.offer { position: relative; border: 2px dashed var(--coral); border-radius: var(--r); padding: 20px; margin-bottom: 16px; background: var(--card); }
.offer-badge { position: absolute; top: -13px; left: 16px; background: var(--coral); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; }
.offer h3 { margin: 4px 0 6px; }
.offer-terms { font-size: .8rem; color: var(--muted); }
.offers-empty { color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 160%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .95rem; font-weight: 600; box-shadow: var(--shadow); transition: transform .35s var(--ease); z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ===== Planner ===== */
.planner { display: grid; gap: 18px; margin-bottom: 32px; }
.plan-card, .plan-day { background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.plan-card h2, .plan-day h3 { margin: 0 0 12px; font-size: 1.3rem; }
.plan-day header { display: flex; justify-content: space-between; align-items: baseline; }
.plan-days { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.day-total { font-weight: 800; color: var(--coral); }
.count { font-size: .78rem; font-family: var(--font); background: var(--sea-soft); color: var(--sea); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.planner label { display: block; font-size: .88rem; font-weight: 700; color: var(--muted); }
.planner input[type="text"], .planner input[type="date"], .planner input[type="number"], .planner select, .planner textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px; /* 16px stops iPhones zooming in */
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; min-height: 44px; transition: border-color .2s; }
.planner input:focus, .planner select:focus, .planner textarea:focus { border-color: var(--sea); outline: none; }
.planner textarea { resize: vertical; min-height: 60px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plan-item { border-top: 1px solid var(--line); padding: 12px 0; animation: slidein .35s var(--ease); }
.plan-item:first-child { border-top: 0; }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }
.plan-item-main { margin-bottom: 8px; }
.plan-item-sub { display: block; font-size: .85rem; color: var(--muted); }
.plan-item-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.planner .plan-item-tools select { width: auto; flex: 1 1 80px; min-width: 0; margin: 0; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.plan-item-tools .cost { display: flex; align-items: center; gap: 2px; font-weight: 800; color: var(--ink); }
.planner .plan-item-tools .cost input { width: 84px; margin: 0; min-height: 40px; padding: 6px 10px; }
.icon-btn { min-width: 40px; min-height: 40px; border: 0; background: var(--sand); color: var(--ink); border-radius: 50%; font-size: 1rem; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.icon-btn:active { transform: scale(.9); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { background: var(--coral-soft); color: #b3261e; }
.planner .add-select { margin: 4px 0 12px; background: var(--sea-soft); border-style: dashed; }
.packing { list-style: none; padding: 0; margin: 0 0 12px; columns: 2 260px; }
.packing li { display: flex; justify-content: space-between; align-items: center; gap: 8px; break-inside: avoid; padding: 2px 0; }
.planner .packing label { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); font-size: .97rem; cursor: pointer; min-height: 40px; }
.packing input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--coral); flex: none; }
.packing input:checked + span { text-decoration: line-through; color: var(--muted); }
.packing .icon-btn { min-width: 32px; min-height: 32px; font-size: .8rem; }
.pack-add { display: flex; gap: 8px; }
.planner .pack-add input { flex: 1; margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.budget p { margin: 0 0 6px; }
.print-only { display: none; }

/* Install-as-app sheet */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: min(560px, 100%); max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: var(--r-lg); } }
.sheet::backdrop { background: rgba(6, 30, 38, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetup .4s var(--ease); }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
.sheet-inner { padding: 22px 22px 28px; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 6px; font-size: 1.45rem; }
.sheet .sub { color: var(--muted); margin: 0 0 16px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--display); }
.steps .ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: -6px; width: 28px; height: 28px; border-radius: 8px; background: var(--sea-soft); color: #0a84ff; margin: 0 2px; }
.steps .ico svg { width: 18px; height: 18px; }
.sheet .tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.sheet .tabs button { font: inherit; font-size: .85rem; font-weight: 700; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--sand); color: var(--ink); cursor: pointer; }
.sheet .tabs button[aria-pressed="true"] { background: var(--sea); color: var(--on-sea); }

/* ===== In-site website viewer (/visit) ===== */
body.visit-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.visit-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: linear-gradient(90deg, #025275, #0b7285); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); z-index: 2; }
.visit-back { display: inline-flex; align-items: center; gap: 6px; flex: none; background: #fff; color: #025275; text-decoration: none; font-weight: 800; font-family: var(--display); padding: 8px 14px 8px 12px; border-radius: 999px; min-height: 44px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.visit-back:hover { color: #025275; transform: translateX(-2px); }
.visit-back img { border-radius: 50%; }
.visit-back > span { font-size: 1.2rem; }
.visit-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.visit-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
#visit-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-open { flex: none; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.visit-open:hover { background: #fff; color: #025275; }
.visit-main { flex: 1; position: relative; background: var(--bg); }
.visit-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .4s; }
.visit-frame.loaded { opacity: 1; }
.visit-main::before { content: ""; position: absolute; left: 50%; top: 40%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid var(--sea-soft); border-top-color: var(--sea); animation: spin .9s linear infinite; }
.visit-main.done::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.visit-fallback { max-width: 520px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.visit-fallback img { margin: 0 auto 12px; border-radius: 50%; }
.visit-fallback .btn { margin: 6px; }
.visit-note { margin: 0; padding: 6px 12px; padding-bottom: max(6px, env(safe-area-inset-bottom)); font-size: .78rem; text-align: center; background: var(--sand); color: var(--muted); }
@media (max-width: 560px) {
  .visit-back .vb-text, .visit-label { display: none; }
  .visit-back { padding: 8px 12px; }
  .visit-open { font-size: .8rem; padding: 8px 10px; }
}

/* Small "opens in a new tab" marker */
.ext::after { content: " ↗"; font-size: .85em; }

/* Print / save as PDF: just the plan */
@media print {
  .site-header, .site-footer, .ad-slot, .no-print, .breadcrumbs, .lede, .how-to, .skip, .toast, noscript, .to-top, .progress, .sheet { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main.wrap { padding: 0 !important; }
  .plan-card, .plan-day { border: 1px solid #bbb; box-shadow: none; break-inside: avoid; padding: 10px 12px; border-radius: 8px; }
  .plan-days { grid-template-columns: 1fr 1fr; gap: 10px; }
  .planner { gap: 10px; }
  .print-only { display: inline; float: right; font-weight: 700; }
  .planner textarea, .planner input, .planner select { border: 0; padding: 0; min-height: 0; background: none; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 18pt; margin: 0 0 8px; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
