/* ==========================================================================
   izberipochivka.net — основа на дизайна (зарежда се на всяка страница)
   Цветове по примера на Priceline: ярко синьо, тъмносин текст, бяло, светлосини акценти,
   зелено за бутоните към офертата. Шрифт: Montserrat. Максимална ширина: 1200px.
   Страниците добавят свой файл (home.css, listing.css, offer.css, content.css, tools.css);
   общите карти (оферта, дестинация, статия) са в cards.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party request) ----------
   Montserrat v31, the variable woff2 files Google Fonts serves (subsets cyrillic, latin, latin-ext; unicode-range
   copied from Google's CSS). The layout preloads the cyrillic file. Icons: icons.css (Phosphor subset).
   "Montserrat Fallback" = local Arial resized to Montserrat's metrics, so the swap to the web font barely moves the
   text (CLS). Montserrat's tables: unitsPerEm 1000, hhea/typo ascender 968, descender -251, line gap 0
   (USE_TYPO_METRICS). size-adjust = width of the site's own Bulgarian text in Montserrat / in Arial, measured in
   Chrome with these files: 1.1109 at 400 (Arial), 1.0947 at 700 (Arial Bold). override = metric / 1000 / size-adjust. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-v31-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-v31-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-v31-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat Fallback";
  font-style: normal;
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 111.09%;
  ascent-override: 87.14%;
  descent-override: 22.59%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  font-style: normal;
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 109.47%;
  ascent-override: 88.42%;
  descent-override: 22.93%;
  line-gap-override: 0%;
}

:root {
  /* Brand */
  --blue: #0068EF;
  --blue-600: #0057CC;
  --blue-700: #0046A6;
  --blue-100: #D9E8FF;
  --blue-50: #EEF5FF;
  --navy: #0B1F44;
  --navy-2: #16305E;

  /* Money / booking actions (white text on --green 5.15:1, on --green-600 6.7:1, WCAG AA) */
  --green: #0B7F28;
  --green-600: #096B21;
  --green-50: #E3F6E1;
  --green-700: #17661F;

  /* Accents */
  --orange: #C2410C; /* white score text 5.18:1 */
  --orange-50: #FFF0E8;
  --red: #D12A2A;
  --red-50: #FDECEC;
  --yellow: #FFC531;
  --star: #F5A524;

  /* Neutrals */
  --text: #2B3A55;
  --muted: #5F6C84;
  --subtle: #8D99AE;
  --line: #E1E6EE;
  --line-strong: #CBD3DF;
  --soft: #F5F8FC;
  --soft-2: #EDF2F8;
  --white: #fff;

  /* Aliases kept for older markup and inline styles */
  --ink: var(--navy);
  --deep: var(--navy);
  --deep-2: var(--navy-2);
  --aegean: var(--blue);
  --aegean-600: var(--blue-600);
  --aegean-700: var(--blue-700);
  --aegean-100: var(--blue-100);
  --aegean-50: var(--blue-50);
  --mist: var(--soft);
  --mist-2: var(--soft-2);
  --lagoon: #0FA3A3;
  --lagoon-700: #0A6F6F;
  --lagoon-50: #E3F6F5;
  --sun: var(--green);
  --sun-600: var(--green-600);
  --sun-50: var(--green-50);
  --sun-yellow: var(--yellow);
  --coral: var(--red);
  --coral-50: var(--red-50);

  /* Type */
  --font: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Elevation: cards are flat with a border; only floating layers get a shadow */
  --shadow-card: 0 1px 2px rgba(11, 31, 68, .04);
  --shadow-hover: 0 8px 24px -8px rgba(11, 31, 68, .18);
  --shadow-float: 0 12px 32px -10px rgba(11, 31, 68, .22), 0 2px 6px rgba(11, 31, 68, .06);
  --shadow-pop: 0 20px 48px -16px rgba(11, 31, 68, .3), 0 3px 10px rgba(11, 31, 68, .08);

  --container: 1200px;
  --gutter: 24px;
  --section-gap: 56px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-med: 220ms;

  --z-sticky: 20;
  --z-header: 40;
  --z-dropdown: 60;
  --z-drawer: 80;
  --z-modal: 100;
  --z-toast: 120;
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
i { line-height: 1; }
/* Every Phosphor glyph is 1em wide: reserve at least that box so nothing moves while the icon font loads (font-display: block).
   min-width, not width: an icon that a component stretches (the "no photo" placeholders with inset:0, grid/flex items) keeps its full box and stays centered. */
