.yaz-directory {
  --yaz-purple: #210037;
  --yaz-purple-light: #2b0c47;
  --yaz-coral: #ec5046;
  --yaz-magenta: #e702bf;
  --yaz-mint: #68e4c5;
  --yaz-white: #ffffff;
  --yaz-muted: #d8cfe0;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 18px;
  background: var(--yaz-purple);
  color: var(--yaz-white);
  font-family: Rubik, sans-serif;
}

.yaz-directory__controls {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(190px, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.yaz-directory__controls input,
.yaz-directory__controls select,
.yaz-directory__controls button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c9c1c4;
  border-radius: 30px;
  background: var(--yaz-white);
  color: var(--yaz-purple);
  font: inherit;
}

.yaz-directory__controls input[type="search"],
.yaz-directory__controls input[type="search"]:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--yaz-purple) !important;
  -webkit-text-fill-color: var(--yaz-purple);
}

.yaz-directory__controls input[type="search"]::placeholder {
  color: #6f6577 !important;
  opacity: 1;
}

.yaz-directory__controls button {
  width: auto;
  padding-inline: 22px;
  border: 0;
  background: linear-gradient(90deg, var(--yaz-coral) 0%, var(--yaz-magenta) 100%);
  color: var(--yaz-white);
  font-family: Poppins, sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.yaz-directory__controls input:focus,
.yaz-directory__controls select:focus,
.yaz-directory__controls button:focus-visible {
  outline: 3px solid var(--yaz-mint);
  outline-offset: 2px;
}

.yaz-directory__count {
  margin: 0 0 12px;
  color: var(--yaz-mint);
  font-family: Poppins, sans-serif;
  font-weight: 600;
}

.yaz-directory__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 20px;
  align-items: start;
}

.yaz-directory__map {
  min-height: 620px;
  border-radius: 10px;
  background: var(--yaz-purple-light);
  z-index: 1;
}

.yaz-directory__list {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.yaz-card {
  padding: 16px;
  border: 1px solid rgba(33, 0, 55, .12);
  border-radius: 12px;
  background: var(--yaz-white);
  color: var(--yaz-purple);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.yaz-card h3,
.yaz-card p { margin: 0 0 7px; }
.yaz-card p:last-child { margin-bottom: 0; }
.yaz-card h3 { font-family: Poppins, sans-serif; font-size: 1.12rem; line-height: 1.25; }
.yaz-card h3 a { color: var(--yaz-purple); text-decoration: none; }
.yaz-card h3 a:hover { color: var(--yaz-magenta); }
.yaz-card a { color: #a60086; }
.yaz-card__category { color: #8a006f; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.yaz-card__address { color: #5f5565; }
.yaz-directory__empty { padding: 24px; background: var(--yaz-purple-light); border-radius: 12px; }

.yaz-map-marker {
  background: transparent;
  border: 0;
}

.yaz-map-marker svg {
  display: block;
  width: 36px;
  height: 48px;
  filter: drop-shadow(0 4px 5px rgba(33, 0, 55, .48));
  overflow: visible;
}

.yaz-directory .leaflet-popup-content-wrapper,
.yaz-directory .leaflet-popup-tip {
  background: var(--yaz-purple-light);
  color: var(--yaz-white);
}

.yaz-directory .leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  font-family: Rubik, sans-serif;
}

.yaz-directory .yaz-map-tiles {
  filter: grayscale(.72) sepia(.18) hue-rotate(225deg) saturate(1.25) brightness(.72) contrast(1.22);
}

.yaz-directory .leaflet-control-zoom a {
  background: var(--yaz-purple-light);
  color: var(--yaz-white);
  border-color: rgba(255, 255, 255, .18);
}

@media (max-width: 850px) {
  .yaz-directory__controls { grid-template-columns: 1fr 1fr; }
  .yaz-directory__search { grid-column: 1 / -1; }
  .yaz-directory__layout { grid-template-columns: 1fr; }
  .yaz-directory__map { min-height: 420px; }
  .yaz-directory__list { max-height: none; }
}

@media (max-width: 520px) {
  .yaz-directory__controls { grid-template-columns: 1fr; }
  .yaz-directory__search { grid-column: auto; }
  .yaz-directory__controls button { width: 100%; }
  .yaz-directory__map { min-height: 340px; }
}
