/*
 * Location maps on the contact pages. Each location is a card: a map with a marker,
 * the address, and buttons to open the place in Balad, Neshan or Google Maps for directions.
 * The map comes from OpenStreetMap (no API key). When the place is registered on Balad,
 * put its Balad place ID in data-balad-place on the card and the card shows Balad's map instead
 * (see js/location-map.js).
 */
#loc.lm { padding: 96px 0 64px; background: #fff; }
.lm .section-header { margin-bottom: 36px; }
.lm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.lm-card { border: 1px solid #e3e6ea; background: #fff; display: flex; flex-direction: column; text-align: start; }
.lm-map { position: relative; aspect-ratio: 16 / 10; background: #eef0f2; border-bottom: 4px solid var(--lm-accent); }
.lm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lm-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lm .lm-info h3 { font-size: 19px; font-weight: 700; margin: 0; color: #1e2329; }
[dir="rtl"] .lm .lm-info h3 { font-family: inherit; }
.lm-info address { margin: 0; color: #5d6672; font-size: 15px; line-height: 1.7; font-style: normal; }
.lm-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.lm-go a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid #cfd4da; color: #1e2329; font-size: 14px; font-weight: 600; background: #fff;
}
.lm-go a:hover { border-color: #1e2329; }
.lm-go a.lm-main { background: var(--lm-accent); border-color: var(--lm-accent); color: var(--lm-on-accent); }
.lm-go a.lm-main:hover { filter: brightness(.95); }
.lm-go a:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; }
@media (max-width: 640px) {
  #loc.lm { padding: 84px 0 40px; }
  .lm-grid { grid-template-columns: 1fr; }
}

/* Diba PTC colours */
.lm { --lm-accent: #18d26e; --lm-on-accent: #fff; }
