/* =====================================================================
   Trip Planner — design system (2026-09-25 rewrite)

   Concept: a travel journal. Warm "paper" background, deep pine as the
   brand colour, terracotta ("clay") for anything you're meant to click,
   a touch of gold for seasonal / Christmas-market highlights.

   Type: Lora (self-hosted, full Cyrillic + Latin, so Bulgarian headings
   no longer fall back to Times) for headings and blog prose; the
   platform's own UI font for everything else (SF Pro on Apple,
   Segoe UI on Windows, Roboto on Android) — fast, native-looking,
   Cyrillic everywhere, and no calls to Google Fonts (GDPR-friendlier
   for an EU product).

   Every class the templates and page scripts use is still styled here —
   this file changes how things look, never what they do.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Italic-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #f7f3ec;
  --paper-2: #efe8dd;
  --surface: #ffffff;
  --surface-2: #fbf9f5;

  --ink: #1c232b;
  --ink-2: #3b4550;
  --muted: #66707b;
  --line: #e7dfd2;
  --line-2: #d8ccba;

  --pine: #1f5b50;
  --pine-700: #174339;
  --pine-50: #e8f1ee;
  --pine-100: #d2e5df;

  --clay: #b8491a;
  --clay-700: #9a3b12;
  --clay-50: #fcefe7;
  --clay-100: #f8dccb;

  --gold: #c98b1e;
  --gold-700: #7a5310;
  --gold-50: #fcf4e3;
  --gold-100: #f6e4bc;

  --danger: #b42318;
  --danger-50: #fef1f0;
  --success: #0f7b55;
  --success-50: #e9f6f0;
  --info: #1e5a8a;
  --info-50: #eaf2fa;

  --font-serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgba(28, 35, 43, 0.05), 0 1px 1px rgba(28, 35, 43, 0.03);
  --shadow-2: 0 2px 4px rgba(28, 35, 43, 0.04), 0 8px 20px rgba(28, 35, 43, 0.07);
  --shadow-3: 0 4px 8px rgba(28, 35, 43, 0.05), 0 18px 40px rgba(28, 35, 43, 0.12);
  --ring: 0 0 0 3px rgba(184, 73, 26, 0.28);

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --content: 1160px;
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* never let one wide element make the whole page scroll sideways */
}

