/* ============================================================
   spain-hotels.net — DESIGN.md (cord.com maritime system)
   navy #0b3658 text · #4e9ad9 single accent · Figtree · 20-24px radii
   ============================================================ */

:root {
  /* Colors */
  --color-midnight-harbor: #0b3658;
  --color-signal-blue: #4e9ad9;
  --color-slate-channel: #486984;
  --color-pale-steel: #688dac;
  --color-sea-fog: #dde7ee;
  --color-ice-tint: #e6f1fa;
  --color-light-mist: #c8d8e4;
  --color-canvas-white: #ffffff;
  --color-active-teal: #42b3b1;

  /* Semantic */
  --text: var(--color-midnight-harbor);
  --text-secondary: var(--color-slate-channel);
  --text-tertiary: var(--color-pale-steel);
  --accent: var(--color-signal-blue);
  --border: var(--color-sea-fog);
  --wash: var(--color-ice-tint);
  --canvas: var(--color-canvas-white);

  /* Type */
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px;
  --s-24: 24px; --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-56: 56px;
  --s-64: 64px; --s-80: 80px;

  /* Radii */
  --r-badge: 5px;
  --r-chip: 8px;
  --r-card: 20px;
  --r-input: 24px;
  --r-button: 24px;
  --r-pill: 35px;

  /* Shadows (blue-tinted) */
  --shadow-xl: rgba(11, 54, 88, 0.08) 0px 12px 48px 0px;
  --shadow-xl-2: rgba(11, 54, 88, 0.08) 0px 4px 32px 0px;
  --shadow-md: rgba(11, 54, 88, 0.04) 0px 4px 12px 0px;

  --max-width: 1200px;
  --header-h: 68px;
}

/* ── Fonts (self-hosted Figtree) ── */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree.woff2') format('woff2');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.08px;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--text); font-weight: 800; margin: 0 0 var(--s-16); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.5vw, 32px); letter-spacing: -0.16px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.1px; }
p { margin: 0 0 var(--s-16); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--text); color: #fff; padding: var(--s-12) var(--s-16); border-radius: var(--r-button);
}
.skip-link:focus { left: var(--s-16); top: var(--s-16); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--s-24); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--s-24); }
.section { padding: var(--s-64) 0; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--s-8);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  padding: 12px 20px; border-radius: var(--r-button); border: 0;
  transition: box-shadow .15s ease, transform .05s ease;
}
.btn-primary:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--s-8);
  background: transparent; color: var(--text); font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-button); border: 0;
}
.btn-ghost:hover { background: var(--wash); text-decoration: none; }

/* ── Header / nav ── */
.nav {
  position: sticky; top: 0; z-index: 600; /* above map overlays (filters/controls at 500) so they never cover the nav on scroll */
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--s-24);
  height: var(--header-h); display: flex; align-items: center; gap: var(--s-24);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text);
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo__mark { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: var(--s-8); margin-left: auto; }
.nav-link {
  color: var(--text-secondary); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: var(--r-button);
}
.nav-link:hover { color: var(--text); background: var(--wash); text-decoration: none; }
.nav-link.active { color: var(--accent); }
.nav-sep { width: 1px; height: 20px; background: var(--border); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: var(--r-button);
}
.lang-btn:hover { background: var(--wash); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-chip);
  box-shadow: var(--shadow-xl-2); padding: 6px; min-width: 150px; display: none;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); font-size: 14px; font-weight: 500;
}
.lang-menu a:hover { background: var(--wash); text-decoration: none; }
.lang-menu a.active { color: var(--accent); font-weight: 700; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero / page head ── */
.page-head { padding: var(--s-48) 0 var(--s-24); }
.page-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0; margin-bottom: var(--s-8); }
.page-head p.lead { color: var(--text-secondary); font-size: 18px; max-width: 720px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-tertiary); margin-bottom: var(--s-16); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span[aria-hidden] { color: var(--color-light-mist); }

/* ── Map view (hotelist-style full-bleed stage) ── */
:root {
  --rate-top: #17864e;   /* Excellent 4.5+  */
  --rate-high: #3aa564;  /* Very good 4.0+  */
  --rate-mid: #e0912f;   /* Good 3.5+       */
  --rate-low: #6c88a0;   /* Fair / no score */
}
.map-stage {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h)); /* dvh: excludes mobile browser chrome */
  min-height: 520px;
  background: var(--wash);
}
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--wash); }
/* Region / city pages: interactive map inline (not full-viewport hero) */
.map-stage--inline { height: 560px; min-height: 420px; }
.section-tight { padding-bottom: var(--s-16); }
.leaflet-container { font: inherit; }