.ph, .ph-fill { display: inline-block; min-width: 1em; }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; font-weight: 800; }
.h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem); line-height: 1.2; }
.h3 { font-size: 1.1875rem; line-height: 1.3; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.1; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--blue-600); color: var(--btn-fg); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 1.15em; }
/* Green = actions that lead to an offer or a booking (Priceline "Choose your room"). */
.btn--cta { --btn-bg: var(--green); min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn--cta:hover { background: var(--green-600); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--soft { --btn-bg: var(--blue-50); --btn-fg: var(--blue-700); }
.btn--soft:hover { background: var(--blue-100); color: var(--blue-700); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--soft); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--subtle); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--outline:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--white:hover { background: var(--soft); color: var(--navy); }
.btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.link-btn { color: var(--blue); font-weight: 600; font-size: 0.9375rem; }
.link-btn:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  color: var(--navy); font-size: 1.3rem;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--soft); color: var(--navy); }
.icon-btn--outline { box-shadow: inset 0 0 0 1px var(--line-strong); }
.icon-btn--outline:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); background: #fff; }
.icon-btn__count {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.icon-btn__count:empty, .icon-btn__count[data-count="0"] { display: none; }

.round-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.05rem;
  box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(11,31,68,.08);
  transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.round-btn:hover { background: var(--blue-50); color: var(--blue-700); }
.round-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--navy); }

/* ---------- Badges, tags, chips, rating, stars, flags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px; border-radius: var(--r-xs);
  font-size: 0.75rem; font-weight: 700; line-height: 1; white-space: nowrap;
  background: #fff; color: var(--navy);
}
.badge i { font-size: 13px; }
.badge--sale { background: var(--red); color: #fff; }
.badge--early { background: var(--navy); color: #fff; }
.badge--early i { color: var(--yellow); }
.badge--new { background: var(--blue); color: #fff; }
.badge--holiday { background: #fff; color: var(--navy); }
.badge--holiday i { color: var(--blue); }

/* Small grey tag with a border (Priceline "All Inclusive", "Luxury") */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-xs); background: var(--soft-2); color: var(--navy); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.tag i { font-size: 13px; color: var(--muted); }
/* Green savings label (Priceline "$198 Package Savings") */
.save { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: var(--green-50); color: var(--green-700); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill);
  background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.875rem; font-weight: 500; line-height: 1.2;
}
.chip i { font-size: 15px; color: var(--muted); }
a.chip:hover, .chip--link:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue-700); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px;
  border-radius: var(--r-pill); background: #fff; color: var(--navy); font-size: 0.875rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.pill:hover { box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.pill[aria-selected="true"], .pill[aria-pressed="true"], .pill[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: none; }
.pill i { font-size: 16px; }

/* Score badge (orange, Priceline style) */
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.rating__score {
  display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 6px;
  border-radius: var(--r-xs); background: var(--orange); color: #fff;
  font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.rating__score--lg { min-width: 48px; height: 34px; font-size: 1.05rem; border-radius: var(--r-sm); }
.stars { display: inline-flex; gap: 1px; color: var(--star); font-size: 14px; }
.stars .ph-fill { display: block; }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(11,31,68,.12); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.field__error { font-size: 0.8125rem; color: var(--red); font-weight: 600; }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--subtle); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.input[aria-invalid="true"] { border-color: var(--red); }

.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 38px 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 0.9375rem; color: var(--navy); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

.check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 0.9375rem; color: var(--text); border-radius: 8px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; background: #fff; transition: background-color var(--t-fast), border-color var(--t-fast); }
.check__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease); }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.check--radio .check__box { border-radius: 50%; }
.check--radio .check__box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.check--radio input:checked + .check__box::after { transform: scale(1); }
.check__label { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.check__count { color: var(--subtle); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
/* Option with no results: muted text (5.3:1 on white, WCAG AA) and a pale box instead of fading the whole row */
.check.is-empty { color: var(--muted); }
.check.is-empty .check__box { border-color: var(--line); background: var(--soft); }
.check.is-empty .check__count { color: var(--muted); }
.check.is-empty .check__icon { opacity: .5; }
.check:hover .check__box { border-color: var(--blue); }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft-2); }
.seg button, .seg a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 9px; font-weight: 600; font-size: 0.875rem; color: var(--muted); white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.seg button:hover, .seg a:hover { color: var(--navy); }
.seg [aria-selected="true"], .seg [aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11,31,68,.12); }