img, svg, video { max-width: 100%; }
img { height: auto; }

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(31, 91, 80, 0.35);
  transition: color var(--ease), text-decoration-color var(--ease);
}
a:hover { color: var(--clay); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--clay-100); color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem); line-height: 1.12; margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.3rem, 1.12rem + 0.7vw, 1.6rem); line-height: 1.25; margin: 0 0 0.75rem; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 650; margin: 1.25rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1rem 0 0.4rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Pointer where something is clickable. */
input[type="checkbox"], input[type="radio"], input[type="submit"],
input[type="date"], input[type="time"],
button, select, .choice, .choice-inline, .link-btn, .btn,
.sight-choice, .sight-row, .select-all-btn { cursor: pointer; }
.field > label, .field-row label, dt, dd { cursor: auto; }
.checkbox-field > label { cursor: pointer; }

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

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid rgba(216, 204, 186, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; transition: transform 400ms var(--ease); }
.brand:hover .brand-mark { transform: rotate(-18deg); }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin-left: auto;
}
.topbar nav > a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.topbar nav > a:hover { background: rgba(31, 91, 80, 0.08); color: var(--pine); }
.topbar nav > a.is-active { color: var(--pine); background: var(--pine-50); font-weight: 600; }
.topbar nav > a.nav-cta { background: var(--clay); color: #fff; font-weight: 600; margin-left: 0.25rem; }
.topbar nav > a.nav-cta:hover { background: var(--clay-700); color: #fff; }
.topbar nav > a.nav-cta.is-active { background: var(--clay-700); }

.who { color: var(--muted); font-size: 0.85rem; padding: 0 0.4rem; white-space: nowrap; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.topbar .inline-form .link-btn { padding: 0.45rem 0.6rem; font-size: 0.94rem; color: var(--ink-2); text-decoration: none; border-radius: var(--pill); white-space: nowrap; }
.topbar .inline-form .link-btn:hover { background: rgba(31, 91, 80, 0.08); color: var(--pine); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 3px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.lang-option {
  padding: 0.22rem 0.6rem;
  border-radius: var(--pill);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-option:hover { color: var(--ink); }
.lang-option-active, .lang-option-active:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lang-sep { display: none; }

@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; row-gap: 0; padding-top: 0.5rem; }
  .brand { min-height: 44px; }
  .topbar nav {
    order: 3;
    flex: 1 0 100%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.35rem var(--gutter) 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav > a { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
  .topbar nav > a.nav-cta { order: -1; margin: 0 0.25rem 0 0; }
  .lang-toggle { margin-left: auto; }
  html { scroll-padding-top: 130px; }
}

/* ---------- Page layout ---------- */
.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

/* Form-flow pages (questionnaire, sights picker) read best as one centred column. */
.container:has(> form.questionnaire) > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.back-link { margin: 0 0 1rem; font-size: 0.88rem; }
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.back-link a:hover { border-color: var(--line-2); color: var(--clay); }

.page-header { max-width: 720px; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.page-header-sub { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 60ch; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: clamp(2rem, 4vw, 3rem) 0 1.25rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  box-shadow: 0 1px 2px rgba(154, 59, 18, 0.25), 0 6px 16px rgba(184, 73, 26, 0.22);
}
.btn-primary:hover { background: var(--clay-700); border-color: var(--clay-700); color: #fff; box-shadow: 0 1px 2px rgba(154, 59, 18, 0.25), 0 10px 22px rgba(184, 73, 26, 0.3); }

.btn-lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1.02rem; }

.btn-danger { color: var(--danger); border-color: #f1c3be; background: var(--surface); }
.btn-danger:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(31, 91, 80, 0.35);
  cursor: pointer;
}
.link-btn:hover { color: var(--clay); text-decoration-color: currentColor; }
.inline-form { display: inline-block; margin: 0; }

/* Sights picker: the page is long, so its submit button stays reachable while you scroll. */
form.questionnaire > input[type="submit"] { margin-top: 0.5rem; }
@media (max-width: 719px) { form.questionnaire > input[type="submit"] { width: 100%; } }
@media (min-width: 720px) { form.questionnaire > input[type="submit"] { display: flex; min-width: 320px; margin-left: auto; margin-right: auto; } }
form.questionnaire > button[type="submit"] {
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(154, 59, 18, 0.35), 0 0 0 6px rgba(247, 243, 236, 0.9);
}
@media (min-width: 720px) {
  form.questionnaire > button[type="submit"] { width: auto; min-width: 320px; display: flex; margin-left: auto; margin-right: auto; }
}

/* ---------- Cards & sections ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-1);
}
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
.card.narrow { max-width: 440px; margin: clamp(1rem, 5vw, 3rem) auto; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-2); }
.card.narrow h1 { font-size: 1.9rem; }
.card.narrow .btn-primary { width: 100%; margin: 0.4rem 0 1rem; }
.card.narrow input[type=text], .card.narrow input[type=email], .card.narrow input[type=password] { max-width: none; }

.qsection {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.15rem, 3vw, 1.9rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-1);
}
.qsection > h2, .qsection-head h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  margin-bottom: 1.1rem;
}
.qsection > h3:first-child { margin-top: 0; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.qsection > p.muted { margin-top: -0.4rem; }
.qsection .field:last-child, .qsection .field-row:last-child { margin-bottom: 0; }

/* Numbered steps on the questionnaire ("1 Основни данни", "2 Дневен график" …). */
form.questionnaire[novalidate] { counter-reset: qstep; }
form.questionnaire[novalidate] > .qsection { counter-increment: qstep; }
form.questionnaire[novalidate] > .qsection > h2 { display: flex; align-items: center; gap: 0.75rem; }
form.questionnaire[novalidate] > .qsection > h2::before {
  content: counter(qstep);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--pine-50);
  color: var(--pine);
  font: 700 0.95rem/1 var(--font-sans);
}

.qsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.qsection-head h2 { margin: 0; }
.section-actions { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; }
.section-actions-sep { color: var(--line-2); }
.select-all-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pine);
}
.select-all-btn:hover { background: var(--pine-50); color: var(--pine); }

/* ---------- Forms ---------- */
.questionnaire { max-width: 880px; }
.required-legend { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.5rem; }
.req-tag { color: var(--clay); font-weight: 700; margin-left: 0.1rem; }

.field { margin-bottom: 1.15rem; }
.field label, .field > label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 1.25rem;
}
.field-row .field { min-width: 0; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.3 var(--font-sans); /* 16px: stops iOS zooming into fields */
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
input[type=time], input[type=date] { font-variant-numeric: tabular-nums; }
.field input[type=time] { max-width: 220px; }

/* Hour + minute dropdowns that replace <input type="time"> (see trips/new.html). */
.time-select { display: flex; align-items: center; gap: 0.5rem; max-width: 220px; }
.time-select select { flex: 1 1 0; min-width: 0; min-height: 52px; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.time-select-sep { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: #c4b59f; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: var(--ring);
}
input::placeholder { color: #9aa1a9; }

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233b4550' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  text-overflow: ellipsis;
}

input[type=time]::-webkit-calendar-picker-indicator,
input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  padding: 4px;
  border-radius: 6px;
  transition: opacity var(--ease), background var(--ease);
}
input[type=time]:hover::-webkit-calendar-picker-indicator,
input[type=date]:hover::-webkit-calendar-picker-indicator { opacity: 1; background: var(--clay-50); }

input[type=checkbox], input[type=radio] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--clay);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
}
.field-error::before {
  content: "!";
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.field:has(.field-error) input, .field:has(.field-error) select { border-color: var(--danger); background: var(--danger-50); }

.hint { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0; }
.qsection > .field-error { margin: -0.5rem 0 0.6rem; }
.qsection > .field-error + .field { margin-top: 0.9rem; }

/* Checkbox rows ("Remember me", interests, Christmas market) */
.checkbox-field, .choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.checkbox-field label { margin: 0; font-weight: 500; }

/* Interests: tappable chips */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.checkbox-grid .choice {
  margin: 0;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.checkbox-grid .choice:hover { border-color: var(--clay); }
.checkbox-grid .choice:has(input:checked) { background: var(--clay-50); border-color: var(--clay); color: var(--clay-700); }

/* Stand-alone checkbox choices (e.g. Christmas market, stroller) */
.qsection > .choice, #kids-detail-fields > .choice {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-weight: 500;
  margin-bottom: 0.6rem;
  transition: background var(--ease), border-color var(--ease);
}
.qsection > .choice:has(input:checked), #kids-detail-fields > .choice:has(input:checked) { border-color: var(--clay); background: var(--clay-50); }

/* Yes / No: a two-part segmented switch */
.radio-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0.1rem 0 0.4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--pill);
}
.choice-inline, .field .choice-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 5.5rem;
  min-height: 40px;
  margin: 0;
  padding: 0.4rem 1.1rem;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}
.choice-inline input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-inline:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.choice-inline:has(input:checked)::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--clay);
}
.choice-inline:has(input:focus-visible) { box-shadow: var(--ring); }

#kids-detail-fields {
  margin: 0.25rem 0 1.25rem;
  padding: 1.1rem 1.1rem 0.4rem;
  border-left: 3px solid var(--pine-100);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Single-calendar trip-date picker (new.html) */
.field .date-range-input {
  max-width: 460px;
  padding-left: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8491a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.9rem center;
  cursor: pointer;
  font-weight: 500;
}

/* flatpickr calendar, restyled to match the site */
.flatpickr-calendar {
  font-family: var(--font-sans) !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-3) !important;
  padding: 0.4rem;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
/* Month + year header. The site's own input/select styling (46px tall fields
   with padding and borders) must not leak into flatpickr's tiny year box and
   month dropdown, or the header text gets pushed down and clipped. */
