/* ============================================================
   Engbers ski vakantie selector 2026 — design system
   Fraunces (display) + Manrope (UI)
   ============================================================ */

:root {
  --ink: #10212e;
  --ink-soft: #3a4d5c;
  --muted: #6b7c8a;
  --faint: #9aa8b4;
  --line: #e3e9ee;
  --line-soft: #eef2f6;
  --bg: #f6f8fa;
  --card: #ffffff;

  --sea: #155e8a;
  --sea-deep: #0d3f5e;
  --sea-tint: #e8f1f7;
  --snow: #ffffff;
  --gold: #c99a3c;
  --gold-tint: #faf3e3;
  --green: #2e7d5b;
  --red: #c0503f;

  --belvilla: #e0592a;
  --airbnb: #d7435b;
  --sunweb: #f2a51e;
  --holidu: #5a67d8;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 33, 46, 0.06), 0 1px 3px rgba(16, 33, 46, 0.08);
  --shadow-md: 0 6px 16px -4px rgba(16, 33, 46, 0.10), 0 2px 6px -2px rgba(16, 33, 46, 0.08);
  --shadow-lg: 0 18px 44px -10px rgba(16, 33, 46, 0.22), 0 6px 14px -6px rgba(16, 33, 46, 0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --nav-h: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(246, 248, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(150deg, var(--sea) 0%, var(--sea-deep) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); }
.brand-name small { display: block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); margin-top: -3px; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 600; font-size: 14px;
}
.nav-links a:hover { background: var(--sea-tint); color: var(--sea-deep); text-decoration: none; }
.nav-count {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.nav-count .pill {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--sea); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(21, 94, 138, 0.10), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(201, 154, 60, 0.08), transparent 55%);
  pointer-events: none;
}
.hero::after { /* faint peaks */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 190px;
  background:
    linear-gradient(115deg, transparent 46%, rgba(21,94,138,0.05) 46%, rgba(21,94,138,0.05) 54%, transparent 54%),
    linear-gradient(65deg, transparent 58%, rgba(21,94,138,0.045) 58%, rgba(21,94,138,0.045) 68%, transparent 68%),
    linear-gradient(100deg, transparent 30%, rgba(16,33,46,0.05) 30%, rgba(16,33,46,0.05) 40%, transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 64px 0 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sea); background: var(--sea-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; max-width: 760px; }
.hero h1 em { font-style: italic; color: var(--sea); }
.hero-sub { margin: 20px 0 0; max-width: 640px; font-size: 17.5px; color: var(--ink-soft); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 18px 15px; box-shadow: var(--shadow-sm);
}
.stat b { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--ink); display: block; line-height: 1.1; }
.stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- section head ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 560px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* ---------- insights ---------- */
.insights-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 17px; }
.panel .panel-sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 16px; }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 330px; }
#noCharts { display: none; padding: 30px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- explorer layout ---------- */
.explorer { display: grid; grid-template-columns: 292px 1fr; gap: 22px; align-items: start; }

/* filter sidebar */
.filters {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 18px; max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.f-group { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.f-group:first-child { padding-top: 2px; }
.f-group:last-child { border-bottom: 0; }
.f-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }

.search-row { position: relative; }
.search-row svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fbfcfd;
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(21, 94, 138, 0.13); }
.search-row .input { padding-left: 36px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7c8a' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: #fbfcfd; border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  transition: all 0.13s;
}
.chip:hover { border-color: var(--sea); color: var(--sea-deep); }
.chip.active { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip .n { opacity: 0.6; font-weight: 500; }

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 5px 0; cursor: pointer; }
.check input { accent-color: var(--sea); width: 16px; height: 16px; margin: 0; }
.check .dot { width: 9px; height: 9px; border-radius: 3px; }
.check .cnt { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* range */
.range-wrap { padding: 4px 2px 0; }
.range-vals { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--sea-deep); margin-bottom: 8px; }
.range { position: relative; height: 26px; }
.range .track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 5px; border-radius: 3px; background: var(--line); }
.range .fill { position: absolute; top: 50%; transform: translateY(-50%); height: 5px; border-radius: 3px; background: var(--sea); }
.range input[type="range"] {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; height: 5px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--sea); box-shadow: var(--shadow-sm); cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2px solid var(--sea); box-shadow: var(--shadow-sm); cursor: grab;
}
.range input[type="range"]::-moz-range-track { background: none; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: 0.16s; cursor: pointer;
}
.switch .sl::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: 0.16s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .sl { background: var(--sea); }
.switch input:checked + .sl::before { transform: translateX(16px); }

