/*
 * Screen 06 "Lokacije" (template-parts/sd/locations/page.php, design/Lokacije.dc.html).
 * Every selector starts with .sd-locations; the pin and its label are the Leaflet elements sd-locations.js creates.
 */
.sd-locations { display: flex; flex-direction: column; gap: 24px; }
.sd-locations__head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.sd-locations__lead { margin: 0; font-size: 16px; line-height: 1.55; }

.sd-locations__cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.sd-locations__list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sd-locations__side { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Laboratory card */
.sd-locations__lab { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.sd-locations__lab.is-active { border-left: 4px solid var(--sd-orange); }
.sd-locations__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sd-locations__top .sd-tag { flex: none; }
.sd-locations__top .sd-tag[hidden] { display: none; }
.sd-locations .sd-locations__kv { grid-template-columns: 90px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; line-height: 1.45; }
.sd-locations__kv dd a { display: inline-block; margin-right: 10px; }
.sd-locations__kv dd a:hover, .sd-locations__contact-list a:hover { text-decoration: underline; }
.sd-locations__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sd-locations__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-locations a:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

/* Map: the design's teal grid shows until the tiles arrive (and when scripts are off) */
.sd-locations__map { position: relative; z-index: 0; min-height: 560px; border: 1px solid #cfe3e3; border-radius: 16px; overflow: hidden;
  background-color: #e6f3f3; background-image: linear-gradient(#d7e9e9 1px, transparent 1px), linear-gradient(90deg, #d7e9e9 1px, transparent 1px); background-size: 40px 40px; }
.sd-locations__map.leaflet-container { font-family: 'Raleway', sans-serif; }
.sd-locations-pin { cursor: pointer; }
.sd-locations-pin::before { content: ""; display: block; width: 28px; height: 28px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--sd-orange); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transform: rotate(-45deg); }
.sd-locations-pin:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 6px; border-radius: 50%; }
.sd-locations-tip.leaflet-tooltip { padding: 4px 8px; border: 0; border-radius: 6px; background: #fff; color: var(--sd-ink); font-size: 12px; font-weight: 700; line-height: 1.3; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.sd-locations-tip.leaflet-tooltip::before { display: none; }

/* Home collection */
.sd-locations__visit { display: flex; flex-direction: column; gap: 10px; background: #fff8f0; border-color: #f3d2ad; }
.sd-locations__visit p { margin: 0; font-size: 14px; line-height: 1.55; }
.sd-locations__visit .sd-price { font-size: inherit; }
.sd-locations__visit .sd-btn { align-self: flex-start; }

/* Contact for patients */
.sd-locations__contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: var(--sd-soft); border-color: #ececec; scroll-margin-top: 16px; }
.sd-locations__contact-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sd-locations__contact-list { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; line-height: 1.5; }
.sd-locations__contact-list li + li::before { content: "·"; margin-right: 8px; }

@media (max-width: 640px) {
  .sd-locations__cols { gap: 24px; }
  .sd-locations__map { min-height: 380px; }
  .sd-locations__top { flex-wrap: wrap; }
  .sd-locations__contact-list { flex-direction: column; }
  .sd-locations__contact-list li + li::before { content: none; }
}