.flatpickr-calendar .flatpickr-months { padding: 0.4rem 0.25rem 0.1rem; align-items: center; }
.flatpickr-calendar .flatpickr-months .flatpickr-month { height: 44px; overflow: visible; color: var(--ink); }
.flatpickr-calendar .flatpickr-current-month {
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
}
.flatpickr-calendar .flatpickr-current-month span.cur-month { font-weight: 700; margin: 0; }
.flatpickr-calendar .flatpickr-current-month .numInputWrapper { width: 5.2ch; }
.flatpickr-calendar .flatpickr-current-month input.cur-year,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0 0 0 0.35ch;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background-color: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.flatpickr-calendar .flatpickr-current-month input.cur-year { width: 100%; font-variant-numeric: tabular-nums; }
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  width: auto;
  max-width: none;
  padding: 0.15rem 1.3rem 0.15rem 0.4rem;
  font-weight: 700;
  background-position: right 0.3rem center;
  background-size: 9px;
}
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-current-month input.cur-year:hover { background-color: var(--paper-2); }
.flatpickr-calendar .flatpickr-current-month input.cur-year:focus,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus { box-shadow: none; background-color: var(--paper-2); }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  top: 0.4rem;
  height: 44px;
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover { background: var(--paper-2); }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--clay); }
.flatpickr-calendar .flatpickr-weekdays { height: 32px; }
span.flatpickr-weekday { color: var(--muted) !important; font-weight: 600 !important; font-size: 0.8rem; }
.flatpickr-day { border-radius: 50% !important; font-weight: 500; color: var(--ink); }
.flatpickr-day.today { border-color: var(--clay-100) !important; }
.flatpickr-day:hover { background: var(--paper-2) !important; border-color: var(--paper-2) !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #c3c7cc !important; background: transparent !important; }
.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
  background: var(--clay-50) !important;
  border-color: var(--clay-50) !important;
  box-shadow: -5px 0 0 var(--clay-50), 5px 0 0 var(--clay-50) !important;
  border-radius: 0 !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
  background: var(--clay) !important;
  border-color: var(--clay) !important;
  color: #fff !important;
  font-weight: 700;
}
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--clay) !important; }
.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) { box-shadow: none !important; }

/* ---------- Flash messages ---------- */
.flashes { margin-bottom: 1.25rem; display: grid; gap: 0.5rem; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  box-shadow: var(--shadow-1);
}
.flash::before { content: ""; flex-shrink: 0; width: 0.55rem; height: 0.55rem; margin-top: 0.45rem; border-radius: 50%; background: currentColor; }
.flash-success { background: var(--success-50); color: var(--success); border-color: #bfe3d2; }
.flash-danger, .flash-error { background: var(--danger-50); color: var(--danger); border-color: #f3c9c4; }
.flash-info, .flash-message { background: var(--info-50); color: var(--info); border-color: #c8dcef; }
.flash-warning { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-100); }

/* ---------- Hero banner (home, country picker) ---------- */
.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 52vh, 540px);
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--pine-700);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-3);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 22, 28, 0) 22%, rgba(14, 22, 28, 0.55) 62%, rgba(14, 22, 28, 0.86) 100%),
    linear-gradient(90deg, rgba(14, 22, 28, 0.45) 0%, rgba(14, 22, 28, 0) 65%);
}
.hero-banner-sm { min-height: 240px; }
.hero-banner-inner {
  width: 100%;
  max-width: 760px;
  padding: clamp(1.5rem, 5vw, 3.25rem);
}
.hero-banner h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-banner .hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}
.landing-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero-banner .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-banner .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, 0.24); border-color: #fff; color: #fff; }

/* ---------- Home: features + gallery ---------- */
.feature-grid {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.feature-card {
  counter-increment: feature;
  position: relative;
  margin: 0;
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.feature-card::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font: italic 600 1.6rem/1 var(--font-serif);
  color: var(--clay);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature-card h3 { margin: 0 0 0.45rem; font-size: 1.08rem; }
.feature-card p { margin: 0; font-size: 0.94rem; line-height: 1.55; }

.landing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  grid-auto-rows: 220px;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.landing-gallery-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
}
@media (min-width: 760px) {
  .landing-gallery { grid-template-columns: 1.7fr 1fr; grid-auto-rows: 200px; }
  .landing-gallery-item:first-child:not(:only-child) { grid-row: span 2; }
  .landing-gallery-item:nth-child(4):last-child { grid-column: 1 / -1; }
}
.landing-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.landing-gallery-item:hover img { transform: scale(1.04); }

.explore-cta {
  position: relative;
  overflow: hidden;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0.5rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 260px at 85% -10%, rgba(201, 139, 30, 0.35), transparent 60%),
    radial-gradient(600px 300px at 0% 120%, rgba(184, 73, 26, 0.35), transparent 60%),
    var(--pine);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.explore-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 0.5rem; }
.explore-cta p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 1.4rem; max-width: 52ch; font-size: 1.05rem; }
.explore-cta .btn-primary { background: #fff; border-color: #fff; color: var(--clay-700); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.country-hero-body .hero-cta { margin: 1.25rem 0 0.5rem; }
.explore-cta .btn-primary:hover { background: var(--clay-50); border-color: var(--clay-50); color: var(--clay-700); }

/* ---------- Destination cards (countries, cities) ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.dest-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--line-2); color: var(--ink); }
.dest-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-2); }
.dest-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pine-100), var(--pine) 120%);
}
.dest-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.dest-card:hover .dest-card-media img { transform: scale(1.05); }
.dest-card-count {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.28rem 0.7rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.dest-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dest-card-body h2 { font-size: 1.3rem; margin: 0 0 0.35rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dest-card-body h2::after {
  content: "→";
  font: 500 1.05rem/1 var(--font-sans);
  color: var(--clay);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--ease), transform var(--ease);
}
.dest-card:hover .dest-card-body h2::after { opacity: 1; transform: none; }
.dest-blurb { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* ---------- Country / city hero (photo above, text below) ---------- */
.country-hero {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.country-hero-media { aspect-ratio: 21 / 8; overflow: hidden; background: linear-gradient(135deg, var(--pine-100), var(--pine) 120%); }
@media (max-width: 640px) { .country-hero-media { aspect-ratio: 4 / 3; } }
.country-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.country-hero-body { padding: clamp(1.25rem, 4vw, 2.25rem); }
.country-hero-body h1 { margin-bottom: 0.5rem; }
.hero-sub-dark { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 70ch; }

.info-panel {
  margin-top: 0.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.fact-grid:last-child { margin-bottom: 0; }
.fact-tile { display: flex; flex-direction: column; gap: 0.3rem; }
.fact-tile-wide { grid-column: span 2; }
@media (max-width: 640px) { .fact-tile-wide { grid-column: auto; } }
.fact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}
.fact-value { font-size: 0.97rem; line-height: 1.5; color: var(--ink); }
.tips-block { border-top: 1px solid var(--line); padding-top: 1rem; }
.tips-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.tips-list li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; line-height: 1.5; }
.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--pine-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%231f5b50' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.city-best-time {
  margin: 0.25rem 0 0;
  max-width: 75ch;
  padding: 0.9rem 1.1rem;
  background: var(--pine-50);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.55;
}
.city-best-time strong { color: var(--pine); }

