/* ── Locations: cards + shared map ── */
.locations {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 1.4fr;
  border-bottom: 1px solid #e5e5e5;
}

.locations-list {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid #e5e5e5;
}

.location-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 100px;
  background: #ffffff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.location-card.active,
.location-card:target {
  border-color: #e69b26;
  box-shadow: 0 4px 16px rgba(15, 15, 66, 0.08);
}

.location-card:hover {
  border-color: #e69b26;
  box-shadow: 0 12px 28px rgba(15, 15, 66, 0.14);
  transform: translateY(-4px) scale(1.015);
}

/* ── Clinic photo placeholder ── */
.location-photo {
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-photo span {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* once a real photo is added, it fills the box */
.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-pin,
.map-pin span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f0f42;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-name {
  font-size: 22px;
  font-weight: 700;
  color: #0f0f42;
}

.clinic-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clinic-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c65105;
}

.location-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

.location-card p a {
  color: #0f0f42;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
}

.hours-day {
  font-size: 14px;
  color: #0f0f42;
  font-weight: 500;
}

.hours-time {
  font-size: 14px;
  color: #555;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.clinic-directions,
.location-show {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f0f42;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.location-show {
  background: none;
  border: none;
  cursor: pointer;
}

.clinic-directions:hover,
.location-show:hover {
  opacity: 1;
}

/* ── Map ── */
.locations-map {
  min-height: 560px;
  height: 100%;
  z-index: 0;
}

.map-pin {
  background: none;
  border: none;
}

.map-pin span {
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #0f0f42;
}

@media (max-width: 860px) {
  .locations {
    grid-template-columns: 1fr;
  }

  .locations-list {
    padding: 24px 16px;
    border-right: none;
  }

  .locations-map {
    min-height: 380px;
  }
}

/* WCAG 1.4.10 reflow: let the cards shrink and the buttons wrap on very narrow screens */
.locations > * { min-width: 0; }
.location-actions { flex-wrap: wrap; row-gap: 12px; }
@media (max-width: 480px) { .location-card { padding: 20px; } }
