/* ── QUVÉE Kaartmodule ─────────────────────────────────────────────────────── */

/* ── Container ── */
#quvee-map-section {
  display: none;
  margin: 0 0 24px;
}
#quvee-map-section.visible {
  display: block;
}

/* Desktop: kaart + resultaten naast elkaar */
@media (min-width: 900px) {
  #quvee-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  #quvee-map-card {
    position: sticky;
    top: 16px;
  }
}

/* Kaart-card */
#quvee-map-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(44, 24, 16, 0.10), 0 1px 4px rgba(44, 24, 16, 0.06);
  position: relative;
}

#quvee-map-canvas {
  width: 100%;
  height: 360px;
}
@media (min-width: 900px) {
  #quvee-map-canvas { height: 440px; }
}
@media (max-width: 600px) {
  #quvee-map-canvas { height: 300px; }
}

/* ── MapLibre override: verberg default controls ── */
#quvee-map-canvas .maplibregl-ctrl-top-right,
#quvee-map-canvas .maplibregl-ctrl-bottom-left,
#quvee-map-canvas .maplibregl-ctrl-logo,
#quvee-map-canvas .maplibregl-ctrl-attrib-inner a[href*="maptiler"],
#quvee-map-canvas .maplibregl-ctrl-attrib-inner a[href*="openstreetmap"] {
  display: none !important;
}
#quvee-map-canvas .maplibregl-ctrl-attrib {
  background: rgba(245, 239, 230, 0.85) !important;
  border-radius: 6px 0 0 0;
  font-size: 10px;
  color: #2C1810;
}
#quvee-map-canvas .maplibregl-ctrl-attrib a {
  color: #C9A96E !important;
}

/* ── Custom navigatie-knoppen ── */
.qmap-nav {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.qmap-btn {
  width: 34px;
  height: 34px;
  background: #F5EFE6;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 8px;
  color: #2C1810;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(44, 24, 16, 0.12);
  transition: background 120ms, border-color 120ms;
}
.qmap-btn:hover {
  background: #EDE3D3;
  border-color: #C9A96E;
}

/* ── Kadastrale kaart info-balk ── */
.qmap-kad-bar {
  background: rgba(245, 239, 230, 0.95);
  border-top: 1px solid rgba(201, 169, 110, 0.25);
  padding: 8px 14px;
  font-size: 11px;
  color: #5C3D2E;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}
.qmap-kad-bar strong { color: #2C1810; }

/* ── Luchtfoto-pin ── */
.qmap-pin {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qmap-pin-inner {
  width: 56px;
  height: 56px;
  background: #F5EFE6;
  border: 2.5px solid #C9A96E;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.22);
  position: relative;
  transition: box-shadow 200ms;
}
.qmap-pin:hover .qmap-pin-inner {
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.40), 0 2px 8px rgba(44, 24, 16, 0.18);
}
.qmap-pin-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #EDE3D3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 200ms;
}
.qmap-pin-thumb.loading { opacity: 0.6; }

.qmap-pin-tip {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #C9A96E;
  margin-top: -1px;
}

@keyframes qmap-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,169,110,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(201,169,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); }
}
.qmap-pin-pulse .qmap-pin-inner {
  animation: qmap-pulse 1s ease-out;
}

/* ── Prijs-pill ── */
.qmap-prijs-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2C1810;
  color: #F5EFE6;
  border-radius: 100px;
  padding: 5px 11px 5px 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(44, 24, 16, 0.28);
  cursor: default;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
  letter-spacing: 0.01em;
}
.qmap-prijs-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 5px 18px rgba(44, 24, 16, 0.32);
}
.qmap-pill-badge {
  width: 18px;
  height: 18px;
  background: #C9A96E;
  color: #2C1810;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qmap-pill-prijs {
  font-variant-numeric: tabular-nums;
}

/* ── Comparables tray ── */
#quvee-map-tray {
  display: none;
  background: rgba(245, 239, 230, 0.97);
  border-top: 1px solid rgba(201, 169, 110, 0.3);
  padding: 10px 0 8px;
}
.qmap-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5C3D2E;
}
.qmap-tray-close {
  background: none;
  border: none;
  color: #8A7A6A;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.qmap-tray-close:hover { color: #2C1810; }

.qmap-tray-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qmap-tray-scroll::-webkit-scrollbar { display: none; }

.qmap-comp-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(44, 24, 16, 0.08);
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.qmap-comp-card:hover {
  border-color: #C9A96E;
  box-shadow: 0 3px 14px rgba(44, 24, 16, 0.14);
  transform: translateY(-2px);
}
.qmap-comp-thumb {
  width: 100%;
  height: 70px;
  background: #EDE3D3;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qmap-comp-body {
  padding: 7px 9px 8px;
}
.qmap-comp-type {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5C3D2E;
  margin-bottom: 2px;
}
.qmap-comp-detail {
  font-size: 11px;
  color: #8A7A6A;
  margin-bottom: 4px;
}
.qmap-comp-m2prijs {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2C1810;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}
.qmap-comp-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.qmap-comp-label.label-a  { background: #DDE5D8; color: #3A5C2E; }
.qmap-comp-label.label-b  { background: #E5EDD8; color: #4A6030; }
.qmap-comp-label.label-c  { background: #F0EDD8; color: #5A5020; }
.qmap-comp-label.label-de { background: #F0DDD8; color: #602820; }

.qmap-tray-disclaimer {
  padding: 4px 14px 0;
  font-size: 10px;
  color: #8A7A6A;
  font-style: italic;
  font-family: 'Inter', sans-serif;
}

/* ── Responsive resultaten-kolom (bij map naast) ── */
@media (min-width: 900px) {
  #quvee-results-col > * { margin-left: 0; margin-right: 0; }
}