/* Christmas market highlight */
.xmas-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  margin-top: 1.25rem;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(201, 139, 30, 0.14), transparent 70%),
    var(--gold-50);
  border: 1px solid var(--gold-100);
  border-radius: var(--r);
  overflow: hidden;
}
.xmas-card:not(:has(> img)) { grid-template-columns: 1fr; }
.xmas-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.xmas-card-body { padding: clamp(1rem, 3vw, 1.5rem); }
.xmas-card-body .fact-label { color: var(--gold-700); }
.xmas-card-body h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin: 0.4rem 0 0.5rem; }
.xmas-card-body p { margin: 0 0 0.6rem; font-size: 0.95rem; line-height: 1.6; }
.xmas-meta { color: var(--gold-700) !important; font-size: 0.87rem !important; font-weight: 500; }
@media (max-width: 640px) {
  .xmas-card { grid-template-columns: 1fr; }
  .xmas-card img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- Sight lists (explore page + sights picker) ---------- */
.sight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sight-row {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.sight-row:focus-visible { outline: none; box-shadow: var(--ring); }
.sight-list:not(.sight-list-click-only) .sight-row:hover,
.sight-list:not(.sight-list-click-only) .sight-row:focus-within,
.sight-row.is-open { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.sight-list-click-only .sight-row:hover { border-color: var(--line-2); }
.sight-row:has(input[type=checkbox]:checked) { border-color: var(--clay); background: var(--clay-50); box-shadow: inset 3px 0 0 var(--clay); }

.sight-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem 0.75rem; flex-wrap: wrap; }
.sight-list-click-only .sight-row-head { flex-wrap: nowrap; }
.sight-row-head .choice { flex: 1; min-width: 0; align-items: flex-start; flex-wrap: wrap; margin: 0; gap: 0.35rem 0.65rem; }
.sight-row-head .choice input { margin-top: 0.2rem; }
.sight-row-name { font-weight: 650; line-height: 1.4; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.sight-row-excerpt { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.sight-list-click-only .sight-row-excerpt { padding-left: 1.8rem; }
.sight-row-detail {
  display: none;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.sight-list:not(.sight-list-click-only) .sight-row:hover .sight-row-detail,
.sight-list:not(.sight-list-click-only) .sight-row:focus-within .sight-row-detail,
.sight-row.is-open .sight-row-detail { display: flex; }
.sight-row-detail-media { flex-shrink: 0; }
.sight-row-detail-media img { width: 170px; height: 120px; object-fit: cover; border-radius: var(--r-xs); display: block; }
.sight-row-detail-text { min-width: 0; }
.sight-row-detail-text p { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.55; }
.sight-row-meta { font-size: 0.86rem; color: var(--muted) !important; line-height: 1.7 !important; }
@media (max-width: 640px) {
  .sight-row-detail { flex-direction: column; }
  .sight-row-detail-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .sight-list-click-only .sight-row-excerpt { padding-left: 0; }
}
.sight-list-explore .sight-row-excerpt { padding-left: 0; }
.sight-list-explore .sight-row-name { flex: 1 1 auto; }


.sight-detail-toggle {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.2rem -0.25rem 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), color var(--ease), background var(--ease);
}
.sight-detail-toggle:hover { border-color: var(--clay); color: var(--clay); }
.sight-row.is-open .sight-detail-toggle { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); color: #fff; }

.access-icon { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--info-50); color: var(--info); font-size: 0.9em; line-height: 1; }

/* Day-trip choices on the sights picker */
.sight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.75rem; }
.sight-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-weight: 650;
  line-height: 1.4;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.sight-choice:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.sight-choice:has(input:checked) { border-color: var(--clay); background: var(--clay-50); box-shadow: inset 3px 0 0 var(--clay); }
.sight-choice input { margin-top: 0.15rem; }
.sight-choice > span { display: block; min-width: 0; }
.sight-note { display: block; margin-top: 0.4rem; font-weight: 400; font-size: 0.87rem; line-height: 1.55; }
.sight-kid-note {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-xs);
  background: var(--danger-50);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Search above the sights picker: stays under the header while you scroll. */
.sights-search-field {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 15;
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) { .sights-search-field { top: 118px; } }
.sights-search-field .sights-search-input {
  min-height: 52px;
  padding: 0.75rem 1.1rem 0.75rem 2.9rem;
  border-radius: var(--pill);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366707b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 1.1rem center no-repeat;
}
.sights-no-results { text-align: center; padding: 2rem 1rem; }

.sights-categories-heading {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 1rem;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
}

/* ---------- Plan: header, save call-to-action, warnings ---------- */
.trip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.trip-header h1 { margin-bottom: 0.35rem; }
.trip-header p { margin: 0; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trip-actions .btn { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.9rem; }

.purchase-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-100);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(201, 139, 30, 0.16), transparent 70%),
    var(--gold-50);
  box-shadow: var(--shadow-2);
}
.purchase-cta h2 { margin-bottom: 0.35rem; }
.purchase-cta form { margin: 1rem 0 0.25rem; }
.purchase-cta > p:last-child { margin: 0.75rem 0 0; }
.purchase-cta > p:last-child a { font-weight: 600; }

