.fv-map { padding: 24px 0; }
.fv-map__header { max-width: 980px; margin: 0 auto 16px; padding: 0 16px; }
.fv-map__header h2 { font-size: 20px; margin: 0 0 6px; }
.fv-map__sub { margin: 0; opacity: 0.85; line-height: 1.45; }

.fv-map__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Mapa: mniej szarości, więcej aurory (blue + jade + gold) === */
.fv-map__canvas {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;

  background:
    radial-gradient(920px 520px at 18% 18%, rgba(36,110,212,0.20), transparent 62%),
    radial-gradient(820px 620px at 70% 45%, rgba(94,165,155,0.16), transparent 60%),
    radial-gradient(760px 520px at 55% 78%, rgba(229,201,139,0.14), transparent 58%),
    rgba(227,231,238,0.60);

  box-shadow: 0 14px 50px rgba(0,0,0,0.08) inset;
}

/* SVG inside canvas */
.fv-map__canvas svg { width: 100%; height: 100%; display: block; }

.fv-map__side { position: sticky; top: 14px; }

.fv-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(16,19,38,0.92);
  color: rgba(227,231,238,0.96);
  box-shadow: 0 12px 38px rgba(0,0,0,0.22);
}

.fv-card__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(227,231,238,0.14);
  color: rgba(227,231,238,0.92);
  cursor: pointer;
}

.fv-card__img { width: 100%; height: 168px; object-fit: cover; display: block; }
.fv-card__body { padding: 14px 14px 16px; }
.fv-card__title { margin: 0 0 6px; font-size: 16px; }
.fv-card__desc { margin: 0 0 10px; opacity: 0.9; line-height: 1.45; }
.fv-card__wow { margin: 0 0 14px; color: rgba(229,201,139,0.95); font-weight: 600; }
.fv-card__cta {
  display: inline-flex;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(229,201,139,0.14);
  color: rgba(227,231,238,0.95);
  border: 1px solid rgba(229,201,139,0.26);
}

.fv-legend {
  margin-top: 12px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(227,231,238,0.35);
}
.fv-legend__item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.fv-legend__dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.fv-legend__dot--cities { background: rgba(122,118,125,0.75); }
.fv-legend__dot--zones { background: rgba(94,165,155,0.22); outline: 1px solid rgba(94,165,155,0.16); }
.fv-legend__dot--fv { background: rgba(227,231,238,0.95); box-shadow: 0 0 0 2px rgba(229,201,139,0.22); }

/* =========================
   SVG styles
========================= */
.fv-border { fill: transparent; stroke: rgba(16,19,38,0.90); stroke-width: 2; }

/* Miasta */
.fv-city-dot { fill: rgba(16,19,38,0.95); }

/* większe litery dla 45–75+ */
.fv-city-label {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  opacity: 0.98;
  fill: rgba(16,19,38,0.95);

  paint-order: stroke;
  stroke: rgba(227,231,238,0.98);
  stroke-width: 3.6px;
  stroke-linejoin: round;

  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}

/* =========================
   Strefy: buffer + core + focus
========================= */

/* bazowo: delikatne, kolorowe */
.fv-zone [data-zone-part="buffer"] {
  fill: rgba(94,165,155,0.07);          /* nefryt */
  stroke: rgba(94,165,155,0.06);
  stroke-width: 1;
  filter: blur(0.55px);
  transition: opacity .25s ease, filter .25s ease;
}

.fv-zone [data-zone-part="core"] {
  fill: rgba(36,110,212,0.12);          /* aurora blue */
  stroke: rgba(36,110,212,0.09);
  stroke-width: 1.1;
  filter: blur(0.35px);
  transition: opacity .25s ease, filter .25s ease;
}

/* aktywna strefa po kliknięciu */
#spa-zones g[data-zone].is-active [data-zone-part="buffer"] {
  fill: rgba(229,201,139,0.16);         /* gold infusion */
  stroke: rgba(229,201,139,0.12);
  filter: blur(0.45px);
  opacity: 1;
}

#spa-zones g[data-zone].is-active [data-zone-part="core"] {
  fill: rgba(229,201,139,0.28);
  stroke: rgba(229,201,139,0.18);
  filter: blur(0.25px);
  opacity: 1;
}

/* reszta stref wyciszona */
#spa-zones g[data-zone].is-dimmed { opacity: 0.35; }

/* FraVeRa marker */
.fv-marker-hit { fill: transparent; cursor: pointer; }
.fv-marker-core { fill: rgba(227,231,238,1.0); stroke: rgba(229,201,139,0.95); stroke-width: 2.4; }
.fv-marker-glow { fill: rgba(229,201,139,0.22); }

/* reduced motion support */
@media (prefers-reduced-motion: no-preference) {
  .fv-marker-glow { animation: fvPulse 2.4s ease-in-out infinite; transform-origin: center; }
  @keyframes fvPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.92); }
    50% { opacity: 0.65; transform: scale(1.08); }
  }
}

@media (max-width: 920px) {
  .fv-map__layout { grid-template-columns: 1fr; }
  .fv-map__side { display: none; }
  .fv-city-label { display: none; }
}

/* Mobile sheet */
.fv-sheet[hidden] { display: none; }
.fv-sheet { position: fixed; inset: 0; z-index: 50; }
.fv-sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.42); }
.fv-sheet__panel {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(16,19,38,0.96);
  color: rgba(227,231,238,0.96);
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}
.fv-sheet__close {
  position: absolute;
  right: 10px; top: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(227,231,238,0.14);
  color: rgba(227,231,238,0.92);
  cursor: pointer;
}
.fv-sheet__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.fv-sheet__body { padding: 14px 14px 18px; }
.fv-sheet__title { margin: 0 0 6px; font-size: 16px; }
.fv-sheet__desc { margin: 0 0 10px; opacity: 0.9; line-height: 1.45; }
.fv-sheet__wow { margin: 0 0 14px; color: rgba(229,201,139,0.95); font-weight: 600; }
.fv-sheet__cta {
  display: inline-flex;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(229,201,139,0.14);
  color: rgba(227,231,238,0.95);
  border: 1px solid rgba(229,201,139,0.26);
}

/* Zoom button */
.fv-map__zoom{
  position:absolute;
  left:22px;
  bottom:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid rgba(16,19,38,.16);
  background:rgba(227,231,238,.78);
  color:#101326;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 14px 40px rgba(10,19,38,.18);
}
.fv-map__zoom:hover{ transform: translateY(-1px); }
.fv-map__zoom:active{ transform: translateY(0); }
.fv-map__zoom span{ font-size:15px; }

/* Modal */
.fv-map-modal[hidden]{ display:none; }
.fv-map-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.fv-map-modal__scrim{
  position:absolute;
  inset:0;
  background:rgba(4,4,10,.55);
  backdrop-filter: blur(4px);
}
.fv-map-modal__panel{
  position:relative;
  width:min(1080px, calc(100vw - 28px));
  height:min(740px, calc(100vh - 28px));
  margin:14px auto;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(227,231,238,.95), rgba(152,183,229,.22));
  box-shadow:0 50px 120px rgba(0,0,0,.45);
  overflow:hidden;
}
.fv-map-modal__close{
  position:absolute;
  right:14px;
  top:10px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(16,19,38,.18);
  background:rgba(255,255,255,.72);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}
.fv-map-modal__canvas{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}
.fv-map-modal__canvas svg{
  width:min(960px, 100%);
  height:auto;
}

/* Secondary city labels */
.city--secondary .city-dot{ opacity:.45; }
.city-label--secondary{
  font-size:18px;
  font-weight:700;
  opacity:.85;
}
