/* Interactive Maps UI — ЗА ДЕТЕЙ! & Конгресс отцов */
.map-shell {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d3e2e8);
  border-radius: 18px;
  box-shadow: var(--shadow, 0 10px 30px rgba(16, 35, 61, 0.07));
  overflow: hidden;
  margin-bottom: 28px;
}

.map-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #d3e2e8);
  background: var(--surface-alt, #f8fafc);
  display: grid;
  gap: 12px;
}

.map-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.map-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border, #cbd5e1);
  background: #ffffff;
  color: var(--text, #0e2836);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.map-pill:hover {
  border-color: var(--primary, #0f5c7a);
  color: var(--primary, #0f5c7a);
}

.map-pill.active {
  background: var(--primary, #0f5c7a);
  border-color: var(--primary, #0f5c7a);
  color: #ffffff;
}

.map-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.map-pill-count {
  font-size: 12px;
  opacity: 0.78;
  font-weight: 700;
}

.map-search-input {
  flex: 1;
  min-width: 220px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #cbd5e1);
  background: #ffffff;
  color: var(--text, #0e2836);
  font-size: 14px;
}

.map-search-input:focus {
  outline: none;
  border-color: var(--primary, #0f5c7a);
  box-shadow: 0 0 0 3px rgba(15, 92, 122, 0.12);
}

.map-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #476170);
  white-space: nowrap;
}

.map-canvas {
  width: 100%;
  height: 540px;
  background: #e8eef4;
  z-index: 1;
}

.map-canvas.map-canvas-full {
  height: 640px;
}

.map-canvas.map-canvas-mini {
  height: 270px;
}

/* Custom circular colored pin marker */
.zd-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.32);
}

.zd-pin-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: rotate(45deg);
}

.zd-pin-featured {
  box-shadow: 0 0 0 3px rgba(217, 119, 50, 0.45), 0 4px 14px rgba(15, 23, 42, 0.35);
}

/* Cluster styling */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(15, 92, 122, 0.22);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--primary, #0f5c7a);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Yandex Maps Balloon card */
.map-popup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0e2836;
  max-width: 295px;
}

.map-popup-img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.map-popup-body {
  padding: 13px 15px 14px;
}

.map-popup-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf3f5;
  color: #0f5c7a;
  margin-bottom: 6px;
}

.map-popup-partner {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  margin-left: 4px;
  margin-bottom: 6px;
}

.map-popup-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #0e2836;
}

.map-popup-meta {
  font-size: 12px;
  color: #476170;
  margin: 0 0 7px;
  line-height: 1.4;
}

.map-popup-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 0 0 12px;
}

.map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.map-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
}

.map-popup-btn-primary {
  background: var(--primary, #0f5c7a);
  color: #ffffff !important;
}

.map-popup-btn-primary:hover {
  background: var(--primary-dark, #0a4157);
}

.map-popup-btn-yandex {
  background: #fef3c7;
  color: #92400e !important;
  border: 1px solid #f59e0b;
}

.map-popup-btn-yandex:hover {
  background: #fde68a;
}

.map-popup-btn-outline {
  background: #f8fafc;
  color: #0e2836 !important;
  border: 1px solid #cbd5e1;
}

.map-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.map-list-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d3e2e8);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-list-card:hover {
  border-color: var(--primary, #0f5c7a);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.map-list-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.map-cta-banner {
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--surface-alt, #eaf3f5);
  border: 1px solid var(--border, #d3e2e8);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .map-canvas { height: 420px; }
  .map-canvas.map-canvas-full { height: 480px; }
  .map-toolbar { padding: 14px; }
}