/* ---------- Announcement bar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 0.875rem; font-weight: 500; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px 40px; position: relative; text-align: center; }
.topbar i { color: var(--yellow); font-size: 1.1rem; }
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: #fff; text-decoration-thickness: 2px; }
.topbar__close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: rgba(255,255,255,.8); border-radius: 8px; }
.topbar__close:hover { color: #fff; background: rgba(255,255,255,.14); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); flex: none; }
.logo:hover { color: var(--navy); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.logo__word b { font-weight: 800; color: var(--navy); }
.logo__word span { color: var(--blue); }
.logo__word small { font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 1px; }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__item { position: relative; }
.nav__item--mega { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--navy); font-weight: 500; font-size: 0.9375rem; white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--blue); background: var(--blue-50); }
.nav__link .ph-caret-down { font-size: 12px; color: var(--muted); transition: transform var(--t-med) var(--ease); }
.nav__link[aria-expanded="true"] .ph-caret-down { transform: rotate(180deg); color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav__pill { display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--green-50); color: var(--green-700); font-size: 12px; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }

.mega {
  position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: var(--z-dropdown);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); border: 1px solid var(--line);
  padding: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 260px; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav__item.is-open > .mega, .nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__title { font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; }
.mega__title a { color: var(--navy); }
.mega__title a:hover { color: var(--blue); }
.mega__list { list-style: none; display: grid; gap: 1px; }
.mega__list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; margin-inline: -10px; border-radius: 8px; color: var(--text); font-size: 0.9375rem; }
.mega__list a:hover { background: var(--blue-50); color: var(--blue-700); }
.mega__list a span { color: var(--subtle); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.mega__promo { position: relative; border-radius: var(--r-md); overflow: hidden; color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mega__promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,68,0) 40%, rgba(11,31,68,.85)); z-index: 1; }
.mega__promo > *:not(img) { position: relative; z-index: 2; }
.mega__promo strong { font-size: 1.05rem; line-height: 1.25; }
.mega__promo span { font-size: 0.875rem; opacity: .92; margin-top: 4px; }
.mega__promo:hover { color: #fff; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; z-index: var(--z-dropdown);
  width: 300px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); border: 1px solid var(--line); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.dropdown--right { left: auto; right: -8px; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--navy); }
.dropdown a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown a i { font-size: 20px; color: var(--blue); flex: none; }
.dropdown a .flag { width: 20px; height: 14px; }
.dropdown a b { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.dropdown a small { display: block; color: var(--muted); font-size: 0.8125rem; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(11, 31, 68, .45); opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility 0s linear var(--t-med); }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(400px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 300ms var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary, .mnav > a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary i { transition: transform var(--t-med) var(--ease); color: var(--muted); }
.mnav details[open] summary i { transform: rotate(180deg); }
.mnav > a { border-bottom: 1px solid var(--line); }
.mnav__sub { padding: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.mnav__sub a { padding: 7px 0; color: var(--text); font-size: 0.9375rem; }
.mnav__sub strong { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); padding-top: 8px; font-weight: 600; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(11,31,68,.5); display: grid; align-items: start; justify-items: center; padding: 72px 16px 16px; opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility 0s linear var(--t-med); }
.search-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-overlay__box { width: min(680px, 100%); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-pop); overflow: hidden; }
.search-overlay__field { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.search-overlay__field .ph-magnifying-glass { font-size: 22px; color: var(--blue); }
.search-overlay__field input { flex: 1; min-height: 56px; border: 0; font-size: 1.0625rem; color: var(--navy); background: transparent; }
.search-overlay__field input:focus { outline: none; }
.search-overlay__results { max-height: 60vh; overflow-y: auto; padding: 10px; }
.search-overlay__label { padding: 8px 10px 4px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.sres { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--navy); }
.sres:hover, .sres:focus-visible { background: var(--blue-50); color: var(--navy); }
.sres img { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.sres__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); font-size: 20px; flex: none; }
.sres b { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.sres small { display: block; color: var(--muted); font-size: 0.8125rem; }
.sres__price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Page structure ---------- */
.section { margin-block: var(--section-gap); }
.section--tight { margin-block: 32px; }
/* Full-width tinted band; put a .container inside */
.band { background: var(--soft); padding-block: var(--section-gap); }
.band--blue { background: var(--blue-50); }
.band > .section:first-child { margin-top: 0; }
.band > .section:last-child { margin-bottom: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section__title { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem); }
.section__desc { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.section__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.section__more { display: flex; justify-content: center; margin-top: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }

.crumbs { padding: 16px 0 8px; font-size: 0.8125rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid var(--subtle); border-right: 1.5px solid var(--subtle); transform: rotate(45deg); margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 8px 0 20px; }
.page-head__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; font-weight: 800; }
.page-head__meta { margin-top: 6px; color: var(--muted); }