.warnings {
  border: 1px solid var(--gold-100);
  border-left: 4px solid var(--gold);
  background: var(--gold-50);
}
.warnings h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; }
.warnings h2::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font: 800 0.95rem/1 var(--font-sans);
}
.warnings ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.warnings li { position: relative; padding-left: 1.2rem; line-height: 1.6; color: var(--ink); }
.warnings li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.warnings li strong { color: var(--gold-700); }

/* ---------- Plan: day cards + timeline ---------- */
.day-card { padding: 0; overflow: hidden; }
.day-card > h2 {
  margin: 0;
  padding: 1.25rem clamp(1.1rem, 3vw, 1.75rem) 0.35rem;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
}
.day-card > h2 .muted { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.day-card > p.muted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0 clamp(1.1rem, 3vw, 1.75rem) 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.day-card > .timeline { padding: 1rem clamp(1.1rem, 3vw, 1.75rem) 0.75rem; }
.day-card > .add-sight-form, .day-card > p.small {
  margin: 0;
  padding: 1rem clamp(1.1rem, 3vw, 1.75rem) 1.25rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  background: var(--pine-50);
  color: var(--pine);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.maps-link:hover { background: var(--pine); color: #fff; }

.timeline {
  --tl-time: 3.4rem;
  --tl-gap: 1.6rem;
  --tl-rail: calc(var(--tl-time) + var(--tl-gap) / 2);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.4rem;
  left: var(--tl-rail);
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 10px);
}
.day-card > .timeline::before { left: calc(var(--tl-rail) + clamp(1.1rem, 3vw, 1.75rem)); }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-time) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  align-items: start;
  padding: 0.45rem 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: var(--tl-rail);
  top: 1.02rem;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-2);
  z-index: 1;
}
.tl-time {
  padding-top: 0.28rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-body { min-width: 0; padding-top: 0.28rem; line-height: 1.5; }

/* A sight: its own little card */
.tl-sight { padding: 0.6rem 0; }
.tl-sight::before { top: 1.5rem; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--clay); border: 3px solid var(--clay-100); }
.tl-sight .tl-time { padding-top: 0.85rem; color: var(--clay); font-size: 0.98rem; }
.tl-sight .tl-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
  padding: 0.75rem 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.tl-sight .tl-body > strong { font-size: 1.02rem; font-weight: 650; line-height: 1.35; }
.tl-sight .tl-body > .muted { font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.tl-sight .tl-body > a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.1rem 0.55rem;
  border-radius: var(--pill);
  background: var(--pine-50);
}
.tl-sight .tl-body > a:hover { background: var(--pine); color: #fff; }

/* Meals, rests: a quiet line with an icon */
.tl-meal::before { background: var(--pine); border-color: var(--pine-100); }
.tl-meal .tl-body { font-weight: 600; color: var(--pine); }
.tl-meal .tl-body::before { content: "🍽"; margin-right: 0.45rem; font-size: 0.95em; }
.tl-meal-coffee .tl-body::before { content: "☕"; }
.tl-meal-breakfast .tl-body::before { content: "🥐"; }
.tl-meal .tl-body .muted { font-weight: 400; }
.tl-rest::before { background: var(--paper-2); }
.tl-rest .tl-body::before { content: "☕"; margin-right: 0.45rem; }

/* Walking / transit hops: smaller, in between */
.tl-hop { padding: 0.1rem 0; }
.tl-hop::before { width: 6px; height: 6px; margin: -3px 0 0 -3px; top: 0.85rem; border: none; background: var(--line-2); }
.tl-hop .tl-time { font-weight: 500; font-size: 0.82rem; color: var(--muted); padding-top: 0.3rem; }
.tl-hop .tl-body { font-size: 0.86rem; color: var(--muted); padding-top: 0.3rem; }
.tl-hop .tl-body::before { content: "↓"; margin-right: 0.4rem; color: var(--line-2); font-weight: 700; }

/* Day-trip / bonus stops */
.tl-bonus::before { width: 14px; height: 14px; margin: -7px 0 0 -7px; top: 1.2rem; background: var(--gold); border: 3px solid var(--gold-100); }
.tl-bonus .tl-body { padding: 0.7rem 0.95rem; background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--r-sm); }
.tl-bonus .tl-time { padding-top: 0.75rem; color: var(--gold-700); }

/* Tier / "your pick" badges */
.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.12rem 0.55rem;
  border-radius: var(--pill);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-tier { background: var(--pine-50); color: var(--pine); }
.badge-custom { background: var(--gold-50); color: var(--gold-700); }
.badge-picked { background: var(--clay-50); color: var(--clay-700); }

/* Edit tools under each sight (move / change time / remove) */
.tl-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-basis: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-2);
}
.tl-edit .inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; min-width: 0; max-width: 100%; }
.tl-edit .link-btn,
.tl-edit select,
.tl-edit .duration-input {
  min-height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1;
}
.tl-edit .link-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 0.75rem; }
.tl-edit .link-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.tl-edit .inline-form:nth-child(-n+2) .link-btn { width: 34px; padding: 0; font-size: 1rem; }
.tl-edit select { width: 9rem; min-width: 0; flex: 1 1 9rem; max-width: 13rem; padding: 0 2rem 0 0.8rem; background-position: right 0.7rem center; background-size: 10px; }
.tl-edit .inline-form:has(.duration-input)::before { content: "⏱"; font-size: 0.95rem; opacity: 0.7; margin-left: 0.25rem; }
.tl-edit .duration-input { width: 4.6rem; padding: 0 0.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.tl-edit .link-danger { color: var(--danger); border-color: #f1c3be; }
.tl-edit .link-danger:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
.tl-edit .inline-form:last-child { margin-left: auto; }
.duration-input { width: 4.6rem; }
.link-danger { color: var(--danger); }

.add-sight-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.add-sight-form select { flex: 1 1 16rem; width: auto; min-width: 0; }
.add-sight-form .btn { min-height: 46px; }

/* Tips + suggestions under the plan */
.money-saving { background: var(--pine-50); border-color: var(--pine-100); }
.money-saving h2::before { content: "€"; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: 0.6rem; border-radius: 50%; background: var(--pine); color: #fff; font: 700 0.95rem/1 var(--font-sans); vertical-align: 0.15em; }
.money-saving ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.money-saving li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.money-saving li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pine); font-weight: 800; }

.suggestions h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}
.suggestions h3:first-of-type { margin-top: 0.25rem; }
.suggestion-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.suggestion-list li {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  line-height: 1.6;
}
.suggestion-list li strong { color: var(--ink); }

