.clinic-map {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 2fr);
  gap: 0;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.clinic-map * {
  box-sizing: border-box;
}

.clinic-map-sidebar {
  padding: 16px;
  overflow-y: auto;
  height: 100%;
  border-right: 1px solid #e3e3e3;
  background: #fcfcfc;
}

.clinic-map-sidebar::-webkit-scrollbar {
  width: 10px;
}

.clinic-map-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.clinic-map-sidebar::-webkit-scrollbar-thumb {
  background: rgba(136, 136, 136, 0.25);
}

.clinic-map-filter-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
}

.clinic-map-service-filter {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.clinic-map-locations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.clinic-map-location {
  margin: 0;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  scroll-margin-block-start: 100px;
}

.clinic-map-location:hover {
  background: #f5f5f5;
  border-color: #dadada;
}

.clinic-map-location.is-active {
  border: 2px solid #222;
  background: #fff;
}

.clinic-map-distance {
  color: #7b7b7b;
  font-size: 13px;
  margin-bottom: 8px;
}

.clinic-map-location-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.clinic-map-address,
.clinic-map-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.clinic-map-address:hover,
.clinic-map-phone:hover {
  text-decoration: underline;
}

.clinic-map-services {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clinic-map-services li {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background-color: rgba(1, 211, 241, 0.22);
}

.clinic-map-booking {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.clinic-map-booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: #000029;
}

.clinic-map-booking-link:hover {
  color: #fff;
}

.clinic-map-booking-link:visited {
  color: #fff;
}

.clinic-map-empty {
  color: #666;
  margin: 8px 0 0;
}

.clinic-map-map-wrap {
  position: relative;
  height: 100%;
  min-height: 560px;
}

.clinic-map-canvas {
  width: 100%;
  height: 100%;
}

.clinic-map-share {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1a57a5;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.clinic-map-share:hover {
  background: rgba(255, 255, 255, 1);
}

.clinic-map-marker {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.clinic-map-marker-image {
  width: 34px;
  height: auto;
  display: block;
}

.clinic-map-marker.is-selected .clinic-map-marker-image {
  width: 52px;
}

.clinic-map-marker.is-fallback-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0fa4d5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.clinic-map-marker.is-fallback-marker.is-selected {
  width: 28px;
  height: 28px;
  background: #1f1f1f;
}

.clinic-map .mapboxgl-ctrl-geocoder {
  min-width: 250px;
  max-width: min(92%, 320px);
}

@media (max-width: 1076px) {
  .clinic-map {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .clinic-map {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .clinic-map-sidebar {
    order: 2;
    height: auto;
    max-height: none;
    overflow-y: visible;
    border-right: 0;
    border-top: 1px solid #e3e3e3;
  }

  .clinic-map-location {
    scroll-margin-block-start: 0;
  }

  .clinic-map-map-wrap {
    order: 1;
    height: 70vh;
    min-height: 420px;
  }

  .clinic-map .mapboxgl-ctrl-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .clinic-map-share {
    position: absolute;
    left: 12px;
    bottom: 12px;
  }
}

.clinic-map-notice {
  padding: 14px 16px;
  border: 1px solid #f1d9a9;
  background: #fff5dd;
  color: #644500;
  border-radius: 8px;
}

.clinic-map-noscript {
  margin: 14px;
  padding: 14px 16px;
  border: 1px solid #f1d9a9;
  background: #fff5dd;
  color: #644500;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