/* Floating control rail — always visible over the map */
.map-rail {
  position: absolute; z-index: 500; top: var(--s-16); left: var(--s-16);
  width: min(420px, calc(100% - 32px));
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(221,231,238,0.9); border-radius: var(--r-card);
  box-shadow: var(--shadow-xl); padding: var(--s-16);
}
.map-rail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); margin-bottom: var(--s-12); }
.map-rail-actions { display: flex; align-items: center; gap: var(--s-12); flex: none; }
.map-rail-title { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.map-rail-row { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; }
.map-rail-more { margin-top: var(--s-12); padding-top: var(--s-12); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-12); }
.map-rail-more[hidden] { display: none; }  /* class rule beats [hidden] on specificity — restore collapse */
.map-rail-block { display: flex; flex-direction: column; gap: var(--s-8); }

.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
select.filter-select, .filter-select {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-chip);
  padding: 8px 12px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23486984' d='M3 4.5 6 8l3-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.filter-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── Searchable select (location filter) ── */
.filter-group--loc { flex-direction: column; align-items: stretch; gap: 6px; flex: 1 1 240px; min-width: 200px; }
.ss-dual { display: flex; flex-direction: column; gap: 6px; }
.ss-dual[hidden], .ss[hidden] { display: none; }
.ss { position: relative; font-size: 14px; }
.ss-control {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 38px; cursor: text;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-chip); padding: 4px 30px 4px 10px;
}
.ss.is-open .ss-control, .ss-control:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.ss-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #486984; font-size: 10px; pointer-events: none; }
.ss-value { font-weight: 600; color: var(--text); }
.ss-input { flex: 1 1 60px; min-width: 60px; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text); padding: 3px 0; }
.ss-tag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--wash); border: 1px solid var(--accent);
  color: var(--accent); border-radius: var(--r-chip); padding: 2px 5px 2px 9px; font-size: 13px; font-weight: 700;
}
.ss-tag button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; padding: 0; cursor: pointer; }
.ss-menu {
  position: absolute; z-index: 1200; top: calc(100% + 4px); left: 0; right: 0; max-height: 264px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-xl); padding: 5px;
}
.ss-menu[hidden] { display: none; }
.ss-group { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); padding: 8px 9px 3px; }
.ss-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.ss-opt.is-hi, .ss-opt:hover { background: var(--wash); }
.ss-opt.is-sel { color: var(--accent); font-weight: 700; }
.ss-opt-sub { font-size: 12px; font-weight: 600; color: var(--text-secondary); flex: none; }
.ss-empty { padding: 10px; font-size: 13px; color: var(--text-secondary); }

.chip-row { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.chip {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-chip);
  padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--text);
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { background: var(--wash); }
.chip.active { background: var(--wash); border-color: var(--accent); color: var(--accent); }
.filter-count { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.btn-reset { align-self: flex-start; background: transparent; border: 0; color: var(--accent); font-weight: 700; font-size: 14px; padding: 6px 4px; border-radius: var(--r-button); }
.btn-reset:hover { text-decoration: underline; }

.btn-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text); color: #fff; border: 0; border-radius: var(--r-chip);
  padding: 8px 13px; font-size: 14px; font-weight: 700; transition: background .12s;
  white-space: nowrap;
}
.btn-more:hover { background: #0f4571; }
.btn-more.is-open { background: var(--accent); }
.btn-more svg { flex: none; }

/* Rating colour legend */
.map-legend {
  position: absolute; z-index: 500; left: var(--s-16); bottom: var(--s-16);
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border: 1px solid rgba(221,231,238,0.9); border-radius: var(--r-chip);
  box-shadow: var(--shadow-md); padding: 10px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100% - 32px);
}
.map-legend-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); margin-right: 2px; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.map-legend .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot-top { background: var(--rate-top); } .dot-high { background: var(--rate-high); }
.dot-mid { background: var(--rate-mid); } .dot-low { background: var(--rate-low); }

/* ── Custom hotelist-style rating pins (L.divIcon) ── */
.hpin-wrap { background: none; border: 0; }
.hpin {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 26px; padding: 0 9px; box-sizing: border-box;
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  border-radius: 13px; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(11,54,88,0.35);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.hpin::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #fff;
}
.hpin-top { background: var(--rate-top); }
.hpin-high { background: var(--rate-high); }
.hpin-mid { background: var(--rate-mid); }
.hpin-low { background: var(--rate-low); }
.hpin-price { font-weight: 800; }
.leaflet-marker-icon:hover .hpin, .hpin-wrap.is-selected .hpin {
  transform: scale(1.15); box-shadow: 0 4px 14px rgba(11,54,88,0.45);
}
.hpin-wrap.is-selected .hpin { border-color: var(--accent); z-index: 5; }