/* ---------- Dashboard (my trips) ---------- */
.container > section > h2 { margin-top: 2rem; }
.trip-list { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.trip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.trip-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--ink); }
.trip-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }

/* ---------- Blog: list ---------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); color: var(--ink); }
.blog-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-2); }
.blog-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--clay-100), var(--clay) 130%); }
.blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; padding: 1.25rem 1.35rem 1.5rem; }
.blog-card h2 { order: 2; font-size: 1.35rem; line-height: 1.3; margin: 0 0 0.6rem; }
.blog-card .blog-meta { order: 1; }
.blog-card .blog-excerpt { order: 3; }
.blog-meta {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.blog-meta .muted { color: var(--muted); font-weight: 600; }
.blog-excerpt { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; }

/* ---------- Blog: single post ---------- */
.post-card { max-width: 820px; margin: 0 auto; }
.post-cover {
  aspect-ratio: 16 / 9;
  margin: 0 calc(var(--gutter) * -0.5) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-3);
}
@media (max-width: 640px) { .post-cover { margin-left: 0; margin-right: 0; border-radius: var(--r); } }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { max-width: 690px; margin: 0 auto; }
.post-card-body > h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.1; margin-bottom: 0.75rem; }
.post-card-body > .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-body { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.13rem); line-height: 1.78; color: #252c33; }
.blog-body > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-serif);
  font-size: 3.4em;
  line-height: 0.8;
  font-weight: 600;
  color: var(--clay);
}
.blog-body h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin: 2.6rem 0 0.9rem;
  line-height: 1.25;
}
.blog-body h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.blog-body p { margin: 0 0 1.35rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body li::marker { color: var(--clay); }
.blog-body a { color: var(--clay-700); text-decoration-color: rgba(154, 59, 18, 0.35); }
.blog-body a:hover { text-decoration-color: currentColor; }
.blog-body strong { color: var(--ink); font-weight: 650; }
.blog-body blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 3px solid var(--clay);
  font-style: italic;
  font-size: 1.12em;
  color: var(--ink-2);
}
.blog-body hr { border: none; height: 1px; background: var(--line); margin: 2.5rem 0; }
.blog-body img { max-width: 100%; display: block; border-radius: var(--r-sm); margin: 0 0 0.4rem; }
.blog-body figure { margin: 2rem 0; }
.blog-body figcaption { font-family: var(--font-sans); color: var(--muted); font-size: 0.86rem; text-align: center; margin-top: 0.5rem; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 0.6rem;
  margin: 2rem 0;
}
.photo-row img { width: 100%; height: clamp(260px, 42vw, 440px); object-fit: cover; object-position: center 30%; border-radius: var(--r-sm); margin: 0; }
@media (max-width: 560px) { .photo-row img { height: auto; aspect-ratio: 4 / 5; } }
.blog-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.75rem; margin-top: 1rem; }

.photo-placeholder {
  margin: 0 0 1.35rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--muted);
  font: italic 0.92rem/1.5 var(--font-sans);
}

.post-cover img, .blog-body img, .photo-row img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 16, 20, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox-overlay.lightbox-hidden { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); cursor: zoom-out; }

/* ---------- Contact ---------- */
.contact-intro-card { background: var(--pine-50); border-color: var(--pine-100); box-shadow: none; }
.contact-intro-card p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.contact-details-card { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.contact-list { margin: 0; }
.contact-row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row dt { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.contact-row dd { margin: 0; font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 2.25rem var(--gutter) 2.5rem;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 1.1rem/1 var(--font-serif); color: var(--ink); text-decoration: none; margin-bottom: 0.6rem; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-tagline { margin: 0; max-width: 46ch; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; justify-content: flex-end; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--clay); }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line-2); font-size: 0.82rem; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ---------- Small screens: tighten cards ---------- */
@media (max-width: 560px) {
  .timeline { --tl-time: 2.9rem; --tl-gap: 1.3rem; }
  .tl-time { font-size: 0.84rem; }
  .tl-sight .tl-time { font-size: 0.88rem; }
  .tl-sight .tl-body { padding: 0.65rem 0.8rem; }
  .tl-edit .inline-form:last-child { margin-left: 0; }
  .trip-actions { width: 100%; }
  .radio-group { display: flex; width: 100%; }
  .choice-inline { flex: 1; }
}

/* ---------- Print (browser "print this plan") ---------- */
@media print {
  .topbar, .footer, .tl-edit, .add-sight-form, .purchase-cta, .maps-link, .back-link, .skip-link { display: none !important; }
  body { background: #fff; }
  .card, .qsection { box-shadow: none; break-inside: avoid; }
}

/* Swap-with-neighbour-day controls under each day's heading (2026-09-27). */
.day-swap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0 clamp(1.1rem, 3vw, 1.75rem) .5rem; font-size: .88rem; }
.day-swap .inline-form { margin: 0; }

/* Blocking confirmation pop-up on the plan page (2026-09-27). */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(28, 35, 43, 0.55);
  backdrop-filter: blur(2px);
}
.modal-box {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-3);
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
  border-top: 5px solid var(--gold);
}
.modal-icon {
  width: 44px; height: 44px; margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; font-weight: 800; font-size: 1.4rem;
}
.modal-text { margin: 0 0 0.9rem; color: var(--ink-2); line-height: 1.55; }
.modal-question { margin: 0 0 1.2rem; font-weight: 700; color: var(--ink); }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.modal-actions .inline-form { margin: 0; }
.modal-actions .btn { min-width: 120px; }
.cut-short { color: var(--gold-700); font-weight: 600; font-size: 0.85rem; }

