/* De Goffaert woningzoeker. Alles is gescoped onder .gw-woningzoeker en .gw-dialog,
   fonts erven van het thema (Salient). Huisstijl: rechte knoppen en blokken, geen afrondingen. */
.gw-woningzoeker, .gw-dialog {
  /* Huisstijl De Goffaert: bruin, zand, antraciet (overgenomen van de prijslijst op degoffaert.nl) */
  --gw-ink: #5c4f44;
  --gw-text: #323132;
  --gw-accent: #af9982;
  --gw-paper: #f5f6f5;
  --gw-panel: #f5f6f5;
  --gw-line: #e2dcd2;
  --gw-muted: #6f655c;
  --gw-white: #ffffff;
  --gw-cta: #ea9635;
  --gw-cta-bg: #fbeed8;
  --gw-available: #81d742; --gw-available-ink: #2f6a12; --gw-available-bg: #e4f6d6;
  --gw-option: #ffd323;    --gw-option-ink: #735400;    --gw-option-bg: #fff0a6;
  --gw-sold: #ed3535;      --gw-sold-ink: #891d1d;      --gw-sold-bg: #ffdbdb;
  --gw-unknown: #929ba1;   --gw-unknown-ink: #44505a;   --gw-unknown-bg: #e7ebef;
  color: var(--gw-text);
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
}
.gw-woningzoeker { background: var(--gw-paper); padding: 24px; border: 1px solid var(--gw-line); }
.gw-panel { background: var(--gw-white); border: 1px solid var(--gw-line); padding: 16px; margin: 0 0 14px; }
.gw-woningzoeker *, .gw-woningzoeker *::before, .gw-woningzoeker *::after, .gw-dialog *, .gw-dialog *::before, .gw-dialog *::after { box-sizing: border-box; }
.gw-woningzoeker p, .gw-dialog p { margin: 0 0 10px; color: var(--gw-muted); line-height: 1.6; padding: 0; }
.gw-woningzoeker h2, .gw-woningzoeker h3, .gw-dialog h2 { color: var(--gw-text); margin: 0; padding: 0; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.gw-woningzoeker a { color: var(--gw-text); }
.gw-woningzoeker svg, .gw-woningzoeker img, .gw-woningzoeker canvas { max-width: none; }

/* Knoppen, selects: expliciet alles zetten zodat themastijlen niet doorsijpelen */
.gw-woningzoeker button, .gw-dialog button, .gw-dialog a.gw-btn, .gw-woningzoeker .gw-actions a, .gw-dialog .gw-apartment-controls a {
  -webkit-appearance: none; appearance: none;
  display: inline-block; font: inherit; font-size: 13px; line-height: 1.2; font-weight: 500;
  color: var(--gw-ink); background: var(--gw-white); border: 1px solid var(--gw-line);
  padding: 11px 15px; margin: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
  height: auto; min-height: 0; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.gw-woningzoeker button:hover, .gw-dialog button:hover, .gw-woningzoeker .gw-actions a:hover, .gw-dialog .gw-apartment-controls a:hover { border-color: var(--gw-ink); background: var(--gw-white); color: var(--gw-ink); }
.gw-woningzoeker button.gw-active, .gw-dialog button.gw-active, .gw-woningzoeker .gw-primary, .gw-dialog .gw-primary, .gw-woningzoeker .gw-actions a.gw-primary { background: var(--gw-ink); color: var(--gw-white); border-color: var(--gw-ink); }
.gw-woningzoeker button.gw-active:hover, .gw-woningzoeker .gw-primary:hover, .gw-woningzoeker .gw-actions a.gw-primary:hover { background: var(--gw-ink); color: var(--gw-white); }
.gw-woningzoeker button:focus-visible, .gw-dialog button:focus-visible, .gw-woningzoeker canvas:focus-visible, .gw-dialog canvas:focus-visible, .gw-woningzoeker select:focus-visible { outline: 3px solid var(--gw-accent); outline-offset: 2px; }
.gw-woningzoeker select {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; line-height: 1.3; color: var(--gw-ink);
  width: 100%; padding: 11px 36px 11px 12px; margin: 0; border: 1px solid var(--gw-line); border-radius: 0; background: var(--gw-white) no-repeat right 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23263d35' stroke-width='1.6'/%3E%3C/svg%3E");
  height: auto; min-height: 0; box-shadow: none;
}
.gw-woningzoeker label { display: block; font-size: 12px; font-weight: 600; color: var(--gw-ink); margin: 0; letter-spacing: .02em; }
.gw-woningzoeker label select { margin-top: 7px; font-weight: 400; }

.gw-tag { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gw-muted); }
.gw-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px; align-items: stretch; }
/* Detailpaneel: altijd precies zo hoog als het modelgedeelte links; langere inhoud scrolt binnen het paneel. */
.gw-side { position: relative; min-height: 420px; }
.gw-side .gw-details { position: absolute; inset: 0; overflow-y: auto; box-sizing: border-box; }
.gw-listwrap { margin-top: 20px; }
.gw-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 15px; }
.gw-toolbar strong { font-size: 17px; }
.gw-toolbar strong { font-weight: 600; }
#counter { font-size: 13px; color: var(--gw-muted); }
.gw-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.gw-controls span { font-size: 12px; min-width: 100px; text-align: center; color: var(--gw-muted); }
.gw-modes button { font-weight: 600; }
.gw-floortabs button { min-width: 48px; }
.gw-woningzoeker button.gw-filter-toggle { display: none; }
#modelcontrols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#modelcontrols button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }
.gw-listhead-right { display: flex; align-items: center; gap: 16px; }
.gw-listhead .gw-check { font-size: 13px; }
.gw-woningzoeker .gw-check-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; background: var(--gw-white); border: 1px solid var(--gw-line); padding: 11px 12px; margin: 0; cursor: pointer; white-space: nowrap; }
#modelcontrols button { width: 100%; text-align: center; }
.gw-woningzoeker:not(.gw-compact) #modelcontrols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.gw-building { position: relative; overflow: hidden; background: transparent; margin: 0 0 12px; touch-action: pan-y; }
.gw-building img { background: var(--gw-white); }
.gw-building img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.gw-building svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#modelCanvas { width: 100%; height: clamp(360px, 48vw, 570px); display: block; touch-action: none; cursor: grab; background: linear-gradient(#dce8ef 0%, #f6f3ec 70%, #e3e3d7 100%); }
#modelCanvas:active { cursor: grabbing; }
.gw-model-tip { position: absolute; top: 14px; left: 14px; background: rgba(255,253,248,.92); padding: 8px 12px; font-size: 12px; pointer-events: none; color: var(--gw-ink); }
.gw-model-tip button { margin-top: 6px; }
.gw-model-tooltip { position: absolute; bottom: 104px; left: 14px; background: var(--gw-ink); color: var(--gw-white); padding: 9px 13px; pointer-events: none; font-size: 12px; display: none; }
.gw-model-selection { position: absolute; bottom: 14px; right: 14px; padding: 12px 16px; background: rgba(255,255,255,.96); border-left: 6px solid; box-shadow: 0 3px 16px rgba(24,43,39,.19); max-width: calc(100% - 28px); pointer-events: none; }
.gw-model-selection strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--gw-ink); }
.gw-model-selection .gw-status { display: inline-block; }
.gw-model-expanded { position: fixed !important; inset: 0; z-index: 2147483000; width: 100%; height: 100dvh; margin: 0; overscroll-behavior: none; }
.gw-model-expanded #modelCanvas { width: 100%; height: 100dvh; max-height: none; }
.gw-woningzoeker .gw-model-close { position: absolute; right: 14px; top: 14px; z-index: 2147483001; background: var(--gw-ink); color: var(--gw-white); border-color: var(--gw-ink); font-size: 14px; padding: 12px 18px; }
body.gw-expanded-open #header-outer, body.gw-expanded-open #header-space, body.gw-expanded-open .nectar-slide-in-cart, body.gw-expanded-open #mobile-menu { visibility: hidden !important; }
.gw-woningzoeker .gw-model-gate { position: absolute; inset: 0; z-index: 3; display: none; align-items: flex-end; justify-content: center; padding: 0 0 108px; background: transparent; border: 0; width: 100%; height: 100%; cursor: pointer; font-size: 13px; }
.gw-woningzoeker .gw-model-gate span { color: var(--gw-white); background: var(--gw-ink); padding: 10px 16px; box-shadow: 0 3px 14px rgba(24,43,39,.25); }
.gw-intro { font-size: 13px; margin: 0 0 12px; }
.gw-model-expanded .gw-model-tip { max-width: calc(100% - 185px); }

