/* ===========================
   MAP (CONTACT)
   =========================== */

.map {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 14px;
  overflow: hidden;
  height: 300px;
  background: rgba(0, 0, 0, .05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .06);
}

.map__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.map[data-has-embed="1"] .map__iframe {
  display: block;
}

.map__canvas {
  position: absolute;
  inset: 0;
}

.map[data-map-provider="leaflet"] .map__canvas {
  display: block;
}

.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.map[data-has-embed="1"] .map__placeholder {
  display: none;
}

.map__ph-title {
  font-size: 13px;
  color: var(--fg);
  opacity: .9;
  margin: 0 0 6px;
}

.map__ph-sub {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.map__open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  font-size: 12px;
  color: var(--fg);
  transition: transform var(--t) ease, background var(--t) ease, border-color var(--t) ease, opacity var(--t) ease;
}

.map[data-has-embed="1"] .map__open {
  opacity: .92;
}

.map__open:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}

.map__open:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .25);
  outline-offset: 2px;
}

.map[data-has-url="0"] .map__open {
  display: none;
}

/* --- Leaflet: clean grayscale look --- */

.map[data-map-provider="leaflet"] .leaflet-container {
  background: rgba(0, 0, 0, .06);
  font: inherit;
  cursor: pointer;
}

.map[data-map-provider="leaflet"] .leaflet-container:active {
  cursor: grabbing;
}

.map[data-map-provider="leaflet"] .map-pane--base .leaflet-tile {
  filter: grayscale(1) contrast(1.10) brightness(0.98);
}

.map[data-map-provider="leaflet"] .map-pane--labels .leaflet-tile {
  filter: contrast(1.45) brightness(0.88);
}

.map[data-map-provider="leaflet"] .leaflet-control-container {
  opacity: .9;
}

.map[data-map-provider="leaflet"] .leaflet-control-attribution {
  background: transparent;
  margin: 0 0 10px 10px;
  padding: 0;
  color: rgba(18, 18, 18, .30);
  font-size: 10px;
}

.map[data-map-provider="leaflet"] .leaflet-control-attribution a {
  color: rgba(18, 18, 18, .42);
  text-decoration: none;
}

.map[data-map-provider="leaflet"] .leaflet-control-attribution a:hover {
  text-decoration: underline;
}

/* --- Pin marker --- */

.map-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  position: relative;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: #111;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  opacity: .92;
}

.map-pin-svg {
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .18));
}

/* --- Expand button --- */

.map__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  color: rgba(18, 18, 18, .70);
  z-index: 1005;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: transform var(--t) ease, background var(--t) ease, border-color var(--t) ease;
}

.map__expand::before {
  content: "⤢";
  font-size: 14px;
  line-height: 1;
}

.map__expand:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}

.map__expand:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .25);
  outline-offset: 2px;
}

.map:hover .map__expand,
.map:focus-within .map__expand {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.map[data-has-url="0"] .map__expand {
  display: none;
}

/* --- Road / POI labels --- */

.map-road-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1px;
  color: rgba(20, 20, 20, .62);
  white-space: nowrap;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .98),
    0 -1px 0 rgba(255, 255, 255, .98),
    1px 0 0 rgba(255, 255, 255, .98),
    -1px 0 0 rgba(255, 255, 255, .98),
    1px 1px 0 rgba(255, 255, 255, .98),
    -1px 1px 0 rgba(255, 255, 255, .98),
    1px -1px 0 rgba(255, 255, 255, .98),
    -1px -1px 0 rgba(255, 255, 255, .98);
  transform-origin: 50% 50%;
}

.map-road-label.is-zoom-small {
  font-size: 8px;
  opacity: .92;
}

.map-road-label--maski.is-zoom-small {
  font-size: 8px;
  opacity: .90;
}

.map-road-label--sumer {
  transform: translate(-50%, -50%) rotate(32deg);
}

.map-road-label--maski {
  transform: translate(-50%, -50%) rotate(0deg);
  font-weight: 600;
}