/* Rich hover tooltip */
.hpin-tt.leaflet-tooltip {
  background: #fff; color: var(--text); border: 0; border-radius: 12px;
  box-shadow: var(--shadow-xl); padding: 9px 12px; font-family: inherit;
}
.hpin-tt.leaflet-tooltip-top::before { border-top-color: #fff; }
.hpin-tt .tt-name { display: block; font-size: 14px; font-weight: 800; margin-bottom: 3px; max-width: 220px; }
.hpin-tt .tt-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hpin-tt .tt-stars { color: #e8b53a; letter-spacing: 0.5px; }
.hpin-tt .tt-price { color: var(--text-secondary); font-weight: 700; }
.hpin-tt .tt-rating { color: #fff; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 2px 6px; }
.tt-top { background: var(--rate-top); } .tt-high { background: var(--rate-high); }
.tt-mid { background: var(--rate-mid); } .tt-low { background: var(--rate-low); }

/* cluster color to brand */
.marker-cluster div { background: rgba(11,54,88,0.9); color: #fff; font-weight: 800; }
.marker-cluster { background: rgba(78,154,217,0.35); }
.leaflet-popup-content-wrapper { border-radius: var(--r-card); box-shadow: var(--shadow-xl); }
.leaflet-popup-content { margin: 0; }

/* ── Hotel modal / popup card ── */
.hotel-modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,54,88,0.45); z-index: 700;
  display: none; align-items: center; justify-content: center; padding: var(--s-24);
}
.hotel-modal-backdrop.open { display: flex; }
.hotel-modal {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-xl);
  max-width: 440px; width: 100%; max-height: 90vh; overflow: auto; position: relative;
}
.hotel-modal img.hotel-photo { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-card) var(--r-card) 0 0; }
.hotel-modal-body { padding: var(--s-20); }
.hotel-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.9); color: var(--text); font-size: 20px; line-height: 1;
  box-shadow: var(--shadow-md);
}
.hotel-name { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.hotel-meta { color: var(--text-secondary); font-size: 14px; margin-bottom: var(--s-12); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stars { color: #e8b53a; letter-spacing: 1px; }
.price-band { color: var(--text-secondary); font-weight: 700; }
.rating-pill {
  background: var(--rate-low); color: #fff; font-weight: 800; font-size: 13px;
  border-radius: var(--r-badge); padding: 3px 8px;
}
.rating-pill.rating-top { background: var(--rate-top); }
.rating-pill.rating-high { background: var(--rate-high); }
.rating-pill.rating-mid { background: var(--rate-mid); }
.rating-pill.rating-low { background: var(--rate-low); }
.hotel-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: var(--s-16); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-16); }
.badge {
  background: var(--wash); color: var(--text-secondary); font-size: 12px; font-weight: 600;
  border-radius: var(--r-badge); padding: 4px 9px;
}
.modal-actions { display: flex; align-items: center; gap: var(--s-16); }
.modal-actions .btn-primary { flex: 1; justify-content: center; }
.link-details { color: var(--text-secondary); font-weight: 600; font-size: 14px; }

/* ── Cards grid (city / blog) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.card {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl-2); }
.card a.card-link { color: inherit; }
.card a.card-link:hover { text-decoration: none; }
.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: var(--s-20); display: flex; flex-direction: column; gap: var(--s-8); flex: 1; }
.card-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.card-meta { font-size: 14px; color: var(--text-secondary); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: var(--s-8); }

/* ── Hotel detail page ── */
.hotel-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-32); align-items: start; }
.hotel-hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-card); }
.detail-map { height: 320px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); }
.amenities-list { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; padding: 0; margin: 0; }
.info-panel { background: var(--wash); border-radius: var(--r-card); padding: var(--s-24); }