/* Klikvlakken in gevel en verdiepingstekening */
.gw-zone { fill-opacity: .22; stroke: #fff; stroke-opacity: .65; stroke-width: 2; cursor: pointer; }
.gw-zone.gw-dim { fill: #8d8d8d !important; fill-opacity: .28; stroke-opacity: .35; cursor: default; }
.gw-zone.gw-lit { fill-opacity: .55; stroke-width: 3; }
.gw-zone:hover, .gw-zone.gw-hovered { fill-opacity: .45; }
.gw-zone.gw-selected { fill-opacity: .58; stroke: #fff; stroke-width: 4; }
.gw-facade-unit { fill-opacity: .13; stroke: #fff; stroke-opacity: .75; stroke-width: 1.2; cursor: pointer; }
.gw-facade-unit:hover, .gw-facade-unit.gw-hovered { fill-opacity: .38; }
.gw-facade-unit.gw-selected { fill-opacity: .58; stroke: #fff; stroke-width: 4; }
.gw-facade-unit.gw-filtered { fill-opacity: 0; stroke-opacity: .15; pointer-events: none; }
.gw-zone.gw-available, .gw-facade-unit.gw-available { fill: var(--gw-available); }
.gw-zone.gw-option, .gw-facade-unit.gw-option { fill: var(--gw-option); }
.gw-zone.gw-sold, .gw-facade-unit.gw-sold { fill: var(--gw-sold); }
.gw-zone.gw-unknown, .gw-facade-unit.gw-unknown { fill: var(--gw-unknown); }
.gw-facade-label { font: 13px sans-serif; fill: #fff; stroke: #253d30; stroke-width: 3; paint-order: stroke; stroke-linejoin: round; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

.gw-main { container-type: inline-size; min-width: 0; }
.gw-render-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
@container (max-width: 640px) { .gw-woningzoeker .gw-render-gallery { grid-template-columns: repeat(2, 1fr); } }
.gw-render-card { background: var(--gw-white); border: 1px solid var(--gw-line); padding: 5px; min-width: 0; }
.gw-render-card.gw-active { border-color: var(--gw-ink); box-shadow: inset 0 0 0 1px var(--gw-ink); }
.gw-render-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gw-render-card strong { display: block; font-size: 11px; margin: 8px 3px; font-weight: 600; }
.gw-render-actions { display: flex; gap: 4px; }
.gw-render-card button { font-size: 11px; padding: 7px 5px; flex: 1; }
.gw-hint { font-size: 12px; margin: 0 0 10px; }
.gw-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--gw-muted); margin: 0 0 18px; }
.gw-legend-label { font-weight: 600; color: var(--gw-text); }
.gw-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.gw-dot-available { background: var(--gw-available); } .gw-dot-option { background: var(--gw-option); } .gw-dot-sold { background: var(--gw-sold); }

/* Detailpaneel */
.gw-details { background: var(--gw-white); padding: 24px; border: 1px solid var(--gw-line); border-top: 3px solid var(--gw-ink); }
.gw-woningzoeker .gw-details h2 { font-size: 26px !important; line-height: 1.2 !important; margin: 6px 0 4px !important; }
.gw-details .gw-sub { font-size: 14px; margin-bottom: 0; }
.gw-details.gw-previewing { border-top-color: var(--gw-cta); }
.gw-details.gw-previewing::before { content: "Klik in het model om deze woning vast te zetten"; display: block; font-size: 11px; color: var(--gw-muted); margin-bottom: 6px; }
.gw-detailgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin: 20px 0; padding: 16px; background: var(--gw-paper); }
.gw-detailgrid small { display: block; color: var(--gw-muted); margin-bottom: 6px; font-size: 12px; }
.gw-detailgrid strong { font-size: 16px; }
.gw-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { min-width: 0; overflow-wrap: break-word; }
.gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { width: 100%; text-align: center; white-space: normal; }
.gw-agent { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; align-items: start; margin-top: 22px; padding: 18px; background: var(--gw-cta-bg, #fbeed8); }
.gw-agent-actions { grid-column: 1 / -1; justify-content: flex-start; }
.gw-dialog .gw-agent { margin: 6px 24px 16px; }
.gw-woningzoeker .gw-agent img, .gw-dialog .gw-agent img { width: 72px !important; height: 72px !important; max-width: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0; }
.gw-agent-body { min-width: 0; flex: 1; }
.gw-agent-body strong { display: block; font-size: 16px; color: var(--gw-text); }
.gw-woningzoeker .gw-agent-body p, .gw-dialog .gw-agent-body p { padding: 0; }
.gw-woningzoeker .gw-agent-actions a.gw-whatsapp { white-space: nowrap; }
.gw-agent-role { display: block; font-size: 12px; color: var(--gw-muted); margin-bottom: 6px; }
/* Tekst onder foto én naam, over de volle breedte van het blok */
.gw-woningzoeker .gw-agent-text, .gw-dialog .gw-agent-text { grid-column: 1 / -1; font-size: 13px; margin: 0; padding: 0; }
.gw-agent { align-items: center; }
.gw-agent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gw-woningzoeker .gw-agent-actions a, .gw-dialog .gw-agent-actions a { -webkit-appearance: none; appearance: none; display: inline-block; font: inherit; font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--gw-ink); background: var(--gw-white); border: 1px solid var(--gw-line); padding: 11px 15px; border-radius: 0; text-decoration: none; }
.gw-woningzoeker .gw-agent-body strong, .gw-dialog .gw-agent-body strong { font-size: 17px; }
.gw-woningzoeker .gw-agent-actions a.gw-call:hover, .gw-dialog .gw-agent-actions a.gw-call:hover { border-color: var(--gw-ink); }
@media (max-width: 600px) { .gw-dialog .gw-agent { margin: 6px 16px 14px; padding: 14px; gap: 12px; } .gw-agent img { width: 56px; height: 56px; } }
.gw-woningzoeker .gw-agent-actions a.gw-whatsapp, .gw-dialog .gw-agent-actions a.gw-whatsapp, .gw-woningzoeker .gw-actions a.gw-whatsapp, .gw-dialog .gw-apartment-controls a.gw-whatsapp { background: var(--gw-cta); border-color: var(--gw-cta); color: #fff; font-weight: 600; font-size: 14px; padding: 13px 18px; }
.gw-woningzoeker .gw-agent-actions a.gw-whatsapp:hover, .gw-dialog .gw-agent-actions a.gw-whatsapp:hover, .gw-woningzoeker .gw-actions a.gw-whatsapp:hover, .gw-dialog .gw-apartment-controls a.gw-whatsapp:hover { filter: brightness(.93); color: #fff; }
.gw-woningzoeker .gw-whatsapp::before, .gw-dialog .gw-whatsapp::before { content: ""; display: inline-block; width: 15px; height: 15px; margin: 0 7px -3px 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.2-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3C/svg%3E") no-repeat center / contain; }
.gw-actions a[href^="mailto"]::after { content: ""; }

/* Filters en lijst */
/* Bovenbalk: links weergaveknoppen + verdiepingen, rechts het logo, daaronder de filters over de volle breedte */
.gw-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 24px; background: var(--gw-white); border: 1px solid var(--gw-line); padding: 14px 16px; margin: 0 0 18px; }
.gw-topbar .gw-controls { margin: 0; }
.gw-topbar-left { display: flex; flex-direction: column; gap: 8px; }
.gw-woningzoeker .gw-logo { grid-column: 2; grid-row: 1; height: 46px; width: auto; max-width: 260px; display: block; margin: 2px 0 0; justify-self: end; }
.gw-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.gw-filters label { flex: 1 1 120px; min-width: 120px; }
.gw-filters #groupWrap { flex: 2.2 1 250px; }
.gw-filters label select { margin-top: 5px; padding: 9px 32px 9px 10px; font-size: 13px; }
.gw-filters .gw-check { min-width: 0; align-self: center; padding-bottom: 8px; }
.gw-filters #reset { align-self: flex-end; height: 40px; padding: 0 16px; font-size: 13px; line-height: 38px; box-sizing: border-box; background: var(--gw-line); border-color: var(--gw-line); color: var(--gw-ink); font-weight: 600; }
.gw-filters #reset:hover { background: var(--gw-accent); border-color: var(--gw-accent); color: #fff; }
.gw-filters label select { height: 40px; box-sizing: border-box; }
.gw-filters .gw-check { font-weight: 400; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.gw-woningzoeker .gw-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--gw-ink); }
.gw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gw-woningzoeker .gw-floorhead { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; background: var(--gw-panel); border: 1px solid var(--gw-line); padding: 10px 14px; font-weight: 600; font-size: 14px; margin-top: 6px; }
.gw-woningzoeker .gw-floorhead:first-child { margin-top: 0; }
.gw-woningzoeker .gw-floorhead small { font-weight: 400; color: var(--gw-muted); font-size: 12px; }
.gw-woningzoeker .gw-floorhead::before { content: "▸"; margin-right: 10px; font-size: 12px; color: var(--gw-muted); }
.gw-woningzoeker .gw-floorhead.gw-open::before { content: "▾"; }
.gw-woningzoeker .gw-floorhead span { flex: 1; }
.gw-card { padding: 12px 14px; background: var(--gw-white); border: 1px solid var(--gw-line); margin: 0; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.gw-card:hover, .gw-card.gw-hovered { border-color: var(--gw-ink); }
.gw-card.gw-selected { border: 2px solid var(--gw-ink); padding: 11px 13px; }
.gw-card.gw-selected.gw-available { border-color: var(--gw-available); background: #f1fcf5; }
.gw-card.gw-selected.gw-option { border-color: #e2b800; background: #fffbed; }
.gw-card.gw-selected.gw-sold { border-color: var(--gw-sold); background: #fff3f3; }
.gw-cardtop { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gw-woningzoeker .gw-card h3 { font-size: 16px !important; line-height: 1.25 !important; margin: 0 !important; font-weight: 600; }
.gw-status { font-size: 10px; font-weight: 600; padding: 4px 7px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.gw-status.gw-available { background: var(--gw-available-bg); color: var(--gw-available-ink); }
.gw-status.gw-option { background: var(--gw-option-bg); color: var(--gw-option-ink); }
.gw-status.gw-sold { background: var(--gw-sold-bg); color: var(--gw-sold-ink); }
.gw-status.gw-unknown { background: var(--gw-unknown-bg); color: var(--gw-unknown-ink); }
.gw-facts { font-size: 12px; margin-top: 6px; color: var(--gw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-price { margin-top: 8px; font-size: 15px; font-weight: 600; }
.gw-empty { padding: 30px; background: var(--gw-white); }
.gw-summary { font-size: 12px; margin: 30px 0 0; color: var(--gw-muted); }

/* 3D-woningplattegrond (dialoog) */
.gw-dialog { padding: 0; border: 0; border-radius: 0; width: min(1180px, 96vw); max-width: 96vw; max-height: 94dvh; box-shadow: 0 20px 100px rgba(0,0,0,.33); overflow: auto; background: #faf9f5; font-size: 15px; line-height: 1.5; }
.gw-dialog::backdrop { background: rgba(50,49,50,.8); backdrop-filter: blur(4px); }
.gw-apartment-shell { display: flex; flex-direction: column; max-height: 94dvh; }
.gw-apartment-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--gw-line); gap: 14px; }
.gw-dialog .gw-apartment-head h2 { font-size: 26px !important; line-height: 1.2 !important; margin: 8px 0 6px !important; }
.gw-apartment-head p { margin: 0; font-size: 13px; font-weight: 700; }
.gw-apartment-head button { white-space: nowrap; }
.gw-apartment-stage { position: relative; height: clamp(340px, 65dvh, 700px); min-height: 300px; flex: 1; background: radial-gradient(ellipse at center, #fffdf6, #e5e8e1); overflow: hidden; }
#apartmentCanvas { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -3px; }
.gw-apartment-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gw-apartment-labels span { position: absolute; transform: translate(-50%, -50%); font-size: 11px; line-height: 1.2; background: rgba(255,255,255,.9); border: 1px solid #d1d4c8; padding: 4px 7px; white-space: nowrap; color: #35443b; }
.gw-apartment-loading { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; padding: 30px; text-align: center; background: rgba(242,242,238,.75); color: #435349; }
.gw-apartment-tip { position: absolute; left: 14px; bottom: 12px; padding: 7px 10px; background: rgba(255,255,255,.9); font-size: 11px; pointer-events: none; }
.gw-apartment-controls { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 24px 7px; }
.gw-apartment-note { font-size: 11px; padding: 0 24px 15px; margin: 4px 0; line-height: 1.5; }
.gw-dialog p.gw-apartment-note { padding: 0 24px 15px !important; }
.gw-dialog #apartmentAgent:empty { display: none; }

/* Mobiel: viewer, dan filters, dan details, dan lijst */
@media (max-width: 850px) {
  .gw-woningzoeker { padding: 14px; }
  .gw-layout { display: flex; flex-direction: column; gap: 0; }
  .gw-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gw-main, .gw-side { display: contents; }
  .gw-side .gw-details { position: static; overflow: visible; }
  .gw-o-viewer { order: 0; }
  .gw-o-filters { order: 1; }
  .gw-o-details { order: 2; }
  .gw-o-list { order: 3; }
  .gw-topbar { grid-template-columns: 1fr; gap: 10px; padding: 12px; margin-bottom: 14px; }
  .gw-woningzoeker .gw-logo { grid-column: 1; grid-row: 1; height: 30px; justify-self: start; margin: 2px 0 4px; }
  .gw-topbar-left { grid-column: 1; grid-row: 2; gap: 8px; }
  .gw-floortabs { display: flex; flex-wrap: nowrap; gap: 4px; }
  .gw-floortabs button { flex: 1 1 0; min-width: 0; padding: 9px 2px; }
  .gw-woningzoeker button.gw-filter-toggle { display: block; grid-column: 1 / -1; width: 100%; text-align: left; padding: 10px 12px; font-weight: 600; background: var(--gw-panel); border-color: var(--gw-line); }
  .gw-filter-toggle::after { content: "▾"; float: right; color: var(--gw-muted); }
  .gw-topbar.gw-filters-open .gw-filter-toggle::after { content: "▴"; }
  .gw-woningzoeker button.gw-filter-toggle.gw-active { border-color: var(--gw-ink); }
  .gw-filters { display: none; }
  .gw-topbar.gw-filters-open .gw-filters { display: flex; }
  .gw-filters label { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .gw-filters #groupWrap { flex: 1 1 100%; }
  .gw-filters #reset { flex: 1 1 100%; }
  #modelCanvas { height: clamp(300px, 92vw, 420px); }
  .gw-legend { gap: 8px 14px; }
  .gw-legend-label { flex: 1 1 100%; }
  .gw-card .gw-nrlabel { display: none; }
  .gw-card .gw-facts { white-space: normal; }
  .gw-list { gap: 8px; }
  .gw-intro { font-size: 13px; }
  .gw-details { margin: 14px 0 18px; padding: 20px; }
  .gw-detailgrid { gap: 12px; margin: 16px 0; padding: 12px; }
  .gw-controls button { padding: 10px 11px; font-size: 12px; }
  .gw-modes { gap: 6px; }
  #modelcontrols { grid-template-columns: 1fr 1fr; }
  .gw-modes button { flex: 1 1 calc(50% - 6px); }
  .gw-render-gallery { grid-template-columns: repeat(2, 1fr); }
  .gw-model-tooltip { display: none !important; }
  .gw-model-selection { bottom: 10px; right: 10px; padding: 9px 12px; }
  .gw-summary { margin-top: 22px; }
}
@media (max-width: 600px) {
  .gw-apartment-head { padding: 16px; }
  .gw-apartment-head h2 { font-size: 24px; }
  .gw-apartment-controls { padding: 12px 16px 5px; gap: 6px; }
  .gw-apartment-controls button, .gw-apartment-controls a { font-size: 11px; padding: 9px; }
  .gw-apartment-note { padding: 0 16px 12px; }
  .gw-dialog p.gw-apartment-note { padding: 0 16px 12px !important; }
  .gw-apartment-stage { height: 58dvh; }
}

/* Welkomstblok (geen woning gekozen) */
.gw-woningzoeker .gw-welcome { margin-top: 14px; }
.gw-woningzoeker .gw-tips { margin-top: 16px; font-size: 14px; }
.gw-woningzoeker .gw-tips strong { display: block; margin-bottom: 10px; font-size: 18px; line-height: 1.25; color: var(--gw-ink); }
.gw-woningzoeker .gw-tips ul { margin: 0; padding-left: 18px; }
.gw-woningzoeker .gw-tips li { margin: 0 0 8px; line-height: 1.45; color: var(--gw-text); }
.gw-woningzoeker .gw-tips li b { color: var(--gw-ink); }
.gw-woningzoeker .gw-tips .gw-tiplink { color: var(--gw-ink); text-decoration: underline; text-underline-offset: 2px; }
.gw-woningzoeker .gw-tips .gw-tiplink:hover { color: var(--gw-cta); }

/* Doelgroepfilter: woningen buiten de gekozen doelgroep worden zacht grijs */
.gw-woningzoeker .gw-card.gw-dim { opacity: .42; filter: grayscale(1); background: var(--gw-panel); }
.gw-woningzoeker .gw-card.gw-dim:hover { opacity: .7; }
.gw-woningzoeker .gw-card.gw-dim.gw-selected { opacity: .85; filter: none; }

/* Compact detailpaneel op desktop: past zonder scrollen naast het model */
@media (min-width: 901px) {
  .gw-woningzoeker .gw-details { padding: 20px 22px; }
  .gw-woningzoeker .gw-details h2 { margin: 4px 0 2px !important; font-size: 24px !important; }
  .gw-woningzoeker .gw-details .gw-sub { margin: 0; }
  .gw-woningzoeker .gw-detailgrid { gap: 10px 16px; margin: 14px 0 12px; padding: 12px 14px; }
  .gw-woningzoeker .gw-detailgrid small { margin-bottom: 2px; font-size: 11px; }
  .gw-woningzoeker .gw-detailgrid strong { font-size: 15px; }
  .gw-woningzoeker .gw-details > p { font-size: 12px; line-height: 1.4; margin: 0 0 6px; padding: 0; color: var(--gw-muted); }
  .gw-woningzoeker .gw-details .gw-sub { font-size: 14px; color: var(--gw-text); }
  .gw-woningzoeker .gw-actions { margin-top: 12px; gap: 6px; }
  .gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { padding: 9px 10px; font-size: 12.5px; }
  .gw-woningzoeker .gw-details .gw-agent { margin-top: 14px; padding: 12px 14px; gap: 8px 14px; grid-template-columns: 56px 1fr; }
  .gw-woningzoeker .gw-details .gw-agent img { width: 56px !important; height: 56px !important; max-width: 56px; }
  .gw-woningzoeker .gw-details .gw-agent-body strong { font-size: 15px; }
  .gw-woningzoeker .gw-details .gw-agent-text { font-size: 12.5px; }
  .gw-woningzoeker .gw-details .gw-agent-actions a.gw-whatsapp { padding: 10px 14px; font-size: 13px; }
  .gw-woningzoeker .gw-details .gw-welcome { margin-top: 10px; }
  .gw-woningzoeker .gw-tips { margin-top: 12px; font-size: 13px; }
}

/* Salient-overrides: het thema vergroot koppen en afbeeldingen in de content; hier vastgezet. */
.gw-woningzoeker .gw-card h3 { font-size: 16px !important; line-height: 1.25 !important; margin: 0 !important; font-weight: 600; }
.gw-dialog .gw-apartment-head h2 { font-size: 26px !important; line-height: 1.2 !important; margin: 8px 0 6px !important; }
.gw-woningzoeker .gw-agent img, .gw-dialog .gw-agent img { width: 72px !important; height: 72px !important; max-width: 72px; margin: 0; }
.gw-woningzoeker .gw-tips ul { margin: 0 !important; padding: 0 0 0 18px !important; }
.gw-woningzoeker .gw-tips li { list-style: disc !important; margin-left: 0 !important; padding: 0 !important; }
.gw-woningzoeker p { padding-bottom: 0; }
/* Salient zet .row .col img op max-width 100%, height auto en margin-bottom 15px; binnen de woningkiezer vastzetten. */
.gw-woningzoeker img, .gw-dialog img { margin-bottom: 0 !important; }
.gw-woningzoeker img.gw-logo { height: 46px !important; width: auto !important; max-width: 260px !important; }
.gw-woningzoeker .gw-building img { max-width: 100% !important; height: auto !important; }
@media (max-width: 850px) { .gw-woningzoeker img.gw-logo { height: 36px !important; } }

/* Mobiel compacter: geen dubbel logo onder de sitekop, geen tips (alleen Rick), lijst altijd in twee kolommen */
@media (max-width: 850px) {
  .gw-woningzoeker img.gw-logo { display: none !important; }
  .gw-woningzoeker .gw-tips { display: none; }
  .gw-woningzoeker .gw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gw-woningzoeker .gw-card { padding: 10px 11px; }
  .gw-woningzoeker .gw-card.gw-selected { padding: 9px 10px; }
  .gw-woningzoeker .gw-topbar-left { grid-row: 1; }
  .gw-woningzoeker button.gw-filter-toggle { grid-row: 2; }
  .gw-woningzoeker .gw-filters { grid-row: 3; }
  .gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { font-size: 12.5px; padding: 10px 6px; line-height: 1.25; }
}

/* 1.7.0: onderste knoppenregel in het detailblok (woningtype + inschrijven); inschrijfknop in de groene CTA-kleur van degoffaert.nl (#80d741, zoals de knop Inschrijven op de homepage) */
.gw-woningzoeker .gw-actions.gw-actions-cta { margin-top: 8px; }
.gw-woningzoeker .gw-actions a.gw-interest { background: #80d741; border-color: #80d741; color: #fff; font-weight: 600; }
.gw-woningzoeker .gw-actions a.gw-interest:hover { background: #80d741; border-color: #80d741; color: #fff; filter: brightness(.93); }
@media (max-width: 850px) { .gw-woningzoeker .gw-actions.gw-actions-cta { margin-top: 6px; } }
/* Uitlegregel onder het model vervalt: de intro staat op de pagina zelf */
.gw-woningzoeker p.gw-hint { display: none !important; }
/* Sitekop (Salient) scrolt op een pagina met de woningkiezer mee weg, zodat het model de volle schermhoogte krijgt */
html body:has(.gw-woningzoeker) #header-outer { position: absolute !important; }

/* 1.7.2: doelgroepkleur per woningtype (zoals homepage en prijslijst): balk links op het kaartje, typelabel in het detailpaneel */
.gw-woningzoeker .gw-card { box-shadow: inset 4px 0 0 var(--gw-type, transparent); }
.gw-woningzoeker .gw-tag.gw-typetag { background: var(--gw-type); color: #fff; font-weight: 700; letter-spacing: 1px; padding: 4px 8px; line-height: 1.3; }
/* 1.7.3: compacter op desktop, zodat filters, model, modelknoppen en woninginfo samen op één scherm passen */
@media (min-width: 851px) {
  .gw-woningzoeker .gw-topbar { margin-bottom: 14px; }
  .gw-woningzoeker .gw-topbar-left { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
  #modelCanvas { height: clamp(380px, min(48vw, 100vh - 285px), 570px); }
  .gw-woningzoeker .gw-details { padding: 20px; }
  .gw-woningzoeker .gw-detailgrid { gap: 10px 16px; margin: 14px 0; padding: 12px 14px; }
  .gw-woningzoeker .gw-detailgrid small { margin-bottom: 3px; }
  .gw-woningzoeker .gw-actions { margin-top: 14px; }
  .gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { padding: 9px 12px; }
  .gw-woningzoeker .gw-agent { margin-top: 14px; padding: 14px; grid-template-columns: 56px 1fr; gap: 10px 14px; }
  .gw-woningzoeker .gw-agent img { width: 56px !important; height: 56px !important; max-width: 56px; }
}
/* Detailpaneel nog compacter: gegevens in drie kolommen en het typelabel naast het bouwnummer zodra het paneel breed genoeg is */
@media (min-width: 851px) {
  .gw-woningzoeker .gw-side { container-type: inline-size; }
  .gw-woningzoeker .gw-details h2 { font-size: 24px !important; }
  .gw-woningzoeker .gw-details p { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
  .gw-woningzoeker .gw-actions a, .gw-woningzoeker .gw-actions button { padding: 8px 10px; }
  .gw-woningzoeker .gw-agent { padding: 12px 14px; gap: 8px 12px; }
  .gw-woningzoeker .gw-agent-actions a.gw-whatsapp, .gw-woningzoeker .gw-agent-actions a.gw-call { padding: 9px 12px; }
  .gw-woningzoeker .gw-details { padding: 18px 20px; }
  .gw-woningzoeker .gw-details > h2 { white-space: nowrap; }
  .gw-woningzoeker .gw-detailgrid { margin: 12px 0; padding: 10px 12px; }
  .gw-woningzoeker .gw-detailgrid small { font-size: 11.5px; }
  .gw-woningzoeker .gw-detailgrid strong { font-size: 15px; }
  .gw-woningzoeker .gw-actions { margin-top: 12px; }
  .gw-woningzoeker .gw-agent { margin-top: 12px; }
}
@container (min-width: 420px) {
  .gw-woningzoeker .gw-detailgrid { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .gw-woningzoeker .gw-details > .gw-typetag { float: right; margin: 7px 0 0 12px; font-size: 10px; letter-spacing: .5px; }
}
