/* Rehabitaya app screens: the landing page's tokens (system.css :root) with an app layout.
   Never main > section here: system.css gives those screen heights. */
:root {
  --p-bg: #f7f6f2; --p-surface: #efede6; --p-ink: #1b1d1f; --p-muted: #5d5f61;
  --p-accent: #0284c7; --p-accent-ink: #ffffff; --p-action: #0369a1; --p-action-ink: #ffffff;
  --p-inv-bg: #1b1d1f; --p-inv-surface: #28292b; --p-inv-ink: #f7f6f2; --p-inv-muted: #a3a3a1;
  --p-inv-accent: #38bdf8; --p-inv-accent-ink: #0b1a24; --p-inv-action: #38bdf8; --p-inv-action-ink: #0b1a24;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display-weight: 500; --display-tracking: -0.035em; --display-tracking-xl: -0.04em;
  --card-bg: #ffffff;
  /* one score scale everywhere: good / middling / poor (bars and badges) */
  --good: #16a34a; --ok: #e5a50a; --bad: #dc4a3d;
  --good-ink: #15803d; --ok-ink: #a16207; --bad-ink: #b42318;
  --u-bg: #ffffff; --u-border: rgba(27,29,31,.12); --u-line: rgba(27,29,31,.08); --u-fill: #f4f3ef; --u-fill-2: #ebe9e3; --u-fill-3: #dcdad3;
  --u-ink: #1b1d1f; --u-muted: #5d5f61; --u-text-2: #33363a; --u-tint: #e3f1f9; --u-r: 12px; --u-r2: 8px;
}
body.app-page { background: var(--bg); }
.nav__logo img { width: 28px; height: 28px; border-radius: 7px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 12px; background: var(--bg); z-index: 20; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 16px; height: 16px; flex: none; }
.ic--h { width: 22px; height: 22px; color: #0369a1; }
.app-main { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-9); min-height: 100vh; }
.app-main .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
/* one heading style across app and landing: the display face at 500 with tight tracking */
.app-page h1, .app-page h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head h1 { font-size: clamp(32px, 2.4vw + 14px, 48px); line-height: 1.06; margin: 0; max-width: 20ch; }
.page-head p { margin: var(--s-3) 0 0; color: var(--muted); font-size: 17px; max-width: 60ch; }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #f6ead2; color: #6e4300; white-space: nowrap; }
.demo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-pill--on { background: rgba(255,255,255,.18); color: #fff; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: 500 15px var(--font-text); color: var(--action); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* score badge: coloured by value, white text */
.score { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; font: 600 14px/1 var(--font-text); font-variant-numeric: tabular-nums; color: #fff; background: var(--good-ink); }
.score--ok { background: var(--ok-ink); } .score--bad { background: var(--bad-ink); }
.score--lg { min-width: 64px; height: 48px; font-size: 22px; border-radius: 12px; }

/* controls */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: var(--s-3); }
.toolbar .sp { flex: 1 1 auto; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-bg); min-width: min(380px, 100%); flex: 0 1 380px; color: var(--muted); }
.searchbox:focus-within { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3,105,161,.15); }
.searchbox input { border: 0; outline: 0; background: transparent; font: 16px var(--font-text); color: var(--ink); width: 100%; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card-bg); color: var(--ink); font: 500 14px var(--font-text); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn:active { transform: scale(.97); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-btn--sm { height: 34px; padding: 0 12px; font-size: 13px; background: rgba(255,255,255,.95); }
.chip-btn .count { color: #0369a1; }
.select { height: 40px; padding: 0 32px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231b1d1f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; font: 500 14px var(--font-text); color: var(--ink); cursor: pointer; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 500 14px var(--font-text); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card-bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: var(--s-3) 0 var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.filters-row[hidden] { display: none; }
.range { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-bg); font-size: 14px; }
.range input { width: 120px; accent-color: #0369a1; }
.result-count { font-size: 14px; color: var(--muted); margin: 0 0 var(--s-3); }
.empty { padding: var(--s-8) 0; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; margin-bottom: 4px; }

/* the town grid (nomads.com): photo card, rank, internet top right, name centred, time and rent at the foot */
.town-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 1279px) { .town-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .town-grid { grid-template-columns: minmax(0, 1fr); } }
.tcard { position: relative; }
.tcard__link { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: #333;
  transition: transform .2s var(--ease, ease), box-shadow .2s; }
.tcard--sm .tcard__link { aspect-ratio: 4 / 3; }
.tcard__link:hover, .tcard__link:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }
.tcard__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .4s var(--ease, ease); }
.tcard__link:hover img { transform: scale(1.03); }
.tcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 28%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.72) 100%); }
.tcard__rank { position: absolute; top: 14px; left: 16px; font: 600 15px var(--font-text); padding-bottom: 2px; border-bottom: 2px solid #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tcard__wifi { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.tcard__wifi .ic { width: 18px; height: 18px; }
.tcard__name { position: absolute; left: 12px; right: 12px; top: 50%; translate: 0 -50%; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.tcard__name b { display: block; font: 600 clamp(22px, 1.4vw + 8px, 28px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.tcard__name small { display: block; font-size: 15px; opacity: .92; margin-top: 4px; }
.tcard__time { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--font-text); }
.tcard__rent { position: absolute; right: 14px; bottom: 12px; text-align: right; }
.tcard__rent b { display: block; font: 600 17px var(--font-text); }
.tcard__rent small { display: block; font-size: 11.5px; opacity: .85; }
.tcard__hover { position: absolute; inset: 0; padding: 18px 18px 56px; background: rgba(20,22,24,.9); opacity: 0; transition: opacity .2s; display: grid; align-content: center; gap: 10px; }
.tcard__link:hover .tcard__hover, .tcard__link:focus-visible .tcard__hover { opacity: 1; }
.tcard__hhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.tcard__hhead b { font: 600 18px var(--font-display); }
@media (hover: none) { .tcard__hover { display: none; } }
.tcard__cmp { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.94); color: #1b1d1f; font: 500 13px var(--font-text); cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
.tcard:hover .tcard__cmp, .tcard__cmp:focus-visible, .tcard__cmp[aria-pressed="true"] { opacity: 1; }
.tcard__cmp[aria-pressed="true"] { background: #0369a1; color: #fff; }
@media (hover: none) { .tcard__cmp { opacity: 1; bottom: auto; top: 48px; } }
/* mini score bars (hover card, listing town strip) */
.mbar { display: grid; grid-template-columns: 18px 104px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; }
.mbar__track { height: 14px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.mbar__fill { display: block; height: 100%; width: calc(var(--v) * 20%); border-radius: 4px; background: var(--good); }
.mbar__fill--ok { background: var(--ok); } .mbar__fill--bad { background: var(--bad); }

/* the real map */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #e8ebe4; z-index: 0; }
.map-wrap--sm { height: 320px; } .map-wrap--mini { height: 220px; border-radius: 10px; } .map-wrap--full { height: calc(100vh - var(--nav) - 200px); min-height: 520px; }
.map-fallback { padding: 24px; color: var(--muted); }
.mpin { display: inline-flex; align-items: center; gap: 6px; transform: translate(-50%, -100%); white-space: nowrap; height: 28px; padding: 0 10px; border-radius: 999px; background: #fff; color: #1b1d1f;
  font: 600 13px var(--font-text); box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 6px 14px -6px rgba(0,0,0,.35); cursor: pointer; position: relative; }
.mpin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.mpin .score { min-width: 0; height: 20px; padding: 0 6px; font-size: 12px; border-radius: 6px; }
.mpin.is-on, .mpin:hover { background: #0369a1; color: #fff; z-index: 1000; }
.mpin--hub { background: #1b1d1f; color: #fff; cursor: default; }
.leaflet-marker-icon { background: none; border: 0; }
.map-wrap .leaflet-tile-pane { filter: saturate(.55) contrast(.92) brightness(1.04); }
.mdot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #0369a1; border: 2px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mdot.is-on { background: #b42318; }
.mpin--hub.mpin--hub { font-size: 12px; height: 24px; }
.map-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-5); }
.map-split .map-wrap { height: 640px; }
.map-side { display: grid; gap: 0; align-content: start; max-height: 640px; overflow: auto; list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.map-side .rh-town { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.map-side .rh-town b a { color: inherit; text-decoration: none; } .map-side .rh-town b a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .map-split { grid-template-columns: minmax(0, 1fr); } .map-split .map-wrap { height: 440px; } }

/* compare tray and table */
.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.3); }
.cmp-tray[hidden] { display: none; }
.cmp-tray__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.cmp-tray__items { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cmp-tray__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 4px; border-radius: 999px; background: var(--surface); font: 500 14px var(--font-text); }
.cmp-tray__item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cmp-tray__item button { border: 0; background: none; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.cmp-tray__hint { font-size: 14px; color: var(--muted); }
.cmp-tray .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: middle; }
.cmp thead th { vertical-align: top; padding-top: 16px; }
.cmp tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; width: 220px; }
.cmp tbody th .ic { margin-right: 8px; vertical-align: -3px; }
.cmp td.is-best { font-weight: 600; background: #eef8f1; }
.cmp__head { display: grid; gap: 4px; color: inherit; text-decoration: none; margin-bottom: 10px; }
.cmp__head img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.cmp__head b { font: 500 20px var(--font-display); } .cmp__head small { color: var(--muted); }

/* pills: a score bar that carries its word (nomads.com city page) */
.pill { position: relative; display: block; height: 32px; border-radius: 8px; background: #ecebe6; overflow: hidden; }
.pill--sm { height: 26px; max-width: 160px; }
.pill__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: var(--good); border-radius: 8px; }
.pill__fill--ok { background: var(--ok); } .pill__fill--bad { background: var(--bad); }
.pill__t { position: relative; display: block; padding: 0 12px; font: 600 14px/32px var(--font-text); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill--sm .pill__t { line-height: 26px; font-size: 13px; }
.srow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.srow__k { display: inline-flex; align-items: center; gap: 10px; font: 500 15px var(--font-text); }
.srow__k .ic { width: 18px; height: 18px; color: var(--muted); }

/* the town page */
.wrap--wide { width: min(100% - 2 * var(--gut), 1280px); }
.thero { position: relative; margin: calc(-1 * var(--s-6)) calc(50% - 50vw) 0; padding: var(--s-6) max(var(--gut), calc(50vw - 640px)) var(--s-7); min-height: 440px;
  display: grid; grid-template-rows: auto 1fr auto; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6)), var(--bg) center / cover no-repeat; }
.crumbs--on { color: rgba(255,255,255,.85); }
.thero__c { align-self: center; text-align: center; display: grid; justify-items: center; gap: 12px; }
.thero__c h1 { font-size: clamp(44px, 4vw + 16px, 80px); line-height: 1; margin: 6px 0 0; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.thero__c p { margin: 0; font-size: 18px; opacity: .95; }
.thero__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.btn--glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); display: inline-flex; align-items: center; gap: 8px; }
.btn--glass:hover { background: rgba(255,255,255,.26); }
.btn--glass[aria-pressed="true"] { background: #fff; color: #1b1d1f; }
.thero__score { justify-self: end; display: flex; align-items: center; gap: 12px; }
.thero__score small { font-size: 13px; line-height: 1.35; opacity: .9; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 var(--s-6); scrollbar-width: none; background: var(--bg); position: sticky; top: var(--nav); z-index: 5; }
.tabs a { flex: none; padding: 14px 14px 12px; font: 500 15px var(--font-text); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); } .tabs a[aria-current] { color: var(--ink); border-color: #0369a1; }
.tsec { padding: var(--s-6) 0; scroll-margin-top: calc(var(--nav) + 60px); }
.tsec h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 1vw + 16px, 30px); margin: 0 0 var(--s-5); }
.tsec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tsec--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
@media (max-width: 899px) { .tsec--split { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.score-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s-8); }
@media (max-width: 899px) { .score-table { grid-template-columns: minmax(0, 1fr); } .srow { grid-template-columns: 170px minmax(0, 1fr); } }
.trip { display: grid; margin: 0; padding: 0; list-style: none; }
.trip li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.trip li small { display: block; color: var(--muted); font-size: 14px; }
.trip li > span:last-child { font-weight: 500; text-align: right; }
.trip li:last-child { border-bottom: 0; font-weight: 600; }
.compare { display: grid; gap: 12px; }
.compare__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 80px; align-items: center; gap: 12px; font-size: 15px; }
.compare__bar { height: 14px; border-radius: 7px; background: #0369a1; }
.compare__bar--mad { background: #b8b6ae; }
.compare__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.town-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .town-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* listing results (idealista): filters in a sidebar, wide horizontal cards */
.listing-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (max-width: 899px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } }
.filters { display: grid; gap: var(--s-5); }
.alert-box { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-md); background: #e3f1f9; text-align: center; }
.alert-box b { font-weight: 500; }
.alert-box .btn { justify-content: center; gap: 8px; }
.mini-map { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.mini-map.is-hidden { display: none; }
.mini-map .btn, .filters > .btn { justify-content: center; gap: 8px; width: 100%; }
.filters__form { display: grid; gap: var(--s-5); padding: var(--s-5); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.filters legend { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; padding: 0; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters select { width: 100%; height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font: 15px var(--font-text); color: var(--ink); }
.filters label.check { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; min-height: 28px; }
.filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: #0369a1; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { min-width: 44px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font: 500 14px var(--font-text); cursor: pointer; color: var(--ink); }
.pills button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.results { display: grid; gap: var(--s-4); min-width: 0; }
.results > h1 { font-size: clamp(26px, 1.2vw + 16px, 34px); line-height: 1.15; margin: 0; }
.op-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.op-tabs a { padding: 10px 0; font: 500 16px var(--font-text); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.op-tabs a[aria-selected="true"] { color: #0369a1; border-color: #0369a1; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sorter { display: inline-flex; align-items: center; flex-wrap: wrap; }
.sorter span { margin-right: 10px; color: var(--muted); font-size: 15px; }
.sorter button { height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); background: #fff; font: 500 14px var(--font-text); color: var(--ink); cursor: pointer; margin-left: -1px; }
.sorter button:first-of-type { border-radius: 8px 0 0 8px; } .sorter button:last-of-type { border-radius: 0 8px 8px 0; }
.sorter button[aria-pressed="true"] { border-color: #0369a1; color: #0369a1; position: relative; z-index: 1; background: #f1f8fc; }
.results__list { display: grid; gap: var(--s-4); }
.lcard { display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.lcard:hover { box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); transform: translateY(-2px); }
.lcard.is-on { outline: 2px solid #0369a1; }
@media (max-width: 1100px) { .lcard { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 639px) { .lcard { grid-template-columns: minmax(0, 1fr); } }
.lcard__media { position: relative; min-height: 240px; background: #ddd; overflow: hidden; }
.lcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .4s var(--ease, ease); }
.lcard:hover .lcard__media img { transform: scale(1.02); }
.lcard__nav { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.lcard__nav--prev { left: 8px; } .lcard__nav--next { right: 8px; }
.lcard:hover .lcard__nav, .lcard__nav:focus-visible { opacity: 1; }
@media (hover: none) { .lcard__nav { opacity: 1; } }
.lcard__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; }
.lcard__count .ic { width: 14px; height: 14px; }
.lcard__body { padding: var(--s-5) var(--s-6); display: grid; gap: 8px; align-content: start; }
.lcard__title { font: 500 18px/1.35 var(--font-text); color: #0369a1; text-decoration: none; }
.lcard__title:hover { text-decoration: underline; }
.lcard__price { font: 700 26px/1.1 var(--font-text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lcard__price small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.lcard__specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 16px; color: var(--ink); }
.lcard__ago { color: #b42318; }
.lcard__desc { font-size: 15px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lcard__foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.lcard__contact { display: inline-flex; align-items: center; gap: 8px; font: 500 16px var(--font-text); color: #0369a1; text-decoration: none; }
.lcard__contact:hover { text-decoration: underline; }
.lcard__adv { font-size: 14px; color: var(--muted); margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; }
.lcard__fav[aria-pressed="true"] { color: #d6455d; } .lcard__fav[aria-pressed="true"] .ic { fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface); color: var(--ink); }
.chip .ic { width: 14px; height: 14px; }
.chip--good { background: #e3f4e8; color: var(--good-ink); } .chip--bad { background: #fbe7e4; color: var(--bad-ink); }
.map-card { margin-top: var(--s-4); display: grid; gap: var(--s-4); }

/* the listing page (idealista) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-8); align-items: start; }
@media (max-width: 1023px) { .detail { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.detail h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.25; margin: var(--s-8) 0 var(--s-4); }
.vgallery { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 460px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-5); }
.vgallery button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: #ddd; }
.vgallery img { width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .4s var(--ease, ease); }
.vgallery button:hover img { transform: scale(1.02); }
.vgallery__thumbs { display: grid; grid-auto-rows: 1fr; gap: 6px; }
.vgallery__bar { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
@media (max-width: 639px) { .vgallery { grid-template-columns: minmax(0, 1fr); height: 300px; } .vgallery__thumbs { display: none; } }
.vtitle { font-size: clamp(28px, 1.6vw + 14px, 38px); line-height: 1.12; margin: 16px 0 6px; }
.vloc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 16px; }
.vloc .link { display: inline-flex; align-items: center; gap: 4px; }
.vprice { font: 700 34px/1.1 var(--font-text); margin: 16px 0 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.vprice small { font-size: 18px; font-weight: 400; color: var(--muted); }
.vprice span { font-size: 15px; font-weight: 500; color: var(--muted); }
.vspecs { display: flex; flex-wrap: wrap; margin: 0; font-size: 17px; }
.vspecs span { padding: 0 14px; border-left: 1px solid var(--line-strong); } .vspecs span:first-child { padding-left: 0; border: 0; }
.vactions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.vactions .lcard__fav[aria-pressed="true"] { background: #fdeef1; border-color: #d6455d; }
.vtext { font-size: 17px; line-height: 1.7; max-width: 66ch; margin: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 639px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }
.fact { position: relative; padding: var(--s-5) var(--s-5) var(--s-5) 64px; border-radius: var(--r-md); background: var(--card-bg); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.ic--fact { position: absolute; left: 20px; top: 22px; width: 28px; height: 28px; color: #0369a1; }
.fact h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; }
.fact strong { font-size: 19px; font-weight: 500; line-height: 1.3; }
.fact p { margin: 0; font-size: 15px; color: var(--ink); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.feature-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.feature-list li span:first-child { color: var(--muted); } .feature-list li span:last-child { font-weight: 500; text-align: right; }
@media (max-width: 639px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
.detail .vloc + .map-wrap { margin-top: 12px; }
.town-strip { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; border-radius: var(--r-md); background: #1b1d1f; color: #fff; text-decoration: none; }
.town-strip img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; }
.town-strip b { display: block; font: 500 20px var(--font-display); } .town-strip small { display: block; opacity: .8; font-size: 14px; margin: 2px 0 10px; }
.mbars { display: grid; gap: 6px; max-width: 420px; }
.town-strip .mbar { font-size: 13px; grid-template-columns: 16px 96px minmax(0,1fr); } .town-strip .mbar__track { height: 10px; }
@media (max-width: 639px) { .town-strip { grid-template-columns: minmax(0, 1fr); } .town-strip img { width: 100%; height: 160px; } }
.aside-card { position: sticky; top: calc(var(--nav) + 16px); padding: var(--s-6); border-radius: var(--r-lg); background: var(--card-bg); border: 1px solid var(--line); border-top: 4px solid #0369a1; display: grid; gap: var(--s-4); }
.aside-card h2 { margin: 0; font-size: 22px; text-align: center; justify-content: center; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card__meta { display: grid; gap: 12px; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.aside-card__meta dl { margin: 0; display: grid; gap: 10px; }
.aside-card__meta dt { font-size: 13px; color: var(--muted); } .aside-card__meta dd { margin: 0; font-size: 15px; }
.mini-list { display: grid; gap: var(--s-4); }
.lightbox { padding: 0; border: 0; border-radius: 14px; max-width: min(1100px, 94vw); background: #111; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lightbox__x { position: absolute; top: 10px; right: 10px; }
.lightbox__nav { display: flex; justify-content: space-between; align-items: center; padding: 12px; gap: 12px; }

/* forms */
.form-grid { display: grid; gap: var(--s-4); }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form-grid :is(input, select, textarea) { height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font: 16px var(--font-text); color: var(--ink); }
.form-grid textarea { height: 112px; padding: 12px; resize: vertical; }
.form-grid :is(input, select, textarea):focus { outline: 2px solid #0369a1; outline-offset: 1px; }
.form-grid [aria-invalid="true"] { border-color: var(--bad-ink); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-done { padding: var(--s-4); border-radius: var(--r-md); background: #e3f4e8; color: var(--good-ink); font-size: 15px; }
.section-block + .section-block { margin-top: var(--s-9); }
.section-block > h2 { font-size: clamp(26px, 1.2vw + 16px, 34px); margin: 0 0 var(--s-5); }

/* publish flow (anunciar) */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 899px) { .audiences { grid-template-columns: minmax(0, 1fr); } }
.aud { padding: var(--s-6); border-radius: var(--r-lg); background: var(--card-bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-3); }
.aud h3 { margin: 0; font-size: 22px; font-weight: 500; }
.aud p { margin: 0; color: var(--ink); }

.aud ul { margin: 0 0 var(--s-4); padding: 0; list-style: none; display: grid; gap: 8px; }
.aud ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.aud ul li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #e3f1f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-4.9' fill='none' stroke='%230369a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.aud .btn { margin-top: auto; justify-content: center; }
.publish { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-7); align-items: start; }
@media (max-width: 1023px) { .publish { grid-template-columns: minmax(0, 1fr); } }
.steps-nav { display: flex; gap: 6px; margin-bottom: var(--s-5); flex-wrap: wrap; counter-reset: st; }
.steps-nav button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-bg); font: 500 14px var(--font-text); color: var(--muted); cursor: pointer; }
.steps-nav button::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); font-size: 12px; }
.steps-nav button[aria-current="step"] { color: var(--ink); border-color: var(--ink); }
.steps-nav button[aria-current="step"]::before { background: #0369a1; color: #fff; }
.steps-nav button.is-done::before { content: "✓"; background: #e3f4e8; color: var(--good-ink); }
.step-panel { padding: var(--s-6); border-radius: var(--r-lg); background: var(--card-bg); border: 1px solid var(--line); }
.step h3 { margin: 0 0 var(--s-4); font-size: 22px; font-weight: 500; }
.step-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: var(--s-6); }
.step-actions #prev { margin-right: auto; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 639px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice b { font-weight: 500; font-size: 17px; } .choice small { color: var(--muted); font-size: 14px; }
.choice:has(input:checked) { border-color: #0369a1; box-shadow: inset 0 0 0 1px #0369a1; background: #f1f8fc; }
.choice:has(input:focus-visible) { outline: 2px solid #0369a1; outline-offset: 2px; }
.drop { display: grid; place-items: center; gap: 6px; width: 100%; padding: var(--s-7); border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg); text-align: center; color: var(--muted); cursor: pointer; font: inherit; }
.drop b { color: var(--ink); font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.preview-col { position: sticky; top: calc(var(--nav) + 16px); display: grid; gap: var(--s-3); }
.preview-col .t-label { color: var(--muted); }
.preview-col .lcard { grid-template-columns: minmax(0, 1fr); }
.preview-col .lcard__media { min-height: 240px; }

/* the small towns list used by the map side panel */
.rh-towns .score { min-width: 36px; height: 26px; font-size: 13px; }

.app-foot { border-top: 1px solid var(--line); padding: var(--s-6) 0; font-size: 14px; color: var(--muted); }
.app-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-foot a { color: inherit; } .app-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
body:has(.cmp-tray:not([hidden])) .app-foot { padding-bottom: 96px; }
.prose { max-width: 70ch; } .prose h1 { font-size: 40px; line-height: 1.1; } .prose h2 { font-size: 22px; margin-top: var(--s-7); } .prose p, .prose li { font-size: 17px; line-height: 1.65; }

.cmp tbody th { display: flex; align-items: center; gap: 8px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); min-height: 56px; }
.cmp tbody th .ic { margin: 0; }
.srow__k .ic, .chip .ic, .lcard__count .ic, .tcard__time .ic, .tcard__wifi .ic { display: inline-block; }

/* round 3 */
.tcard__shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 25%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.75) 100%); }
.tcard__top { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 10px; }
.tcard__top .tcard__rank { position: static; }
.tcard__top .score { height: 26px; min-width: 38px; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pill__fill--ok + .pill__t { color: #2b1d00; text-shadow: none; }
.pill:has(.pill__fill--ok) .pill__t { color: #2b1d00; text-shadow: none; }
.srow__v { font-size: 15px; font-weight: 500; }
.thero { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 35%, rgba(0,0,0,.55)), var(--bg) center / cover no-repeat; }
.thero__c h1 { display: inline-flex; align-items: center; gap: 18px; }
.thero__c h1 .score { text-shadow: none; letter-spacing: 0; font-family: var(--font-text); }
.thero__meta { justify-self: center; margin: 0; font-size: 14px; opacity: .9; }
.btn--glass { background: rgba(15,17,19,.55); border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.mpin__n { display: none; }
.mpin.is-on .mpin__n, .mpin:hover .mpin__n { display: inline; }
.mpin:not(.is-on):not(:hover) { padding: 0 4px; }
.lcard__ago { color: var(--muted); }
.cmp__pick { width: 100%; margin-bottom: 12px; }
.cmp__head img { height: 150px; aspect-ratio: auto; }
.map-view { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-4); }
.map-view .map-wrap--full { height: 640px; min-height: 0; }
.map-view__list { display: grid; gap: 8px; align-content: start; max-height: 640px; overflow: auto; }
.mlist { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.mlist:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mlist.is-on { border-color: #0369a1; box-shadow: inset 0 0 0 1px #0369a1; }
.mlist img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.mlist b { display: block; font-size: 17px; } .mlist span span { display: block; font-size: 14px; } .mlist small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .map-view { grid-template-columns: minmax(0, 1fr); } .map-view__list { max-height: none; } }
.filters select { border-radius: 10px; appearance: none; padding-right: 32px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231b1d1f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.vgallery__thumbs { grid-template-rows: 1fr 1fr; }
.vgallery img.crop--a { transform: scale(1.7); transform-origin: 30% 65%; }
.vgallery button:hover img.crop--a { transform: scale(1.74); }
.thero { background-size: cover; background-position: center; }
.tabs { flex-wrap: nowrap; }
.chip--town { text-decoration: none; padding-right: 4px; } .chip--town .score { height: 20px; min-width: 0; padding: 0 6px; font-size: 12px; border-radius: 999px; }
.filters .pills { flex-wrap: nowrap; } .filters .pills button { flex: 1 1 auto; padding: 0 8px; min-width: 0; }
.vgallery__bar { flex-wrap: wrap; }
.form-grid label { font-size: 14px; }
.crumbs { font-size: 15px; }
.aside-card__meta dt { font-size: 14px; }
.vbar { display: none; }
@media (max-width: 639px) {
  .vbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .vbar b { display: block; font-size: 18px; } .vbar b small { font-size: 13px; font-weight: 400; } .vbar span > small { color: var(--muted); font-size: 13px; }
  body:has(.vbar) .app-foot { padding-bottom: 96px; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tabs a { padding: 12px 10px 10px; font-size: 14px; }
  .thero__c h1 { font-size: 44px; gap: 12px; }
}
.app-foot { background: var(--surface); }
.app-foot .wrap { display: grid; gap: var(--s-6); }
.app-foot__cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-6); }
.app-foot__cols > div { display: grid; gap: 8px; align-content: start; }
.app-foot__cols p { margin: 8px 0 0; color: var(--ink); font-size: 15px; max-width: 32ch; }
.app-foot__cols h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.app-foot__cols a:not(.nav__logo) { color: var(--ink); text-decoration: none; font-size: 15px; } .app-foot__cols a:hover { text-decoration: underline; }
.app-foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (max-width: 899px) { .app-foot__cols { grid-template-columns: 1fr 1fr; } .app-foot__cols > div:first-child { grid-column: 1 / -1; } }

/* round 4 */
.app-foot .wrap { justify-content: stretch; }
.app-foot__cols, .app-foot__legal { width: 100%; }
.app-foot .nav__logo { color: var(--ink); }
.cmp { table-layout: fixed; }
.cmp col, .cmp thead th:first-child { width: 220px; }
.cmp tbody th { display: table-cell; box-shadow: none; border-bottom: 1px solid var(--line); min-height: 0; }
.cmp tbody th .ic { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.cmp td.is-best { background: #dff3e6; color: #0f5f2f; }
.cmp td.is-best::before { content: "✓ "; }
.map-view .map-wrap--full, .map-view__list { height: min(760px, calc(100vh - var(--nav) - 48px)); max-height: none; }
.map-view { position: sticky; top: calc(var(--nav) + 16px); }
.mlist small .score { height: 18px; min-width: 0; padding: 0 5px; font-size: 11.5px; border-radius: 5px; vertical-align: 1px; }
.mpin { transition: none; }
.range input { width: 96px; }
.form-grid select { appearance: none; padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231b1d1f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.tcard__rank { border-bottom: 0; padding: 0; font-size: 14px; opacity: .9; }
.tcard__rank::before { content: "#"; opacity: .75; }
.tcard__rent small { font-size: 12.5px; }
.tcard__shade { background: radial-gradient(ellipse 80% 38% at 50% 50%, rgba(0,0,0,.42), rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 26%, rgba(0,0,0,.1) 62%, rgba(0,0,0,.78) 100%); }
.thero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(0,0,0,.42), rgba(0,0,0,0)); pointer-events: none; }
.thero > * { position: relative; }
.thero__meta a { color: #fff; }
.tabs { mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 900px) { .tabs { mask-image: none; } }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ecebe6 0 12px, #e4e2db 12px 24px); color: var(--muted); font: 500 15px var(--font-text); }
@media (max-width: 639px) { .vspecs { gap: 6px 14px; } .vspecs span { padding: 0; border: 0; } }
.score--ok { background: #475569; }
.tcard__shade { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 58%, rgba(0,0,0,.8) 100%); }
.tcard__name { top: auto; bottom: 46px; translate: none; text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.5); }
.thero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.thero__top .crumbs { margin: 0; }
.thero::before { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.7) 100%); }
.btn--glass { background: #fff; color: #1b1d1f; border-color: #fff; }
.btn--glass:hover { background: #f1f1ef; }
.btn--glass[aria-pressed="true"] { background: #0f5f2f; color: #fff; border-color: #0f5f2f; }
.srow__k .ic, .cmp tbody th .ic { color: var(--ink); width: 18px; height: 18px; }
.range input.is-off { accent-color: #b8b6ae; }
.cmp__head small { font-size: 14px; }
@media (max-width: 639px) { .thero__actions { flex-direction: column; width: 100%; } .thero__actions .btn { width: 100%; justify-content: center; } }
/* post-round-4 bug fixes */
.mlist b { display: inline; font-size: inherit; }
.mlist > span > b { display: block; font-size: 17px; }
.mlist small .score { display: inline-grid; width: auto; }
.map-view { position: static; }
.cmp td.is-best::before { content: none; }
.cmp td.is-best:not(:has(.pill))::before { content: "✓ "; }
.cmp td.is-best .pill { box-shadow: 0 0 0 2px #15803d; }

/* round 5 */
.tcard__link img { filter: saturate(.9) contrast(1.04); }
.tcard__rank, .tcard__wifi { background: rgba(15,17,19,.62); border-radius: 999px; padding: 3px 9px; text-shadow: none; }
.tcard__wifi { gap: 5px; font-size: 13px; }
.tcard__link.is-hover .tcard__hover { opacity: 1; }
.map-wrap .leaflet-tile-pane { filter: grayscale(.55) saturate(.7) contrast(.9) brightness(1.06); }
.map-side { mask-image: linear-gradient(180deg, #000 88%, transparent); padding-bottom: 40px; }
.map-view__col { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; height: min(760px, calc(100vh - var(--nav) - 48px)); }
.map-view__col .map-view__list { height: auto; min-height: 0; overflow: auto; mask-image: linear-gradient(180deg, #000 90%, transparent); padding-bottom: 32px; }
.map-view__count { margin: 0; font-size: 14px; color: var(--muted); }
.proscons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.proscons li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.proscons li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #e3f4e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-4.9' fill='none' stroke='%2315803d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.proscons--con li::before { background: #fbe7e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%23b42318' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ic--bad { color: var(--bad-ink); }
.trip--cost { margin-top: 18px; }
.trip--cost li:last-child { font-weight: 600; color: var(--good-ink); }
#mapa .map-wrap--sm { height: 300px; }
.cmp__pickrow { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.cmp__pickrow .cmp__pick { margin: 0; flex: 1 1 auto; min-width: 0; }
.cmp__rm { width: 36px; height: 36px; flex: none; }
.cmp__corner { display: block; font: 500 15px var(--font-text); color: var(--muted); margin-bottom: 10px; }
.cmp__add { width: 100%; }
.cmp thead th:first-child { vertical-align: top; }
.cmp--4 { min-width: 960px; }
.cmp--4 .cmp__head img { height: 120px; }
.town-strip { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.town-strip small { color: var(--muted); opacity: 1; }
.town-strip .mbar__track { background: #ecebe6; }
.vgallery img.crop--b { transform: scale(1.8); transform-origin: 75% 30%; }
.vgallery button:hover img.crop--b { transform: scale(1.84); }
.vgallery__thumbs { grid-template-rows: 1fr 1fr; }
.app-foot__cols a:not(.nav__logo), .app-foot__legal { color: var(--ink); }
.app-foot__legal a { color: var(--ink); }
.searchbox { flex-basis: 320px; min-width: min(300px, 100%); }
.range input { width: 84px; }

/* round 6 */
.tcard__hover { background: rgba(17,19,21,.97); }
.tcard__link.is-hover > :not(.tcard__hover):not(img), .tcard__link:hover > :not(.tcard__hover):not(img) { visibility: hidden; }
.pill__fill { background: #15803d; } .pill__fill--bad { background: #b42318; }
.pill:has(.pill__fill--ok) .pill__t { color: #241800; }
.vgallery { grid-template-columns: minmax(0, 1fr); height: 520px; }
.vgallery__main img { object-position: center 40%; }
@media (max-width: 639px) { .vgallery { height: 300px; } }
.mlist small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { #f-prio, #f-cor { display: none; } .searchbox { flex-basis: 100%; } }
.ground-inverse .btn--secondary { border-color: rgba(255,255,255,.7); color: #fff; }
/* town card: name on the left, one data row at the foot */
.tcard__name { left: 16px; right: 16px; bottom: 50px; text-align: left; }
.tcard__name b { font-size: clamp(21px, 1.3vw + 8px, 26px); }
.tcard__time { left: 16px; bottom: 16px; font-size: 14px; }
.tcard__rent { right: 16px; bottom: 14px; display: flex; align-items: baseline; gap: 4px; }
.tcard__rent b { font-size: 16px; } .tcard__rent small { font-size: 12.5px; }
.tcard__top .score { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.mbar { grid-template-columns: 18px 96px minmax(0, 1fr) 62px; }
.mbar__w { font-size: 12.5px; text-align: right; opacity: .85; white-space: nowrap; }
.town-strip .mbar { grid-template-columns: 16px 92px minmax(0, 1fr) 60px; }
.cmp td.is-best .pill { box-shadow: none; }
.map-wrap .leaflet-tile-pane { filter: grayscale(.35) saturate(.8) contrast(.96) brightness(1.03); }
.mpin { height: 30px; font-size: 14px; padding: 0 11px; }
.mhub { display: block; width: 14px; height: 14px; border-radius: 50%; background: #1b1d1f; border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.chip { font-size: 13.5px; }
@media (max-width: 639px) {
  .filters-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .filters-row > * { flex: none; }
  #f-toggle { display: none; }
  .toolbar .sp { display: none; }
  .result-count { margin-top: 4px; }
}
.tabs { align-items: center; }
.tabs__meta { margin-left: auto; flex: none; padding-left: 16px; font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 899px) { .tabs__meta { display: none; } }
.lcard__nav { opacity: .85; }
.lcard:hover .lcard__nav { opacity: 1; }
@media (max-width: 639px) { .seg button span { display: none; } .seg button { padding: 0 12px; } #f-sort { flex: 1 1 auto; } }
/* round 7 */
.pill__fill--ok { background: var(--ok); }
.score--ok { background: #2f6690; }
.tcard__hover { background: rgba(17,19,21,.88); }
.tcard__rent small { font-size: 13px; }
.lcard__adv { font-size: 14px; }
.cmp__max { display: block; font-size: 14px; color: var(--muted); }
.proscons--con li:only-child { border-bottom: 1px solid var(--line); }
/* round 7: bars with dark labels on tints, readable at any length */
.pill { background: #ecebe6; }
.pill__fill { background: #9fdcb2; } .pill__fill--ok { background: #f6d47e; } .pill__fill--bad { background: #f3aa9f; }
.pill__t, .pill:has(.pill__fill--ok) .pill__t { color: #1b1d1f; text-shadow: none; font-weight: 600; }
.pill__fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 8px 8px 0; background: var(--good-ink); }
.pill__fill--ok::after { background: #b7791f; } .pill__fill--bad::after { background: var(--bad-ink); }
.mpin--off::after { display: none; }
.count-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-3); }
.count-row .result-count { margin: 0; }
.legend { display: flex; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .score { min-width: 0; width: 12px; height: 12px; padding: 0; border-radius: 4px; }
.score--good { background: var(--good-ink); }
.tcard__top .score { box-shadow: none; }
.tcard__link.is-hover > :not(.tcard__hover):not(img), .tcard__link:hover > :not(.tcard__hover):not(img) { visibility: visible; }
.tcard__link:is(:hover, .is-hover) > :is(.tcard__name, .tcard__time, .tcard__rent) { visibility: hidden; }
.tcard__top, .tcard__wifi { z-index: 2; }
.tcard__hover { padding-top: 52px; }
.tcard__hhead { display: none; }
.tcard__link.is-hover ~ .tcard__cmp { opacity: 1; }
.thero::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 26%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.7) 100%); }
.vcontact { display: none; }
@media (max-width: 639px) { .vcontact { display: inline-flex; width: 100%; justify-content: center; } .tcard__link { aspect-ratio: 16 / 11; } .legend { display: none; } }
.tcard .tcard__link:is(:hover, .is-hover) > :is(.tcard__name, .tcard__time, .tcard__rent) { visibility: hidden; }
/* round 8: one bar style everywhere, a rail with its word beside it */
.rail { display: grid; grid-template-columns: minmax(80px, 1fr) auto; align-items: center; gap: 12px; }
.rail__track { height: 10px; border-radius: 999px; background: #e6e4dd; overflow: hidden; }
.rail__fill { display: block; height: 100%; width: calc(var(--v) * 20%); border-radius: inherit; background: var(--good); }
.rail__fill--ok { background: var(--ok); } .rail__fill--bad { background: var(--bad); }
.rail__t { font: 500 15px var(--font-text); color: var(--ink); white-space: nowrap; min-width: 8ch; }
.srow .rail { grid-template-columns: minmax(80px, 1fr) minmax(12ch, auto); }
.cmp .rail { grid-template-columns: minmax(60px, 140px) auto; } .cmp .rail__t { font-size: 14px; }
.cmp--4 .cmp__head img, .cmp__head img { height: 120px; }
/* one selection colour: the brand blue */
.chip-btn[aria-pressed="true"], .pills button[aria-pressed="true"] { background: #0369a1; border-color: #0369a1; color: #fff; }
.seg button[aria-pressed="true"] { color: #0369a1; }
/* cards: names on a firmer shade */
.tcard__shade { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 38%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.85) 100%); }
.tcard__name small { font-weight: 500; opacity: 1; }
.lcard__media img { object-position: center 35%; }
.page-head--media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.page-head--media > div { display: grid; gap: var(--s-4); justify-items: start; }
.page-head--media h1 { max-width: 16ch; }
.page-head--media img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 899px) { .page-head--media { grid-template-columns: minmax(0, 1fr); } .page-head--media img { height: 220px; } }
/* round 8b */
.score--ok { background: #b45309; }
.legend .score--ok { background: #b45309; }
.map-side, .map-view__col .map-view__list { mask-image: none; padding-bottom: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.map-view__col .map-view__list { padding: 8px; }
.cmp__head b { display: block; font: 500 20px var(--font-display); color: var(--ink); }
.cmp__pick { font-size: 13px; height: 34px; }
.vgallery { grid-template-columns: 2fr 1fr; height: 460px; }
.vgallery__main { grid-column: 1; grid-row: 1; }
.vgallery__thumbs { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
.vgallery__thumbs button { position: relative; }
.vgallery__tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15,17,19,.7); color: #fff; font-size: 13px; }
@media (max-width: 639px) { .vgallery { grid-template-columns: minmax(0, 1fr); height: 300px; } .vgallery__thumbs { display: none; } }
.listing-layout--map .filters__form fieldset:nth-of-type(n+5) { display: none; }
.results > h1 { font-weight: var(--display-weight); }
.thero__c p { text-shadow: 0 1px 8px rgba(0,0,0,.6); font-weight: 500; }
.mpin__n { display: inline; }
.mpin--compact { padding: 0 4px; }
.mpin--compact .mpin__n { display: none; }
.mpin--compact:hover .mpin__n, .mpin--compact.is-on .mpin__n { display: inline; }
.mpin--compact:hover { padding: 0 11px; }
/* round 9 */
.cmp td.is-best:not(:has(.pill))::before { content: none; }
.cmp td.is-best:not(:has(.rail))::before { content: "✓ "; }
.cmp td.is-best .rail__t { font-weight: 700; color: #0f5f2f; }
.score--best { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--good-ink); }
.score--ok, .legend .score--ok { background: #b45309; }
.rail__fill--ok, .mbar__fill--ok { background: #c76b0c; }
.thero { text-align: left; }
.thero__c { justify-items: start; text-align: left; align-self: end; }
.thero__actions { justify-content: flex-start; }
.thero__c p { font-size: 19px; font-weight: 600; }
.aside-card h2 { text-align: left; justify-content: flex-start; }
.listing-layout--map .filters__form fieldset:nth-of-type(n+5) { display: grid; }
.mlist span span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-side-col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; max-height: 640px; }
.map-side-col .map-side { max-height: none; min-height: 0; }
.map-side__foot { margin: 0; font-size: 13px; color: var(--muted); }
.mpin--up::before, .mpin--down::before { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; height: var(--dy); background: rgba(27,29,31,.55); }
.mpin--up::before { top: 100%; } .mpin--down::before { bottom: 100%; }
.mpin--off.mpin--up::after { display: none; }
.lcard__price--ph { color: var(--muted); font-weight: 500; font-size: 20px; }
@media (max-width: 639px) { .thero__c { align-self: center; } }
.score--ok, .legend .score--ok { background: #b45309; }
.tcard__rent small, .tcard__name small { color: #fff; }
.aside-card__meta dt { color: #4b4e52; }
.form-note { color: #5d5f61; }
@media (max-width: 639px) { .tabs, .filters-row { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
/* round 10 */
:root { --p-muted: #4f5254; }
#viaje .trip li:last-child { font-weight: 600; }
#servicios .trip li:last-child, .aside-card .trip li:last-child { font-weight: 400; }
#servicios .trip li > span:last-child { font-weight: 500; }
.tcard__hhead--name { display: grid !important; gap: 2px; margin-bottom: 6px; }
.tcard__hhead--name b { font: 600 18px var(--font-display); }
.tcard__hhead--name small { font-size: 13px; opacity: .85; }
.tcard__hhead:not(.tcard__hhead--name) { display: none; }
.tcard__hover { padding-top: 54px; align-content: start; }
.range input.is-off { accent-color: #c9c7c0; }
.cmp__pick { font-size: 15px; font-weight: 500; height: 40px; }
.tcard__hover { padding: 50px 16px 54px; gap: 6px; }
.tcard__hover .mbar { font-size: 13px; }
.tcard__hover .mbar__track { height: 10px; }
/* round 11 */
.mring { display: inline-block; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: #035e8e; font: 600 12.5px var(--font-text); white-space: nowrap; }
.tcard__cmp { left: auto; right: 12px; top: 48px; bottom: auto; translate: none; width: 34px; height: 34px; padding: 0; justify-content: center; opacity: 1; border-radius: 50%; background: rgba(255,255,255,.92); }
.tcard__cmp[aria-pressed="true"] { background: #0369a1; }
.tcard__hover { background: rgba(17,19,21,.78); }
.toolbar { gap: 8px; } .toolbar .sp { flex: 1 1 auto; }
.count-row { margin: 16px 0; }
.section-block--first { margin-top: var(--s-9); }
.page-head--media { margin-bottom: 0; }
.listing-layout--map .filters__form fieldset:nth-of-type(n+4) { display: none; }
.listing-layout--map .filters__form::after { content: "Más filtros en el listado"; font-size: 14px; color: var(--muted); }
.map-view .map-wrap--full, .map-view__col { height: 760px; }
.map-split .map-wrap, .map-side-col { height: 680px; max-height: none; }
@media (max-width: 639px) { #filters-row #f-prio, #filters-row #f-cor { display: inline-block; } #f-toggle { display: inline-flex; } .filters-row:not([hidden]) { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; margin: 0; padding-inline: 0; } }
.cmp td.is-best { background: #e3f1f9; color: #035e8e; }
.cmp td.is-best .rail__t { color: #035e8e; }
.tcard__top .score, .tcard__hhead .score { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }

/* ---------- real data: unknown values, research status, town description and questions ---------- */
.nv { color: var(--p-muted); font-style: italic; font-weight: 400; }
.score--na { background: #8a8c8e; color: #fff; }
.mbar__fill--na, .rail__fill--na { background: transparent; }
.compare__bar--na { background: repeating-linear-gradient(90deg, #d7d5ce 0 6px, transparent 6px 10px); width: 40%; }
.vtag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e8eef3; color: #0b4a6f; font: 500 11.5px/1.5 var(--font-text); text-decoration: none; letter-spacing: 0; white-space: nowrap; vertical-align: 1px; cursor: help; }
.vtag--nv { background: #f1ede4; color: #6b4e16; }
.tdesc { display: grid; gap: 12px; max-width: 64ch; margin-bottom: 20px; }
.tdesc p { font-size: 17px; line-height: 1.6; color: var(--p-ink); }
.tfaq { display: grid; max-width: 820px; }
.tfaq details { border-bottom: 1px solid #dcdad3; padding: 16px 0; }
.tfaq details:first-child { padding-top: 4px; }
.tfaq summary { font: 500 18px/1.4 var(--font-text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.tfaq summary::-webkit-details-marker { display: none; }
.tfaq summary::after { content: "+"; font-weight: 400; color: var(--p-muted); }
.tfaq details[open] summary::after { content: "–"; }
.tfaq p { margin-top: 8px; max-width: 70ch; color: var(--p-ink); line-height: 1.6; }

/* ---------- contact card: never taller than the window it sticks in ----------
   It was 843px tall and stuck 88px from the top, so on windows under ~930px its lower part
   (phone, reference, advertiser) could never be scrolled into view. Now it is compact and only
   sticks when the whole card fits; otherwise it scrolls with the page. */
.aside-card { position: static; gap: 14px; padding: 20px 22px; }
.aside-card .form-grid { gap: 12px; }
.aside-card .form-grid :is(input, select) { height: 44px; }
.aside-card .form-grid textarea { height: 84px; }
.aside-card__meta { gap: 10px; padding-top: 14px; }
.aside-card__meta dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.aside-card__meta dl > div { min-width: 0; }
.aside-card__meta dd { overflow-wrap: anywhere; }
@media (min-width: 1024px) and (min-height: 760px) {
  .aside-card { position: sticky; top: calc(var(--nav) + 16px); max-height: calc(100dvh - var(--nav) - 32px); overflow-y: auto; }
}

/* ---------- captured market examples, partial totals, Madrid as a reference column ---------- */
.score--partial { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.lcard__src { display: block; margin-top: 2px; font-size: 13px; color: var(--p-muted); }
.lcard__media .nophoto, .vgallery__main--none .nophoto { display: grid; place-items: center; gap: 8px; width: 100%; height: 100%; min-height: 200px; background: repeating-linear-gradient(135deg, #eceae4 0 10px, #e4e2db 10px 20px); color: #4f5254; font-size: 14px; text-align: center; padding: 16px; }
.nophoto .ic { width: 22px; height: 22px; }
.mlist .nophoto--sm { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; background: #eceae4; color: #4f5254; }
.vgallery--single { grid-template-columns: minmax(0, 1fr); }
.vgallery--single .vgallery__main { grid-column: 1 / -1; }
.vgallery__main--none { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; }
.aside-card__lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--p-ink); }
.thero__partial { margin-top: 6px; font-size: 14px; opacity: .92; }
.cmp__head--ref { display: grid; place-content: center; gap: 4px; aspect-ratio: 3 / 2; border-radius: 10px; background: #e8eef3; text-align: center; }
.cmp__ref { font: 600 22px/1.1 var(--font-text); color: #0b4a6f; }
.cmp__reftag { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #e8eef3; color: #0b4a6f; font-size: 13px; font-weight: 600; }
.empty--page { margin: 64px auto; max-width: 560px; text-align: center; }
.empty--page p { margin-top: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* renovation partners */
.app-foot__partners { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.app-foot__partners span { font-size: 13px; color: var(--p-muted); margin-right: 4px; }
.app-foot__partners b { font-weight: 500; color: var(--p-ink); }
.partners-note { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s-6); padding: 14px 16px; border-radius: 12px; background: #eef3f6; }
.partners-note .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #0369a1; }
.partners-note p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- round 13 ---------- */
/* the listing map list: a missing photo is a small tile, never an overlay over the map */
.mlist .nophoto--sm { position: static; inset: auto; width: 100%; height: auto; }
/* score rails wrap their words instead of widening the page (the phone town page was 77px too wide) */
.rail__t { white-space: normal; min-width: 0; }
.srow .rail { grid-template-columns: minmax(60px, 1fr) minmax(0, auto); }
.srow__v { min-width: 0; overflow-wrap: anywhere; }
/* research status chips readable */
.vtag { font-weight: 600; }
/* town description: two sentences, the rest behind "Leer más" */
.tdesc__more summary { cursor: pointer; color: #0369a1; font-weight: 500; margin-top: 4px; }
.tdesc__more p { margin-top: 10px; }
/* phone: the sticky price bar slides in once the page's own buttons have scrolled away */
@media (max-width: 1023px) {
  .vbar { transform: translateY(110%); transition: transform .2s ease; }
  .vbar.is-on { transform: none; }
}

/* the town list beside the map: absolutely placed bits inside it stay clipped by its scroll box
   (they escaped and stretched the page ~2000px below the footer) */
.map-side { position: relative; }

/* publish form: inline errors; the preview card never overflows */
.field-error { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--bad-ink, #b42318); }
.form-grid [aria-invalid="true"], #publish [aria-invalid="true"] { border-color: var(--bad-ink, #b42318); }
.lcard__title, .lcard__price, .lcard__specs, .lcard__desc { overflow-wrap: anywhere; min-width: 0; }
.lcard__chips { flex-wrap: wrap; }
.lcard__body { min-width: 0; }

/* ---------- round 14 ---------- */
/* compare: a labelled pill in the card corner, not a bare glyph */
.tcard__cmp { width: auto; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; gap: 5px; font: 600 13px var(--font-text); }
.tcard__cmp .ic { width: 14px; height: 14px; }
.tcard__cmp[aria-pressed="true"] .cmp-t { color: #fff; }
/* town cards: one photo treatment, darker foot so captions read on bright skies, opaque hover */
.tcard img { filter: saturate(.92) contrast(1.04); }
.tcard__shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 26%, rgba(0,0,0,.2) 52%, rgba(0,0,0,.82) 100%); }
.tcard__rent small, .tcard__time, .tcard__name small { font-size: 13px; color: #fff; opacity: 1; }
.tcard__hover { background: rgba(18,20,22,.95); }
/* map labels that cannot fit become dots; the name shows on hover */
.mpin.mpin--dot { padding: 0; width: 12px; height: 12px; min-width: 0; border-radius: 50%; font-size: 0; background: #1b1d1f; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mpin.mpin--dot > * { display: none; }
.mpin.mpin--dot:hover { width: auto; height: auto; padding: 4px 8px; border-radius: 999px; font-size: 13px; background: #fff; }
.mpin.mpin--dot:hover > * { display: inline; }
/* tile seams (white hairlines between OSM tiles under the CSS filter) */
.map-wrap .leaflet-tile-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; }
/* research status chips and small meta at a readable size */
.vtag { font-size: 12px; padding: 2px 7px; background: #dfe8ef; color: #083a57; }
.vtag--nv { background: #efe7d6; color: #5a3f0e; }
.lcard__src, .legend, .lcard__specs { font-size: 13px; }
/* market: two labelled groups */
.trip__group { margin: 18px 0 2px; font: 600 13px var(--font-text); letter-spacing: .02em; text-transform: uppercase; color: var(--p-muted); }
.trip__group:first-of-type { margin-top: 8px; }
/* listing side column: the town under the source card */
.aside-town { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--p-ink); text-decoration: none; }
.aside-town small { display: block; color: var(--p-muted); font-size: 13px; margin-top: 2px; }
.aside-town:hover b { text-decoration: underline; }
.mbars--aside { display: grid; gap: 6px; }
.vgallery__bar { gap: 8px; display: flex; }
/* compare: four columns keep the whole town name */
.cmp--4 .cmp__pick { font-size: 13px; padding-right: 28px; }
