/* The same Avant Development palette applies inside both language versions of the map.
   Keep infrastructure colors and project identity data unchanged. */
:root { --ink: var(--brand-navy); --muted: var(--brand-muted); --paper: var(--brand-paper); --line: var(--brand-line); --accent: var(--brand-navy); }
body, button, input, select, svg text { font-family: var(--brand-font); }
button:focus-visible, a:focus-visible { outline-color: var(--brand-wine); }
.map-tabs button.active, .deal-tabs button.active, .mode-tabs button.active,
.site-floor button.active, .catalog-tabs button.active, .deal-buttons button.active { background: var(--brand-navy); color: #fff; }
.apply-filter { background: var(--brand-gold); color: var(--brand-navy); }
.unit-zone { fill: var(--brand-blue) !important; stroke: var(--brand-blue); }
.unit-zone.selected { fill: var(--brand-gold) !important; stroke: var(--brand-navy); }
.unit-marker.selected { border-color: var(--brand-wine); color: var(--brand-wine); background: #fff; }
.project-pin rect { fill: var(--brand-navy); stroke: #fff; }
.project-pin text { fill: #fff; font-family: var(--brand-font); }
.project-pin:hover rect, .project-pin:focus rect { fill: var(--brand-wine); }
.map-shell { border-color: var(--brand-line); background: var(--brand-soft); }

/* The iframe is the map viewport, including in a property card or dialog.
   Keep controls outside the transformed SVG and never scroll the iframe page. */
html, body { width: 100%; height: 100%; overflow: hidden; }
main, .layout, .layout > div:first-child { height: 100%; min-height: 0; }
main { position: relative; }
.map-shell { width: 100%; height: 100% !important; min-height: 0 !important; max-height: none !important; }
.map-top, .map-controls, .site-floor { z-index: 10; }
.map-tabs button, .site-floor button { min-height: 44px; }
.map-controls { bottom: 64px; }
.map-controls button { width: 44px; height: 44px; }
.site-floor { bottom: 64px; border-radius: 14px; }
.site-floor button { min-width: 58px; }
.map-hint { z-index: 10; max-height: 44px; overflow: auto; }
.place-open .side { top: 72px; bottom: 12px; max-height: none; overscroll-behavior: contain; }
.place-open .site-close { top: 22px; min-height: 44px; }
@media (max-width: 400px) {
  .map-tabs { width: 100%; justify-content: space-between; }
  .map-tabs button { padding: 8px; }
  .map-controls { right: 10px; }
  .site-floor { left: 10px; }
}
@media (max-height: 380px) {
  .map-controls { display: flex; gap: 4px; bottom: 12px; }
  .site-floor { bottom: 12px; }
  .map-hint { display: none; }
  .site-floor button { min-width: 48px; padding: 6px; }
}
