/* ===== Layout ===== */
.obs-map-layout {
  display: grid;
  grid-template-columns: min(380px, 100%) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .obs-map-layout {
    display: flex;
    flex-direction: column-reverse;
  }
}

.obs-map-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.obs-map-main {
  width: 100%;
}

#obs-bedrijven-map,
#obs-scholen-map {
  width: 100%;
  height: min(86vh, 820px);
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f7fa;
}

@media (max-width: 767px) {
  #obs-bedrijven-map,
  #obs-scholen-map {
    height: min(62vh, 620px);
    min-height: 360px;
  }
}

/* ===== Controls ===== */
.obs-map-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#obs-map-search {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  outline: none;
  box-sizing: border-box;
}

#obs-map-search::placeholder {
  color: #6b7280;
}

#obs-map-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.obs-map-level-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.obs-map-level-filter[hidden] {
  display: none !important;
}

.obs-map-level-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: #374151;
  cursor: pointer;
  position: static !important;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  margin: 0;
}

.obs-map-level-filter input[type="radio"] {
  margin: 0;
}

#obs-map-reset {
  align-self: flex-start;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

#obs-map-reset:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ===== List header ===== */
.obs-map-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

#obs-list-title {
  margin: 0;
}

#obs-list-count {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

/* ===== List ===== */
#obs-location-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 640px);
  min-height: 0;
  padding-right: 8px;
}

.obs-location-item {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.obs-location-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.obs-location-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.obs-location-title {
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.obs-location-meta {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.3;
}

.obs-location-chev {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.obs-location-chev path {
  stroke: #2563eb;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Google Maps info window ===== */
.gm-style .gm-style-iw-c {
  max-width: 360px !important;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  padding: 0;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-width: 340px !important;
}

.gm-style .gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  opacity: 1;
}

.gm-style .gm-ui-hover-effect > span {
  background-color: #6b7280 !important;
}

.gm-style .gm-ui-hover-effect:hover > span {
  background-color: #111827 !important;
}

.obs-iw {
  padding: 20px;
  max-width: 340px;
}

.obs-iw-title {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111827;
}

.obs-iw-niveau,
.obs-iw-provincie,
.obs-iw-address,
.obs-iw-contact,
.obs-iw-tel,
.obs-iw-email {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 8px;
}

.obs-iw-address {
  margin-bottom: 12px;
}

.obs-iw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.obs-iw-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d7dde5;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.obs-iw-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

@media (max-width: 767px) {
  .gm-style .gm-style-iw-c {
    max-width: 260px !important;
  }

  .gm-style .gm-style-iw-d {
    max-width: 240px !important;
  }

  .obs-iw {
    padding: 16px;
  }
}

/* ===== Scrollbar ===== */
#obs-location-list::-webkit-scrollbar {
  width: 8px;
}

#obs-location-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
}

#obs-location-list::-webkit-scrollbar-track {
  background: transparent;
}