/* ---- Download & share panel (2026-09-27) ---- */
.share-panel { margin: 1.25rem 0; }
.share-panel h2 { margin-top: 0; }
.share-group { margin-top: 1rem; }
.share-group h3 { font-size: 0.95rem; margin: 0 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-buttons .inline-form { margin: 0; }
.share-btn { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.9rem; flex-direction: column; gap: 0; line-height: 1.2; }
.share-btn-label { font-weight: 600; }
.share-btn-hint { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.share-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.brand-whatsapp { border-color: #25d366; }
.brand-viber { border-color: #7360f2; }
.brand-messenger { border-color: #0a7cff; }
.brand-telegram { border-color: #229ed9; }
.brand-facebook { border-color: #1877f2; }
.share-link-label { display: block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.share-link { width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 0.85rem; background: var(--paper); }
.share-note { font-size: 0.88rem; color: var(--muted); margin: 0.6rem 0 0; }
.share-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1100; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-1); max-width: min(92vw, 520px); font-size: 0.9rem; }
.save-free-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.save-free-form label { flex-basis: 100%; font-size: 0.9rem; color: var(--muted); }
.save-free-form input[type=email] { flex: 1 1 240px; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.2rem; }
@media (max-width: 640px) {
  .share-buttons .share-btn, .share-buttons .inline-form { flex: 1 1 calc(50% - 0.5rem); }
  .share-buttons .inline-form .share-btn { width: 100%; }
}

/* ---- Booked time slots (2026-09-27) ---- */
.booking-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; margin-top: 0.35rem; font-size: 0.88rem; }
.booking-ok { color: var(--success); font-weight: 600; }
.booking-warn { color: var(--clay); }
.booking-note { color: var(--clay); font-size: 0.88rem; }
.booking-form label { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.booking-form input[type=time], .booking-form select { min-height: 32px; padding: 0.15rem 0.4rem; border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: 0.9rem; }
.modal-booking-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; justify-content: center; margin: 0.8rem 0; }
.modal-booking-form .modal-question { flex-basis: 100%; margin: 0; }
.modal-booking-form input[type=time] { min-height: 44px; padding: 0.4rem 0.7rem; font-size: 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r-xs); }
.booking-line .booking-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; }
.booking-line .booking-form label { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 400; }
.booking-line .booking-form input[type=time], .booking-line .booking-form select { width: auto; min-width: 0; display: inline-block; }
.booking-line .booking-form select { padding-right: 1.9rem; }

/* ---- Multi-city trips (2026-09-29) ---- */
.journey-panel { margin: 1.25rem 0; }
.journey-panel h2 { margin-top: 0; }
.journey-legs { list-style: none; margin: 0; padding: 0; counter-reset: leg; }
.journey-leg { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.journey-leg:last-child { border-bottom: 0; }
.journey-leg-head { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.journey-leg-head::before { counter-increment: leg; content: counter(leg) "."; font-weight: 700; color: var(--clay); }
.journey-leg-dayvisit .journey-leg-head::before { content: "↺"; }
.journey-leg-edit summary, .journey-add summary { cursor: pointer; margin-top: 0.35rem; font-size: 0.9rem; color: var(--pine); }
.journey-add { margin-top: 0.9rem; }
.journey-add summary { list-style: none; display: inline-flex; color: inherit; }
.journey-add summary::-webkit-details-marker { display: none; }
.journey-form { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: flex-end; margin-top: 0.7rem; }
.journey-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; color: var(--muted); }
.journey-form input, .journey-form select { min-height: 38px; padding: 0.3rem 0.5rem; border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: 0.95rem; color: var(--ink); background: var(--surface); width: auto; }
.journey-form .journey-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; flex-basis: 100%; }
.journey-form .journey-kind label { flex-direction: row; align-items: center; color: var(--ink); font-size: 0.95rem; }
.journey-form .journey-stay-fields, .journey-form .journey-visit-fields { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: flex-end; flex-basis: 100%; }
.journey-form .journey-stay-fields[hidden], .journey-form .journey-visit-fields[hidden] { display: none; }
.journey-leg-actions { display: flex; gap: 0.8rem; margin: 0.4rem 0; }
.btn-small { min-height: 36px; padding: 0.3rem 0.9rem; font-size: 0.88rem; }
.day-city { color: var(--clay); }
.journey-visit-note { margin: -0.3rem 0 0.4rem; font-size: 0.9rem; color: var(--pine); }
.tl-travel .tl-body strong { color: var(--pine); }
.extra-city-row { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 0.8rem; margin-bottom: 0.8rem; }
.extra-city-row [hidden] { display: none; }
.extra-city-row .journey-kind { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.extra-city-row .journey-kind label { display: inline-flex; align-items: center; gap: 0.35rem; }
/* Hour/minute dropdowns inside compact inline forms (plan items, cities panel). */
.booking-line .time-select, .journey-form .time-select { display: inline-flex; gap: 0.25rem; max-width: none; }
.booking-line .time-select select, .journey-form .time-select select { min-height: 34px; font-size: 0.95rem; padding: 0.15rem 1.6rem 0.15rem 0.45rem; flex: 0 0 auto; width: auto; }
.modal-booking-form .time-select { max-width: 220px; }
.choice-none span { font-style: italic; }
.choice-disabled { opacity: 0.45; cursor: not-allowed; }
.share-link-row { display: flex; gap: 0.5rem; align-items: stretch; margin-top: 0.3rem; }
.share-link-row .share-link { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.share-link-copy { flex: 0 0 auto; min-height: 0; }

/* Download / Send as two menu buttons (2026-09-29) */
.share-menus { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.share-menu { position: relative; }
.share-menu > summary { list-style: none; cursor: pointer; }
.share-menu > summary::-webkit-details-marker { display: none; }
.share-menu-list { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 270px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(28,35,43,0.14); padding: 0.35rem; }
.share-menu-list form { margin: 0; }
.share-menu-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; gap: 0.05rem;
  padding: 0.55rem 0.75rem; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; cursor: pointer; text-decoration: none; }
.share-menu-item:hover, .share-menu-item:focus-visible { background: var(--paper); outline: none; }
.share-menu-item[disabled] { opacity: 0.45; cursor: not-allowed; }
.share-menu-item .dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid; margin-right: 0.45rem; vertical-align: middle; }
.share-menu-list button.share-menu-item:not(:has(.share-btn-label)) { flex-direction: row; align-items: center; }
.share-menu-note { padding: 0.4rem 0.75rem; margin: 0; }
@media (max-width: 640px) { .share-menu-list { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; min-width: 0; } }
.share-menu-item .dot.brand-whatsapp { color: #25d366; }
.share-menu-item .dot.brand-viber { color: #7360f2; }
.share-menu-item .dot.brand-messenger { color: #0a7cff; }
.share-menu-item .dot.brand-telegram { color: #229ed9; }
.share-menu-item .dot.brand-facebook { color: #1877f2; }
.share-help { margin-top: 0.9rem; padding: 0.9rem 1rem; border: 1px solid #0a7cff55; background: #eef5ff; border-radius: var(--r-sm); }
.share-help p { margin: 0 0 0.6rem; }
.share-help-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-what { border: 0; margin: 0 0 0.3rem; padding: 0.35rem 0.75rem 0.55rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.3rem; }
.share-what legend { padding: 0; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.2rem; }
.share-what label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.93rem; cursor: pointer; }
.route-summary { margin: 0.9rem 0 0; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); background: var(--paper); font-weight: 600; color: var(--pine); }
.route-summary-bad { color: var(--danger); }
/* Per-traveler warnings on a place (kids' age, wheelchair, stroller) - 2026-09-30 */
.place-warning { display: block; margin: 0.3rem 0 0; font-size: 0.86rem; color: #9a3412; line-height: 1.4; }
.sight-row .place-warning { padding-left: 2rem; }
/* Getting around + hotel panel (2026-09-30) */
.travel-panel .travel-mode-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.travel-panel .hotel-list { list-style: none; margin: 1rem 0 0.5rem; padding: 0; }
.travel-panel .hotel-row { padding: 0.75rem 0; border-top: 1px solid var(--border, #e7e1d8); }
.travel-panel .hotel-row-head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: baseline; margin-bottom: 0.5rem; }
.travel-panel .hotel-form { display: flex; gap: 0.5rem; align-items: center; }
.travel-panel .hotel-form input[type="text"] { flex: 1; min-width: 0; }
.travel-panel .hotel-form .btn { flex: none; }
.car-note { display: block; margin-top: 0.3rem; font-size: 0.88rem; }
@media (max-width: 560px) { .travel-panel .hotel-form { flex-direction: column; align-items: stretch; } }
/* Places to eat at each meal (2026-09-30) */
.meal-options-label { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted, #6b6b6b); }
.meal-options { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.9rem; }
.meal-options li { padding: 0.3rem 0; border-top: 1px dashed var(--border, #e7e1d8); }
.meal-options li:first-child { border-top: 0; }
.meal-budget { display: inline-block; min-width: 2.4em; font-weight: 700; color: #2f6b4f; letter-spacing: 0.05em; }
.meal-note { display: block; color: var(--muted, #6b6b6b); font-size: 0.85rem; }
.meal-links { display: block; font-size: 0.85rem; }
.meal-options-box { margin-top: 0.3rem; }
.meal-options-box > summary { cursor: pointer; list-style: none; font-size: 0.88rem; line-height: 1.7; }
.meal-options-box > summary::-webkit-details-marker { display: none; }
.meal-options-box > summary::after { content: " ▾"; color: var(--muted, #6b6b6b); }
.meal-options-box[open] > summary::after { content: " ▴"; }
.meal-options-box .meal-options-label { display: inline; margin: 0 0.3rem 0 0; }
.meal-chip { display: inline-block; margin: 0 0.5rem 0 0; padding: 0 0.45rem; border-radius: 999px; background: rgba(47,107,79,0.08); font-weight: 400; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.meal-chip b { color: #2f6b4f; }
.meal-note { font-weight: 400; }
.meal-price { display: block; font-size: 0.8rem; font-weight: 400; }
/* Jump links to the sections under the plan (2026-10-01: the plan comes first) */
.plan-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0 0 1.25rem; font-size: 0.92rem; }
.plan-jump-label { color: var(--muted, #6b6b6b); }
.plan-jump a { display: inline-block; padding: 0.25rem 0.75rem; border: 1px solid var(--border, #e7e1d8); border-radius: 999px; background: #fff; text-decoration: none; }
.plan-jump a:hover { border-color: currentColor; }
.journey-panel, .travel-panel, .share-panel, .purchase-cta { scroll-margin-top: 5rem; }
@media (max-width: 560px) {
  .plan-jump { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 0.25rem; }
  .plan-jump a, .plan-jump-label { flex: none; }
}
/* BG/EN as buttons on pages that are the answer to a submitted form (2026-10-01) */
form.lang-toggle { margin-top: 0; margin-bottom: 0; }
button.lang-option { border: 0; font: inherit; font-size: inherit; font-weight: 700; letter-spacing: 0.04em; line-height: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.lang-option:not(.lang-option-active) { background: none; }
/* Photo credit under a sight's picture (2026-10-01) */
.img-credit { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--muted, #6b6b6b); line-height: 1.3; }
.img-credit a { color: inherit; }
/* Photo credit under a sight's picture (2026-10-01) */
.img-credit { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--muted, #6b6b6b); line-height: 1.3; }
.img-credit a { color: inherit; }

/* Photo credits on the city / country header photos and under the card grids (2026-10-03) */
.country-hero-media { position: relative; }
.country-hero-media .img-credit { position: absolute; right: 0.5rem; bottom: 0.4rem; margin: 0; padding: 0.1rem 0.45rem; border-radius: 4px; background: rgba(0, 0, 0, 0.5); color: #fff; }
.photo-credits { margin: 1.25rem 0 0; }
