/* MUNDP — interactive satellite map of Istanbul districts (venue/istanbul).
   Self-contained: only .ist-* classes, safe to remove with the section. */

.ist-map-section {
  padding: 0.5rem 0 5rem;
}

.ist-map-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ist-map-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2b4da0;
  margin-bottom: 0.75rem;
}

.ist-map-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #0a1f4d;
}

.ist-map-sub {
  margin: 0;
  color: #4c5a78;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- frame ---------- */
.ist-map-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0a1626;
  box-shadow:
    0 34px 70px -34px rgba(10, 31, 77, 0.55),
    0 0 0 1px rgba(10, 31, 77, 0.1);
}

.ist-map-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- districts ----------
   Districts carry a low-opacity navy tint over the imagery so labels stay
   readable; hovering a district lifts its tint like a spotlight. */
.ist-district {
  fill: rgba(9, 22, 48, 0.26);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease;
  outline: none;
}

.ist-district:hover,
.ist-district:focus-visible,
.ist-district.is-active {
  fill: rgba(96, 138, 230, 0.16);
  stroke: #fff;
  stroke-width: 3;
}

.ist-district.venue {
  fill: rgba(150, 110, 15, 0.35);
  stroke: rgba(255, 218, 120, 0.9);
  stroke-width: 2.2;
}

.ist-district.venue:hover,
.ist-district.venue:focus-visible,
.ist-district.venue.is-active {
  fill: rgba(255, 207, 77, 0.18);
  stroke: #ffe9b0;
  stroke-width: 3.2;
}

/* ---------- map typography ---------- */
.ist-label {
  font-family: Lato, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: #fff;
  stroke: rgba(4, 14, 34, 0.8);
  stroke-width: 3.5;
  paint-order: stroke fill;
  text-anchor: middle;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ist-label.sm {
    display: none;
  }
}

.ist-sea-label {
  font-family: Lato, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.45em;
  fill: rgba(255, 255, 255, 0.4);
  text-anchor: middle;
  pointer-events: none;
}

.ist-attrib {
  font-family: Lato, sans-serif;
  font-size: 13px;
  fill: rgba(255, 255, 255, 0.55);
  text-anchor: end;
  pointer-events: none;
}

/* ---------- venue marker ---------- */
.ist-venue-ring {
  fill: none;
  stroke: #ffcf4d;
  stroke-width: 3;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: ist-pulse 2.4s ease-out infinite;
}

.ist-venue-star {
  fill: #ffcf4d;
  stroke: rgba(4, 14, 34, 0.85);
  stroke-width: 1;
  pointer-events: none;
}

.ist-venue-text {
  font-family: Lato, sans-serif;
  font-size: 26px;
  font-weight: 700;
  fill: #ffe9b0;
  stroke: rgba(4, 14, 34, 0.8);
  stroke-width: 3.5;
  paint-order: stroke fill;
  text-anchor: middle;
  pointer-events: none;
}

@keyframes ist-pulse {
  0%   { transform: scale(0.55); opacity: 1; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* ---------- info card ---------- */
.ist-map-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: min(310px, 74%);
  padding: 0.9rem 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  border-top: 3px solid #2b4da0;
  box-shadow: 0 18px 40px -14px rgba(4, 14, 34, 0.65);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ist-map-card.show {
  opacity: 1;
  transform: none;
}

.ist-map-card.venue {
  border-top-color: #d9a521;
}

.ist-card-side {
  font-family: Lato, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2b4da0;
}

.ist-map-card.venue .ist-card-side {
  color: #a97c0e;
}

.ist-card-name {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #0a1f4d;
}

.ist-card-blurb {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #42506e;
}

.ist-card-marks {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #6a7691;
}

.ist-card-marks strong {
  color: #33466f;
  font-weight: 700;
}

.ist-card-go {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2b4da0;
}

/* ---------- legend & hint ---------- */
.ist-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 1.25rem;
}

.ist-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  color: #33466f;
}

.ist-chip .star {
  color: #d9a521;
  font-size: 1.1em;
}

.ist-chip.muted {
  color: #6a7691;
}

.ist-map-hint {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8a93a8;
}

.ist-map-hint a {
  text-decoration: underline;
}

/* ---------- touch devices: pin the card to the bottom ---------- */
@media (hover: none) {
  .ist-map-card {
    top: auto !important;
    left: 50% !important;
    bottom: 12px;
    transform: translate(-50%, 6px) scale(0.98);
    width: min(340px, 92%);
  }
  .ist-map-card.show {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ist-district,
  .ist-map-card {
    transition: none;
  }
  .ist-venue-ring {
    animation: none;
    opacity: 0;
  }
}
