/* ═══ MAP STYLES — Nayagaon Directory ═══ */

/* ── Businesses Map (archive page) ── */
.dm-view-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dm-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #1A2744;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.dm-view-btn.active,
.dm-view-btn:hover {
  background: #1A2744;
  border-color: #1A2744;
  color: #fff;
}
.dm-map-view-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(26,39,68,.14);
}
.dm-businesses-map {
  height: 600px;
  width: 100%;
  background: #eee;
}
@media (max-width: 767px) {
  .dm-businesses-map { height: 450px; }
}

/* ── Single Business Map ── */
.dm-single-biz-map {
  height: 260px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.dm-map-embed {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 8px;
}

/* ── Custom Map Markers ── */
.dm-map-marker {
  background: transparent !important;
  border: none !important;
}
.dm-marker-dot {
  width: 24px;
  height: 24px;
  background: #FF6B00;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(255,107,0,.4);
  transition: transform .15s;
}
.dm-marker-dot:hover {
  background: #1A2744;
}

/* ── Popups ── */
.dm-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(26,39,68,.18);
  padding: 0;
  overflow: hidden;
}
.dm-leaflet-popup .leaflet-popup-content {
  margin: 0;
}
.dm-map-popup {
  padding: 12px 14px;
  min-width: 180px;
}
.dm-popup-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #1A2744;
  margin-bottom: 4px;
}
.dm-popup-title a { color: inherit; text-decoration: none; }
.dm-popup-cat {
  display: inline-block;
  background: #FFF3E8;
  color: #FF6B00;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 5px;
}
.dm-popup-addr {
  font-size: .78rem;
  color: #64748B;
  margin: 4px 0;
  line-height: 1.4;
}
.dm-popup-phone {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #1A2744;
  margin-bottom: 6px;
  text-decoration: none;
}
.dm-popup-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #FF6B00;
  text-decoration: none;
}
.dm-map-no-locations {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.92);
  padding: 20px 24px;
  border-radius: 10px;
  text-align: center;
  font-size: .85rem;
  color: #64748B;
  max-width: 300px;
  pointer-events: none;
}

/* ── Home Mini Map Teaser ── */
.dm-map-teaser-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #1A2744 0%, #0f1a30 100%);
}
.dm-map-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 767px) {
  .dm-map-teaser-inner { grid-template-columns: 1fr; }
}
.dm-map-teaser-text h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.dm-map-teaser-text p {
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  line-height: 1.7;
}
.dm-map-teaser-preview {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: border-color .2s;
}
.dm-map-teaser-preview:hover {
  border-color: #FF6B00;
}

/* ── Areas Section ── */
.dm-areas-section { padding: 48px 0; }
.dm-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .dm-areas-grid { grid-template-columns: 1fr; }
}
.dm-area-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  text-decoration: none;
  transition: all .18s;
}
.dm-area-card:hover {
  border-color: #FF6B00;
  box-shadow: 0 4px 20px rgba(255,107,0,.12);
  transform: translateY(-2px);
}
.dm-area-icon {
  width: 52px;
  height: 52px;
  background: #FFF3E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6B00;
  flex-shrink: 0;
}
.dm-area-info { display: flex; flex-direction: column; gap: 2px; }
.dm-area-name { font-size: 1rem; font-weight: 700; color: #1A2744; }
.dm-area-desc { font-size: .78rem; color: #64748B; }
.dm-area-count { font-size: .75rem; font-weight: 600; color: #FF6B00; margin-top: 2px; }

/* ── Stats Bar ── */
.dm-stats-bar {
  background: #1A2744;
  padding: 20px 0;
}
.dm-stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.dm-stat-item {
  text-align: center;
}
.dm-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFC42E;
  font-family: 'Poppins', sans-serif;
}
.dm-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}

/* ── Map dot on card ── */
.dm-map-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Archive header flex ── */
.dm-archive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* ── Leaflet layer control ── */
.leaflet-control-layers {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(26,39,68,.12) !important;
  border: 1px solid #E2E8F0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .82rem !important;
}
