/* ══════════════════════════════════════════════
   SHARED DIRECTORY STYLES
   Used by healers-rakee.html and healers-hijama.html.
   Reuses design tokens (colors, fonts, --radius, etc.)
   already defined in styles.css — load this AFTER styles.css.
   Load pages.css too for the shared .page-hero used above this.
══════════════════════════════════════════════ */

.directory-section {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.directory-search {
  flex: 1;
  min-width: 220px;
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26,8,0,.2);
  background: #fff;
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--tr);
}
.directory-search:focus { border-color: var(--tan-dk); }
.directory-region-select {
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26,8,0,.2);
  background: #fff;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.directory-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  align-items: start;
}
.directory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 560px;
  overflow-y: auto;
  padding-right: .3rem;
}
.directory-card {
  background: #fffaf0;
  border: 1px solid rgba(26,8,0,.08);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(26,8,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  cursor: pointer;
}
.directory-card:hover,
.directory-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,8,0,.14);
  border-color: rgba(201,168,124,.5);
}
.directory-card-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.directory-card-tag {
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--tan);
  padding: .28em .8em;
  border-radius: 50px;
}
.directory-card-location {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--ink-soft);
}
.directory-card h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.directory-card p {
  font-family: var(--font-body);
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.directory-card-contact {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  color: var(--tan-dk);
}

.directory-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(26,8,0,.14), 0 2px 8px rgba(26,8,0,.08);
  border: 3px solid #e8d5b0;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: #e8d5b0;
}
.directory-map {
  width: 100%;
  height: 560px;
}
/* ── Old-world map treatment — sepia the live OSM tiles so the
   real, interactive map reads as an antique chart. ────────── */
.directory-map-wrap .leaflet-tile-pane {
  filter: sepia(.65) saturate(1.4) hue-rotate(-8deg) contrast(1.08) brightness(1.04);
}
.directory-map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(60,30,4,.35), inset 0 0 18px rgba(60,30,4,.25);
  background: radial-gradient(ellipse at center, transparent 55%, rgba(60,30,4,.12) 100%);
}
.leaflet-popup-content-wrapper {
  background: #fdf6e3;
  border: 1px solid rgba(26,8,0,.15);
  border-radius: 6px;
}
.leaflet-popup-tip { background: #fdf6e3; }
.leaflet-popup-content h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 .3rem;
  color: var(--ink);
}
.leaflet-popup-content p {
  font-family: var(--font-body);
  font-size: .85rem;
  margin: .2rem 0;
  color: var(--ink-soft);
}
.leaflet-control-zoom a {
  background: #fdf6e3 !important;
  color: var(--ink) !important;
  border-color: rgba(26,8,0,.15) !important;
}
.leaflet-control-zoom a:hover { background: var(--tan) !important; }
.leaflet-control-attribution {
  background: rgba(253,246,227,.85) !important;
  font-family: var(--font-ui);
}

.directory-empty {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-body);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .directory-layout { grid-template-columns: 1fr; }
  .directory-map-wrap { position: static; order: -1; }
  .directory-map { height: 360px; }
  .directory-list { max-height: none; }
}

/* ── Submission note ─────────────────────────────── */
.directory-note {
  background: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.directory-note h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cream);
  margin-bottom: .75rem;
}
.directory-note p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(240,228,204,.65);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.directory-note a.btn { display: inline-block; }
