﻿.map-section {
  padding: 100px 0 0;
  background: var(--pu-off);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--pu-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 480px;
  box-shadow: var(--sh-2);
}

.map-layout .side {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: var(--pu-blue-900);
  color: #fff;
}

.map-layout .side .kicker { color: var(--pu-sand-400); }

.map-layout .side h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}

.map-layout .side .addr {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 14px;
}

.map-layout .side .addr small {
  display: block;
  font: 400 14px var(--f-mono);
  color: var(--pu-blue-300);
  letter-spacing: 0.04em;
  margin-top: 6px;
  text-transform: uppercase;
}

.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.map-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font: 500 13.5px var(--f-body);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.map-app-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.map-app-btn .app-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.map-area {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}

/* Leaflet container fills the area */
.map-area .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 480px;
  font-family: var(--f-body);
}

/* Popup */
.pk-popup .leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 0;
  overflow: hidden;
}

.pk-popup .leaflet-popup-content { margin: 0; }
.pk-popup .leaflet-popup-tip-container { margin-top: -1px; }

.pk-map-popup { padding: 14px 18px; }

.pk-map-popup strong {
  display: block;
  font: 600 14px var(--f-body);
  color: var(--pu-blue-900);
  margin-bottom: 4px;
}

.pk-map-popup span {
  display: block;
  font: 400 12px var(--f-mono);
  color: var(--pu-ink-3);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.pk-popup-actions {
  display: flex;
  gap: 6px;
}

.pk-popup-app {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--pu-line);
  background: var(--pu-off);
  color: var(--pu-ink-2);
  font: 500 11.5px var(--f-body);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.pk-popup-app:hover {
  background: var(--pu-blue-50);
  border-color: var(--pu-blue-200);
  color: var(--pu-blue-900);
}

/* Teardrop pin marker */
.pk-pin-wrap {
  width: 50px;
  height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(20,30,80,.38));
}

.pk-pin-head {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid rgba(4, 63, 136, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-pin-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transform: rotate(45deg);
}


@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-area { min-height: 320px; }
}

@media (max-width: 768px) {
  .map-section { padding: 60px 0 0; }
  .map-layout .side h3 { font-size: 30px; }
  .map-layout .side .addr { font-size: 16px; }
  .map-app-btn { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 1024px) {
  .map-section { padding: 60px 0; }

  /* App buttons fill the row: side by side while both labels fit,
     one per row at full width when they don't. */
  .map-app-btn { flex: 1 1 0; min-width: max-content; justify-content: center; }
}
