/* Конгресна Варна — premium look (07.10.2026, from the brief of Gemini, adapted).
   A neutral palette of the platform itself — NOT the Palace's brand (ТЗ v1.5: "Дворецът не налага
   своята марка на общата платформа"; the destination's owner decides the visual standard).
   Dark by default; light when the visitor chooses it (the switch in the header, data-theme).
   Typeface: Montserrat (local, Bulgarian letter forms). Logical properties keep RTL correct.
   Contrast (WCAG AA) is checked by axe-core on every page in both themes. */

:root {
  /* dark — graphite and warm gold */
  --bg: #101216;
  --surface: #171a20;
  --surface-2: #1e222a;
  --glass: rgb(23 26 32 / 0.72);
  --text: #f3f4f6;
  --muted: #a7afbc;        /* 8.5:1 on --bg */
  --accent: #dcb66e;       /* warm gold, 9.8:1 on --bg; links and the main actions */
  --accent-text: #16130b;
  --gold-line: rgb(220 182 110 / 0.38);
  --border: #2d323c;
  --notice-bg: #2b2516;
  --focus: #8fd0ff;        /* sea light — distinct from the gold buttons */
  --error: #ffab8f;
  --glow: radial-gradient(60rem 30rem at 85% -10%, rgb(220 182 110 / 0.16), transparent 60%),
          radial-gradient(50rem 28rem at -10% 10%, rgb(70 130 180 / 0.14), transparent 60%);
  --radius: 10px;
  --wrap: 74rem;
  --font: "Montserrat", "Open Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  /* light — ivory and Black Sea blue; gold only for lines */
  --bg: #fbfaf7;
  --surface: #f3f0e9;
  --surface-2: #ece7dc;
  --glass: rgb(251 250 247 / 0.78);
  --text: #16181d;
  --muted: #4a5160;        /* 7.6:1 on --bg */
  --accent: #0b5585;       /* 7.6:1 on --bg */
  --accent-text: #ffffff;
  --gold-line: rgb(150 112 40 / 0.45);
  --border: #d9d3c6;
  --notice-bg: #fff4d6;
  --focus: #b35a00;
  --error: #a1360a;
  --glow: radial-gradient(60rem 30rem at 85% -10%, rgb(190 150 70 / 0.16), transparent 60%),
          radial-gradient(50rem 28rem at -10% 10%, rgb(11 85 133 / 0.10), transparent 60%);
  color-scheme: light;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

/* Scripts without Open Sans coverage: local Noto subsets (fonts-noto.css, K15a), then system fonts. */
:lang(ar), :lang(fa) { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:lang(hi) { font-family: "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
:lang(ja) { font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif; }
:lang(zh-Hans) { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }

.wrap {
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

/* K17: form fields always show focus. A date field has its own Tab stops inside (day, month, year
   and the calendar button); on the calendar button only :focus-within matches the field. */
input:focus, input:focus-within, select:focus, textarea:focus,
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { inset-block-start: 0.5rem; }

main { padding-block: 2rem 3rem; outline: none; }

h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.2; margin-block: 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-inline-size: 40rem; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-block-end: 1px solid var(--border); background: var(--surface); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding-block: 0.5rem; }
.nav a[aria-current="page"] { font-weight: 700; color: var(--text); }

/* Language switcher: <details>, works without JavaScript */
.lang-switch { margin-inline-start: auto; }
.lang-switch[open] { flex-basis: 100%; }
.lang-switch[open] summary { inline-size: fit-content; margin-inline-start: auto; }
.lang-switch summary {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-block-size: 44px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.lang-switch ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.125rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lang-switch li a { display: block; padding: 0.375rem 0.5rem; min-block-size: 44px; line-height: 1.9; }
.lang-switch a[aria-current="true"] { font-weight: 700; color: var(--text); }
@media (min-width: 48rem) {
  .lang-switch { position: relative; }
  .lang-switch[open] { flex-basis: auto; }
  .lang-switch ul {
    position: absolute;
    inset-inline-end: 0;
    inline-size: min(40rem, 90vw);
    z-index: 5;
    box-shadow: 0 6px 24px rgb(0 0 0 / 0.15);
  }
}

/* Cards: the three actions and the organizer entries */
h2 { font-size: 1.375rem; line-height: 1.3; margin-block: 2rem 0.5rem; }
.section-label { font-size: 1.125rem; margin-block: 2rem 1rem; }
.cards {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card {
  position: relative;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card:has(a:hover) { border-color: var(--accent); }
.card-title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }  /* whole card is the link target */
.card-title a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card p { margin: 0; }
.card-pending .card-title { color: var(--muted); }
.tag {
  display: inline-block;
  margin-block-start: 0.75rem !important;
  padding: 0.125rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.prose { max-inline-size: 42rem; }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-block: 0.375rem; }
.notice-box {
  padding: 1rem;
  background: var(--notice-bg);
  border-radius: var(--radius);
}

/* М1: catalog and profile */
.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.crumbs { margin-block: 0 0.5rem; font-size: 0.9375rem; }
.filters {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: end;
  padding: 1rem;
  margin-block: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label { font-weight: 600; }
.field select, .field input, .field button {
  font: inherit;
  min-block-size: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
}
.field-actions { flex-direction: row; align-items: center; gap: 1rem; }
.field button { background: var(--accent); color: var(--accent-text); border-color: var(--accent); cursor: pointer; }
.result-count { font-weight: 600; margin-block: 0 0.5rem; }
.venue-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.venue-list li { padding-block: 0.875rem; border-block-end: 1px solid var(--border); }
.venue-name { font-size: 1.125rem; margin: 0; }
.venue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0.25rem 0 0; }
.venue-meta .tag { margin: 0 !important; }
.check-line { color: var(--muted); }
.facts { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 0.375rem 1rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; min-inline-size: 0; }
.facts dd a { overflow-wrap: anywhere; }  /* long source URLs must not widen the page */
@media (max-width: 36rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { margin-block-end: 0.5rem; }
}
.no-data { color: var(--muted); font-style: italic; }
.plain { margin: 0; padding-inline-start: 1.25rem; }
.table-wrap { overflow-x: auto; position: relative; }  /* keeps the visually-hidden caption inside the scroller */
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
table { border-collapse: collapse; inline-size: 100%; }
th, td { text-align: start; padding: 0.5rem 0.75rem; border-block-end: 1px solid var(--border); vertical-align: top; }
thead th { border-block-end: 2px solid var(--muted); }
.field button { white-space: nowrap; }
@media (max-width: 36rem) {
  /* capacity table as stacked rows on phones */
  .cap-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .cap-table, .cap-table tbody, .cap-table tr, .cap-table th, .cap-table td { display: block; }
  .cap-table tr { padding-block: 0.5rem; border-block-end: 1px solid var(--border); }
  .cap-table th, .cap-table td { border: 0; padding: 0.125rem 0; }
  .cap-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* М6: congress calendar. The season is marked with a symbol and text, not colour alone. */
.months { margin-block: 1.5rem; }
.months li { position: relative; }  /* keeps visually-hidden text inside the scroller */
.months ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.months a {
  display: inline-flex; align-items: center; gap: 0.25rem;
  min-block-size: 44px; padding: 0.375rem 0.75rem;
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
}
.months .is-focus a { border-color: var(--accent); font-weight: 600; }
.months a[aria-current="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.months .count { font-weight: 400; }
.season-note { margin-block: 0 0.75rem; }
.focus-mark { color: var(--accent); }
.months a[aria-current="true"] .focus-mark { color: inherit; }
.field-check { justify-content: center; }
.field-check label { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; min-block-size: 44px; }
.field-check input { inline-size: 1.25rem; block-size: 1.25rem; min-block-size: 0; }
.month-group h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.month-group .tag { margin: 0 !important; font-size: 0.875rem; font-weight: 400; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list > li { padding-block: 1rem; border-block-end: 1px solid var(--border); }
.event-list h3 { font-size: 1.125rem; margin: 0 0 0.5rem; }
@media (max-width: 36rem) {
  /* one swipeable row of months on phones, so the events stay near the top */
  .months ul { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 0.5rem; scroll-snap-type: x proximity; }
  .months li { flex: none; scroll-snap-align: start; }
}

/* Notices and footer */
.notice { background: var(--notice-bg); padding-block: 0.75rem; }
.site-footer { border-block-start: 1px solid var(--border); padding-block: 1.5rem; font-size: 0.9375rem; }
.site-footer p { margin-block: 0.25rem; }

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

/* K12: test mode, inquiry form, errors, comparison */
.test-banner {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--focus);
  border-radius: var(--radius);
  background: var(--notice-bg);
}
.inquiry-form .group { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-block: 1.25rem; }
.inquiry-form .group > legend { font-weight: 700; font-size: 1.125rem; padding-inline: 0.25rem; }
.inquiry-form .field { margin-block: 0.875rem; max-inline-size: 36rem; }
.inquiry-form .field input[type="text"], .inquiry-form .field input[type="email"], .inquiry-form .field input[type="tel"],
.inquiry-form .field input[type="number"], .inquiry-form .field input[type="date"], .inquiry-form .field textarea {
  font: inherit; min-block-size: 44px; padding: 0.5rem 0.75rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--muted); border-radius: var(--radius); inline-size: 100%;
}
.choice { border: 0; padding: 0; margin: 0; }
.choice > legend { font-weight: 600; padding: 0; margin-block-end: 0.25rem; }
.option { display: flex; align-items: center; gap: 0.5rem; min-block-size: 44px; font-weight: 400; }
.option input { inline-size: 1.25rem; block-size: 1.25rem; flex: none; }
/* K16: long recipient names + category (resort hotels) wrap instead of overflowing at 320 px */
.option > span { min-inline-size: 0; overflow-wrap: anywhere; }
.recipient-grid .option { flex-wrap: wrap; }
.recipient-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0 1rem; }
.recipients { max-inline-size: none; margin-block-start: 1rem; }
/* K17: candidates of a hotel point, side by side */
.option-card { list-style: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
.option-card p { margin: 0.25rem 0 0; }
ul.recipient-grid { padding: 0; gap: 1rem; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: 0.125rem 0 0.375rem; }
.req { color: var(--error); margin-inline-start: 0.125rem; }
.field-error { color: var(--error); font-weight: 600; margin: 0.125rem 0 0.375rem; }
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--error) !important; }
.error-summary { border: 3px solid var(--error); border-radius: var(--radius); padding: 1rem; margin-block: 1rem; }
.error-summary h2 { margin-block-start: 0; }
.consent-text .pending { font-style: italic; }
.hp { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.compare th, .compare td { min-inline-size: 10rem; }

/* K12: back-office */
.logout { display: flex; align-items: center; gap: 0.75rem; margin-inline-start: auto; }
.link-button { font: inherit; background: none; border: 0; padding: 0.5rem 0; color: var(--accent); text-decoration: underline; cursor: pointer; min-block-size: 44px; }
.stat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat-list a { display: block; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.stat { font-size: 1.5rem; font-weight: 700; display: block; }
.mail { border-block-end: 1px solid var(--border); padding-block: 0.75rem; }
.mail h2 { font-size: 1.125rem; margin-block: 0 0.25rem; }
.mail-body { white-space: pre-wrap; font: inherit; background: var(--surface); padding: 0.75rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.admin button[type="submit"]:not(.link-button) { font: inherit; min-block-size: 44px; padding: 0.5rem 1rem; color: var(--accent-text); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; margin-block: 0.25rem; }
.inquiry-form select { font: inherit; min-block-size: 44px; padding: 0.5rem 0.75rem; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: var(--radius); max-inline-size: 100%; }
/* fieldsets default to min-width: min-content; long venue names in a select must not widen the page */
.inquiry-form fieldset, fieldset.group, fieldset.choice { min-inline-size: 0; }
.inquiry-form select, .inquiry-form .field select { inline-size: 100%; }

/* K14: getting here — text first, the map is an addition */
.steps { padding-inline-start: 1.5rem; margin-block: 0.25rem 0.5rem; }
.link-list > li { padding-block: 0.5rem; border-block-end: 1px solid var(--border); }
.columns { columns: 18rem; column-gap: 2rem; }
.osm-attribution { font-size: 0.9375rem; }
.map-section { margin-block-start: 2rem; }
.map { block-size: 26rem; max-block-size: 70vh; border: 1px solid var(--border); border-radius: var(--radius); }
.map:not(.map-ready) { display: none; }
/* 07.10.2026: the platform's own neutral colours (ТЗ: not the Palace's brand) */
.map-dot { display: block; inline-size: 14px; block-size: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #101216; cursor: pointer; }
.map-dot-venue { background: #0b5585; inline-size: 18px; block-size: 18px; }
.map-dot-entrance { background: #dcb66e; }
.map-dot-stop { background: #101216; inline-size: 10px; block-size: 10px; }
/* K17: on a slow connection the map waits for a click */
.map.map-deferred { display: flex; align-items: center; justify-content: center; background: var(--surface); }
.map-load { font: inherit; min-block-size: 44px; padding: 0.5rem 1rem; color: var(--accent-text); background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; }
/* K17: long addresses (source URLs) wrap in the facts lists; two buttons in a row wrap on a phone */
.facts dd { overflow-wrap: anywhere; }
.field-actions { flex-wrap: wrap; }

/* ---- Premium look (07.10.2026) ------------------------------------------------------------- */
body { background: var(--glow), var(--bg); background-attachment: fixed; }
h1, h2, h3, .brand { font-family: var(--font); letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.1; }
h2 { font-weight: 600; }
.section-label { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); margin-block: 0 1.25rem; }

/* the header: glass, stays at the top */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 20;
  background: var(--glass); border-block-end: 1px solid var(--gold-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9375rem; }
.nav a { color: var(--text); text-decoration: none; border-block-end: 2px solid transparent; }
.nav a:hover { border-block-end-color: var(--gold-line); }
.nav a[aria-current="page"] { border-block-end-color: var(--accent); }
.theme-toggle {
  display: inline-flex; align-items: center; font-size: 0.875rem; min-block-size: 44px; padding: 0.375rem 0.875rem;
  color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 999px;
}
.theme-toggle:hover { border-color: var(--accent); }
.lang-switch summary { border-radius: 999px; }

/* buttons */
.button-link, .button-ghost {
  display: inline-flex; align-items: center; min-block-size: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.button-link { color: var(--accent-text); background: var(--accent); border: 1px solid var(--accent); }
.button-link:hover { box-shadow: 0 8px 28px rgb(220 182 110 / 0.25); text-decoration: none; }
.button-ghost { color: var(--text); background: var(--glass); border: 1px solid var(--gold-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.button-ghost:hover { border-color: var(--accent); }

/* the hero */
.hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }
.hero-badge {
  display: inline-block; margin: 0 0 1.5rem; padding: 0.375rem 1rem; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--gold-line); border-radius: 999px;
}
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); max-inline-size: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-block: 2rem 0; }
.hero-next {
  margin-block-start: 3rem; padding: 1.25rem 1.5rem; max-inline-size: 36rem;
  background: var(--glass); border: 1px solid var(--gold-line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hero-next p { margin: 0; }
.hero-next-label { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-next-name { font-weight: 600; font-size: 1.125rem; margin-block: 0.25rem !important; }
.hero-next-when { font-variant-numeric: tabular-nums; color: var(--accent); }

/* sections with room to breathe */
.home-section { padding-block: clamp(3rem, 6vw, 6rem); border-block-start: 1px solid var(--border); }

/* the action cards */
.card { background: var(--surface); border-color: var(--border); transition: border-color .2s ease, transform .2s ease; }
.card:has(a:hover) { border-color: var(--accent); transform: translateY(-2px); }
.card-title a { color: var(--text); }

/* the venues by type */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.tile a {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem; min-block-size: 8rem; justify-content: flex-end;
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color .2s ease;
}
.tile a:hover { border-color: var(--accent); }
.tile-count { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile-label { font-weight: 500; }

/* the calendar as a programme booklet */
.booklet { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--gold-line); }
.booklet-item { display: grid; gap: 0.25rem 2rem; padding-block: 1.25rem; border-block-end: 1px solid var(--border); }
@media (min-width: 48rem) {
  .booklet-item { grid-template-columns: 15.5rem 1fr auto; align-items: baseline; }
  .booklet-date { white-space: nowrap; }
  .booklet-place { grid-column: 2; }
  .booklet-actions { grid-column: 3; grid-row: 1; }
}
.booklet-item p, .booklet-item h3 { margin: 0; }
.booklet-date { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.booklet-name { font-size: 1.125rem; font-weight: 600; }
.booklet-place { color: var(--muted); }
.booklet-actions a { display: inline-block; padding-block: 0.5rem; white-space: nowrap; }

/* the sources: plain names in one tone, equal weight */
.sources { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sources li { padding: 1.25rem; background: var(--surface); font-weight: 600; color: var(--text); }
.sources li span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-block-start: 0.25rem; }

/* the month tabs of the calendars */
.months a { border-radius: 999px; }

/* scroll reveal without JavaScript: scroll-driven animation where the browser has it; elsewhere,
   and for people who ask for less motion, the sections are simply there */
/* a slight rise only, no fade: text never passes through a low contrast while it moves in */
@keyframes kv-reveal { from { transform: translateY(18px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: kv-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-link, .button-ghost, .card, .tile a { transition: none; }
  .card:has(a:hover) { transform: none; }
}

/* K18: the map of the objects — one colour per kind, the same in the legend, the list and the map */
.map.map-large { block-size: min(70vh, 36rem); }
.map-dot-venues { background: #2f7fc1; }
.map-dot-hotels { background: #dcb66e; }
.map-dot-attraction { background: #c0607f; }
.map-dot-activity { background: #3f9a6e; }
.map-dot-beach { background: #3fb3d6; }
.map-dot-resort { background: #8b74d6; }
.map-swatch { display: inline-block; inline-size: 0.75rem; block-size: 0.75rem; border-radius: 50%;
  margin-inline-end: 0.5rem; vertical-align: baseline; border: 1px solid var(--border); }
.map-list { columns: 18rem; column-gap: 2rem; padding-inline-start: 1.25rem; }
.map-list li { break-inside: avoid; padding-block: 0.25rem; }
.maplibregl-popup-content ul { margin: 0; padding-inline-start: 1rem; }
.maplibregl-popup-content { color: #16181d; }

/* K19: pictures — a fixed 3:2 box (no jump while loading), the credit visible under the picture */
.photo { margin: 1.5rem 0; max-inline-size: 48rem; }
.photo img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--gold-line); background: var(--surface-2); }
.photo figcaption { margin-block-start: 0.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.photo-title { display: block; font-size: 1rem; font-weight: 600; color: var(--text); }
.photo-credit a { color: inherit; }
.photo-link { display: block; border-radius: var(--radius); }
.hero-with-photo .photo { margin: 2.5rem 0 0; }
@media (min-width: 64rem) {
  .hero-with-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
  .hero-with-photo .photo { margin: 0; }
}
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.photo-grid .photo { margin: 0; }