/* Horizontal scroller */
.rail { position: relative; }
/* scroll-padding matches the 2px focus-ring padding, so the snap position is the initial one (an off-by-2px snap
   scrolled the track on load and Chrome dropped the LCP entry); app.js asks for smooth scrolling itself. */
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; padding: 2px; margin: -2px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail--5 .rail__track { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
.rail--6 .rail__track { grid-auto-columns: calc((100% - 5 * 16px) / 6); }

/* ---------- Early-booking ladder (home panel, campaign landing, offer page, calculator) ---------- */
.ladder { margin-top: 22px; }
.ladder__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; }
.ladder__step { display: flex; flex-direction: column; text-align: center; min-width: 0; }
.ladder__head { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 62px; padding-bottom: 6px; }
.ladder__pct { font-size: 1.05rem; font-weight: 800; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.ladder__well { height: 88px; display: flex; align-items: flex-end; }
.ladder__bar { width: 100%; height: var(--h); border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.16); transform-origin: bottom; transform: scaleY(var(--s, 1)); transition: transform 700ms var(--ease); }
.ladder__date { margin-top: 8px; font-size: 0.8125rem; color: rgba(255,255,255,.75); white-space: nowrap; line-height: 1.25; }
.ladder__step.is-past .ladder__bar { background: rgba(255,255,255,.07); }
.ladder__step.is-past .ladder__pct, .ladder__step.is-past .ladder__date { color: rgba(255,255,255,.4); text-decoration: line-through; }
.ladder__step.is-now .ladder__bar { background: var(--yellow); }
.ladder__step.is-now .ladder__pct { color: #fff; font-size: 1.6rem; }
.ladder__step.is-now .ladder__date { color: #fff; font-weight: 700; }
.ladder__now { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 5px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; line-height: 1; }
.ladder__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.9375rem; color: rgba(255,255,255,.88); }
.ladder__foot i { color: var(--yellow); font-size: 20px; flex: none; }
.ladder__foot b { color: #fff; }
.ladder.is-armed .ladder__bar { --s: 0; }
.ladder--light .ladder__pct { color: var(--muted); }
.ladder--light .ladder__bar { background: var(--blue-100); }
.ladder--light .ladder__date { color: var(--muted); }
.ladder--light .ladder__step.is-now .ladder__bar { background: var(--blue); }
.ladder--light .ladder__step.is-now .ladder__pct, .ladder--light .ladder__step.is-now .ladder__date { color: var(--navy); }
.ladder--light .ladder__now { background: var(--blue); color: #fff; }
.ladder--light .ladder__step.is-past .ladder__bar { background: var(--soft-2); }
.ladder--light .ladder__step.is-past .ladder__pct, .ladder--light .ladder__step.is-past .ladder__date { color: var(--subtle); }
.ladder--light .ladder__foot { color: var(--text); }
.ladder--light .ladder__foot b { color: var(--navy); }
.ladder--light .ladder__foot i { color: var(--blue); }
.ladder--compact .ladder__steps { gap: 8px; }
.ladder--compact .ladder__well { height: 60px; }
.ladder--compact .ladder__head { min-height: 54px; }

/* ---------- Text blocks ---------- */
.prose { color: var(--text); font-size: 1rem; line-height: 1.75; max-width: 74ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--blue-50); color: var(--navy); border-radius: 0 10px 10px 0; }
.prose strong { color: var(--navy); }
.prose img { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--soft); color: var(--navy); }

.seo-text { border-top: 1px solid var(--line); padding-top: 32px; }
/* Collapsed only when app.js runs (it adds html.js); without JS the full text shows and the toggle hides */
.seo-text__body { position: relative; }
.js .seo-text__body { max-height: 200px; overflow: hidden; }
.js .seo-text__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.seo-text.is-open .seo-text__body { max-height: none; }
.seo-text.is-open .seo-text__body::after { display: none; }
html:not(.js) .seo-text__toggle { display: none; }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary i { flex: none; font-size: 18px; color: var(--blue); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--text); max-width: 76ch; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 24px; background: var(--soft); border-radius: var(--r-lg); }
.empty i { font-size: 40px; color: var(--blue); background: #fff; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; }
.empty h2, .empty h3 { font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 44ch; }

.pagination-wrap { margin-top: 24px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 600; font-size: 0.9375rem; box-shadow: inset 0 0 0 1px var(--line); }
.pager a:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.pager [aria-current] { background: var(--blue); color: #fff; box-shadow: none; }

/* ---------- Newsletter ---------- */
.newsletter { border-radius: var(--r-xl); padding: 40px 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--blue-50); }
.newsletter__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 26px; margin-bottom: 16px; }
.newsletter__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.18; }
.newsletter__text { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.nl-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.nl-form .btn { min-height: 50px; }
.nl-form__consent { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
.nl-form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.nl-form__msg { grid-column: 1 / -1; font-size: 0.875rem; font-weight: 600; }
.nl-form__msg:empty { display: none; }
.nl-form__msg.is-error { color: var(--red); }
.nl-form__msg.is-ok { color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-gap); background: var(--soft); border-top: 1px solid var(--line); color: var(--text); padding: 48px 0 0; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 24px; }
.footer-about { margin-top: 14px; max-width: 34ch; line-height: 1.6; color: var(--muted); font-size: 0.875rem; }
.footer-col h2, .footer-col h3 { color: var(--navy); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text); font-size: 0.875rem; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); font-size: 20px; }
.social a:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.disclosure { display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.disclosure i { color: var(--blue); font-size: 20px; flex: none; }
.footer-bottom { margin-top: 28px; padding: 18px 0 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.8125rem; color: var(--muted); }
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { color: var(--blue); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Who is behind the site: the group and the studio that built it (same as broshuri.net). */
.footer-credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 0 0 22px; font-size: 0.78rem; color: var(--muted); }
.footer-credits a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow-pop); font-size: 0.9375rem; pointer-events: auto; animation: toast-in 260ms var(--ease); }
.toast i { font-size: 20px; color: var(--yellow); flex: none; }
.toast__text { flex: 1; }
.toast button { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav__link { padding: 0 9px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .rail--5 .rail__track, .rail--6 .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
/* The menu must stay on one line down to 1081px: drop the carets (items still open on hover/click), then tighten. */
@media (max-width: 1250px) {
  .nav__link .ph-caret-down { display: none; }
}
@media (min-width: 1081px) and (max-width: 1130px) {
  .site-header__inner { gap: 16px; }
  .nav__link { padding: 0 7px; font-size: 0.875rem; }
}
@media (max-width: 1080px) {
  .nav, .header-actions .hide-md { display: none; }
  .burger { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
}
@media (max-width: 900px) {
  :root { --section-gap: 44px; }
  .newsletter { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail__track, .rail--5 .rail__track, .rail--6 .rail__track { grid-auto-columns: calc((100% - 16px) / 2.2); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-gap: 36px; --header-h: 64px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .panel { padding: 18px; }
  .newsletter { padding: 26px 20px; }
  .nl-form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .rail__track, .rail--5 .rail__track, .rail--6 .rail__track { grid-auto-columns: 78%; }
  .ladder__steps { gap: 6px; }
  .ladder__date { font-size: 0.6875rem; white-space: normal; }
  .ladder__step.is-now .ladder__pct { font-size: 1.3rem; }
  /* logo + three 44px buttons must fit 343px (375 minus gutters) */
  .site-header__inner { gap: 8px; }
  .header-actions { gap: 2px; }
  .header-actions .icon-btn--outline { box-shadow: none; }
  .logo { gap: 7px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__word { font-size: 1.05rem; }
}
@media (max-width: 360px) {
  .logo__word small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .topbar, .drawer, .drawer-backdrop, .search-overlay, .toasts, .skip-link, .newsletter { display: none !important; }
}