/* ── Amenity icon grid (hotel page) ── */
.amenity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-12); list-style: none; padding: 0; margin: 0 0 var(--s-16);
}
.amenity-item { display: flex; align-items: center; gap: var(--s-8); font-size: 14px; color: var(--text-secondary); }
.amenity-icon { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* ── Amenity filter chips + "more" badge ── */
.filter-label-inline { margin-right: var(--s-4); }
.chip.chip-sm { padding: 5px 11px; font-size: 13px; }
.badge.badge-more { background: transparent; color: var(--text-tertiary); }
.map-intro { max-width: 760px; margin-bottom: var(--s-24); }

/* ── Blog ── */
.article { max-width: 760px; margin: 0 auto; }
.article-body { font-size: 17px; line-height: 1.7; color: var(--text); }
.article-body h2 { margin-top: var(--s-48); }
.article-body h3 { margin-top: var(--s-32); }
.article-body img { border-radius: var(--r-card); margin: var(--s-24) 0; }
.article-body a { text-decoration: underline; text-decoration-color: var(--border); }
.article-body table { width: 100%; border-collapse: collapse; margin: var(--s-24) 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--wash); }
.article-meta { color: var(--text-secondary); font-size: 14px; margin-bottom: var(--s-24); }
.author-box { display: flex; gap: var(--s-16); align-items: center; background: var(--wash); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-20); margin: var(--s-48) 0; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.author-box:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(11,54,88,.10); text-decoration: none; }
.author-box__img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-box__role { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.author-box__cta { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 8px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }

/* ── Dark CTA banner ── */
.cta-banner { background: var(--color-midnight-harbor); color: #fff; padding: var(--s-64) 0; margin-top: var(--s-64); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--border); font-size: 18px; }

/* ── Static / legal prose ── */
.prose p { color: var(--text-secondary); font-size: 17px; line-height: 1.7; max-width: 720px; }

/* ── Footer ── */
.footer { background: var(--color-midnight-harbor); color: #fff; padding: var(--s-56) 0 var(--s-32); margin-top: var(--s-64); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-32); }
.footer .nav-logo { color: #fff; }
.footer-desc { color: var(--border); font-size: 14px; max-width: 320px; margin-top: var(--s-12); }
.footer-heading { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 var(--s-12); }
.footer-links { display: flex; flex-direction: column; gap: var(--s-8); }
.footer-links a { color: var(--color-light-mist); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--s-40); padding-top: var(--s-24); color: var(--border); font-size: 13px; display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: space-between; }
.footer-affiliate { color: var(--pale-steel); max-width: 640px; }

/* ── Cookie banner ── */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-xl-2); transform: translateY(110%); transition: transform .25s ease; }
.cookie-banner.is-visible { transform: none; }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--s-16) var(--s-24); display: flex; align-items: center; gap: var(--s-16); flex-wrap: wrap; }
.cookie-text { color: var(--text-secondary); font-size: 14px; margin: 0; flex: 1; }
.cookie-banner .btn-primary { padding: 8px 18px; }

/* ── Hotel card actions (city / region grids) ── */
.card-photo-link { display: block; }
.card-title-link { color: inherit; }
.card-title-link:hover { text-decoration: underline; }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding-top: var(--s-8); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.card-meta .rating-pill { margin-left: 4px; }

/* ── Listing map (region / city pages) ── */
.listing-map { height: 380px; margin-top: var(--s-24); }

/* ── Region page: per-city sections ── */
.region-city-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: var(--s-32) 0 var(--s-16); font-size: 22px; }
.region-city-h a { color: var(--text); }
.region-city-count { font-size: 15px; font-weight: 500; color: var(--text-secondary); }

/* ── 404 ── */
.error-page { text-align: center; padding: var(--s-80) 0; }
.error-page .code { font-size: 72px; font-weight: 800; color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hotel-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border); padding: var(--s-12); gap: 4px;
    box-shadow: var(--shadow-xl-2); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px; }
  .nav-sep { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-top: 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-stage {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: 460px;
  }
  .map-stage--inline { height: 70vh; min-height: 380px; }
  /* Compact top bar — leaves the map fully visible, no tall covering panel */
  .map-rail {
    top: var(--s-8); left: var(--s-8); right: var(--s-8); width: auto;
    max-height: calc(100% - 16px); overflow: visible; padding: 10px 12px;
    display: flex; flex-direction: column;
  }
  .map-rail-head { margin-bottom: 10px; flex-wrap: wrap; row-gap: 8px; }
  .map-rail-title { font-size: 15px; }
  /* Primary filters wrap (no horizontal scroll) — every control stays visible */
  .map-rail-primary { flex-wrap: wrap; gap: 8px; }
  .map-rail-primary .filter-group { flex: 1 1 auto; min-width: 0; }
  .map-rail-primary .filter-group:first-child { flex-basis: 100%; }  /* City on its own line */
  .map-rail-primary .filter-select { flex: 1 1 auto; min-width: 0; padding-top: 9px; padding-bottom: 9px; }
  .btn-more { padding: 9px 12px; }   /* labelled + always visible in the header */
  .map-rail-more { max-height: 42vh; overflow-y: auto; }
  .map-legend { display: none; }
  /* Touch devices pinch-to-zoom; hide zoom buttons so they don't collide with the rail/banner */
  .map-stage .leaflet-top.leaflet-right { display: none; }
  .hotel-modal { max-width: 100%; align-self: flex-end; border-radius: var(--r-card) var(--r-card) 0 0; max-height: 88vh; }
  .hotel-modal-backdrop { align-items: flex-end; padding: 0; }
}