.reset-btn {
  width: 100%; margin-top: 14px; padding: 10px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fbfcfd; font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.reset-btn:hover { border-color: var(--red); color: var(--red); background: #fdf6f5; }

/* ---------- results ---------- */
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-size: 14px; font-weight: 700; color: var(--ink); }
.results-count b { color: var(--sea-deep); }
.results-bar .spacer { flex: 1; }
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sort-box select { width: auto; min-width: 210px; }
.only-active { display: none; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--sea-deep); background: var(--sea-tint); padding: 6px 12px; border-radius: 999px; }
.only-active.show { display: inline-flex; }
.only-active button { border: 0; background: none; color: var(--sea-deep); font-weight: 800; padding: 0; line-height: 1; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  cursor: pointer; animation: cardIn 0.4s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3dde5; }
.card.selected { border-color: var(--sea); box-shadow: 0 0 0 2px rgba(21,94,138,0.25), var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe8ef, #c8d6e2); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.media-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--sea-deep), var(--sea)); color: rgba(255,255,255,0.85); font-family: var(--font-display); font-size: 40px; }

.badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; max-width: 78%; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.93); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge.plat { letter-spacing: 0.01em; }
.badge.plat .dot { width: 8px; height: 8px; border-radius: 50%; }
.badge.ski { background: rgba(21,94,138,0.92); color: #fff; }
.badge.sn { background: rgba(201,154,60,0.95); color: #fff; }

.card-select {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.94); color: var(--sea); box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: all 0.15s;
}
.card-select:hover { transform: scale(1.07); }
.card-select.on { background: var(--sea); color: #fff; }

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-loc { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sea); display: flex; align-items: center; gap: 6px; }
.card-loc .flag { font-size: 13px; }
.card-name { font-size: 16.5px; font-weight: 600; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-family: var(--font-ui); }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.card-meta .rate { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 800; }
.card-meta .rate .star { color: var(--gold); }
.card-meta .rate .rev { color: var(--faint); font-weight: 600; }

.amen { display: flex; flex-wrap: wrap; gap: 5px; }
.amen span {
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  background: var(--line-soft); border-radius: 999px; padding: 3px 9px;
}
.amen .more { color: var(--muted); background: none; }

.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.price { display: flex; flex-direction: column; }
.price .total { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.05; }
.price .total small { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.price .pp { font-size: 12px; font-weight: 700; color: var(--sea); }
.price .pp b { color: var(--sea-deep); }
.btn-compare {
  border: 1.5px solid var(--sea); background: #fff; color: var(--sea);
  border-radius: 10px; padding: 8px 13px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  transition: all 0.14s;
}
.btn-compare:hover { background: var(--sea-tint); }
.btn-compare.on { background: var(--sea); color: #fff; }

/* empty */
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.empty button { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 11px 19px; font-size: 14px; font-weight: 800;
  border: 1px solid transparent; transition: all 0.15s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sea); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sea-deep); }
.btn-primary:disabled { background: var(--line); color: var(--faint); cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea-deep); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }

/* ---------- compare tray ---------- */
.tray {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  z-index: 70; width: min(1040px, calc(100vw - 28px));
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
}
.tray.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.tray-items { display: flex; gap: 9px; flex: 1; overflow-x: auto; padding: 2px; }
.tray-item { display: flex; align-items: center; gap: 8px; background: var(--line-soft); border-radius: 10px; padding: 5px 6px 5px 5px; flex: none; }
.tray-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.tray-item .ph { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(140deg, var(--sea-deep), var(--sea)); }
.tray-item .t-name { font-size: 11.5px; font-weight: 700; color: var(--ink); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-item .t-price { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tray-item button { border: 0; background: none; color: var(--faint); font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.tray-item button:hover { color: var(--red); background: #fdf0ee; }
.tray-action { display: flex; align-items: center; gap: 12px; flex: none; }
.tray-hint { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(13, 27, 38, 0.55);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  width: min(1150px, 100%); max-height: 90vh; overflow: auto;
  transform: translateY(14px) scale(0.985); transition: transform 0.22s ease;
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
  position: sticky; top: 14px; margin-left: calc(100% - 52px); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.95); box-shadow: var(--shadow-md); color: var(--ink); font-size: 17px;
}
.modal-close:hover { background: var(--line-soft); }

/* compare table */
.cmp-scroll { overflow-x: auto; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; font-size: 13.5px; }
.cmp-table thead th { vertical-align: bottom; position: sticky; top: 0; background: #fff; }
.cmp-table .row-label { font-weight: 800; color: var(--muted); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; width: 150px; position: sticky; left: 0; background: #fff; }
.cmp-table td.win { background: var(--gold-tint); }
.cmp-table td.win .win-tag { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; color: var(--gold); background: #fff; border: 1px solid rgba(201,154,60,0.4); border-radius: 999px; padding: 1px 7px; margin-left: 7px; vertical-align: middle; }
.cmp-head-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.cmp-head-fb { width: 100%; aspect-ratio: 16/10; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(140deg, var(--sea-deep), var(--sea)); display: grid; place-items: center; color: rgba(255,255,255,0.85); font-family: var(--font-display); font-size: 30px; }
.cmp-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cmp-loc { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.cmp-price { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.cmp-price small { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); font-weight: 600; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--faint); font-weight: 700; }
.cmp-table .star, .card-meta .star { color: var(--gold); }
.cmp-amen-yes { font-weight: 800; color: var(--sea); }
.cmp-link { display: inline-block; margin-top: 4px; font-weight: 800; font-size: 13px; }
.cmp-note { font-size: 12px; color: var(--muted); }
.cmp-note.warn { color: #a3611e; }
.val { font-weight: 700; color: var(--ink); }
.val .sub { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* ---------- detail modal ---------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; }
.detail-media { position: relative; min-height: 340px; background: linear-gradient(140deg, var(--sea-deep), var(--sea)); }
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: 30px 30px 26px; }
.detail-body .card-loc { font-size: 12px; }
.detail-body h2 { font-size: 24px; line-height: 1.2; margin: 6px 0 10px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.fact { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 10px 12px; }
.fact b { display: block; font-size: 16.5px; color: var(--ink); }
.fact span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-section-title { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 9px; }
.detail-ctas { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.note-box { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; background: var(--bg); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.note-box.warn { background: var(--gold-tint); border-color: rgba(201,154,60,0.35); color: #7c5518; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { padding: 30px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer b { color: var(--ink-soft); }

/* ---------- toast ---------- */
.toast {
  position: fixed; top: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 120;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .insights-grid { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex !important; }
  .detail { grid-template-columns: 1fr; }
  .detail-media { min-height: 240px; }
}
@media (min-width: 1021px) {
  .filter-toggle { display: none !important; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .modal-close { position: fixed; top: 14px; }
  .tray-hint { display: none; }
}
.filter-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 16px; font-weight: 800; font-size: 13.5px; color: var(--ink-soft);
  align-items: center; gap: 8px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
