/* === MAP SECTION === */
.map-section { background: linear-gradient(180deg, var(--bg) 0%, #0c0c0e 100%); position: relative; overflow: hidden; }
.map-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1400px; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--border-strong) 50%, transparent 100%); }

.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }

/* Visual side */
.map-visual { position: sticky; top: calc(var(--nav-h) + 20px); }
.map-svg-wrap { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 4px; padding: 32px; position: relative; overflow: hidden; }
.map-svg-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 60%, rgba(254, 0, 42, 0.04) 0%, transparent 50%); pointer-events: none; }

.cz-map { width: 100%; height: auto; display: block; }

/* Region styles */
.cz-region { fill: #1F1F22; stroke: rgba(255, 255, 255, 0.08); stroke-width: 0.6; transition: fill 0.25s ease, stroke 0.25s ease; cursor: default; }
.cz-region:hover { fill: #28282C; stroke: rgba(255, 255, 255, 0.18); }
.cz-region:focus { outline: none; fill: #28282C; stroke: rgba(255, 255, 255, 0.28); }

.cz-region--plzen { fill: rgba(254, 0, 42, 0.18); stroke: var(--accent); stroke-width: 1.2; cursor: pointer; }
.cz-region--plzen:hover { fill: rgba(254, 0, 42, 0.28); stroke: #ff2046; }
.cz-region--plzen:focus { outline: none; fill: rgba(254, 0, 42, 0.32); }

/* Base markers */
.cz-base { cursor: pointer; }
.cz-base-pulse { fill: var(--accent); opacity: 0.55; transform-origin: center; transform-box: fill-box; animation: czPulse 2.4s ease-out infinite; }
.cz-base-pulse--delay { animation-delay: 1.2s; }
@keyframes czPulse {
  0% { transform: scale(0.3); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.cz-base-dot { fill: var(--accent); stroke: #fff; stroke-width: 1.5; transition: r 0.2s ease; }
.cz-base-dot--main { stroke-width: 2; }
.cz-base:hover .cz-base-dot { r: 8; }
.cz-base:hover .cz-base-dot--main { r: 9; }

.cz-base-label { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: #fff; letter-spacing: 0.02em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); paint-order: stroke fill; stroke: #0A0A0A; stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* Tooltip */
.cz-tooltip-bg { fill: #0A0A0A; stroke: var(--accent); stroke-width: 1; opacity: 0.96; }
.cz-tooltip-text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: #fff; }

/* Legend */
.map-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; padding: 16px 8px; font-size: 12px; color: var(--text-sec); letter-spacing: 0.04em; }
.map-legend-item { display: flex; align-items: center; gap: 10px; }
.legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.legend-swatch--region { background: rgba(254, 0, 42, 0.25); border: 1px solid var(--accent); }
.legend-swatch--other { background: #1F1F22; border: 1px solid rgba(255, 255, 255, 0.08); }
.legend-swatch--base { background: var(--accent); border-radius: 50%; width: 12px; height: 12px; box-shadow: 0 0 0 3px rgba(254, 0, 42, 0.2); }

/* Info side */
.map-info { display: flex; flex-direction: column; gap: 36px; }
.map-info-block { border-left: 2px solid var(--border); padding-left: 24px; }
.map-info-block--outside { border-left-color: var(--accent); }
.map-info-title { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 18px; }

.map-info-base { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border); }
.map-info-base:first-of-type { border-top: none; padding-top: 0; }
.map-info-base-marker { position: relative; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 0 4px rgba(254, 0, 42, 0.18); }
.map-info-base-marker--main { width: 18px; height: 18px; margin-top: 4px; box-shadow: 0 0 0 5px rgba(254, 0, 42, 0.22); }
.map-info-base-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.6; animation: czPulseInfo 2.4s ease-out infinite; }
@keyframes czPulseInfo {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.map-info-base-name { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--text); margin-bottom: 4px; }
.map-info-base-role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 8px; }
.map-info-base-desc { font-size: 14px; color: var(--text-sec); line-height: 1.5; }

.map-info-districts { list-style: none; margin: 0 0 16px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.map-info-districts li { font-size: 14px; color: var(--text-sec); padding-left: 18px; position: relative; line-height: 1.4; }
.map-info-districts li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 1px; background: var(--accent); }

.map-info-note { font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.map-info-block--outside p { font-size: 14px; color: var(--text-sec); line-height: 1.55; }
.map-info-block--outside p strong { color: var(--text); font-weight: 600; }

/* Mobile responsive */
@media (max-width: 1024px) {
  .map-grid { grid-template-columns: 1fr; gap: 48px; }
  .map-visual { position: static; }
  .map-info-districts { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .map-svg-wrap { padding: 18px; }
  .map-legend { gap: 14px; font-size: 11px; }
  .map-info-block { padding-left: 16px; }
  .map-info-base-name { font-size: 22px; }
  .map-info-districts { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .cz-base-label { font-size: 11px; }
}

/* === NAV ADJUSTMENT FOR 7 MENU ITEMS === */
/* Prevent menu items from wrapping; tighten spacing on smaller laptops */
nav.top .menu a { white-space: nowrap; }
@media (max-width: 1280px) {
  nav.top .menu { gap: 26px; }
  nav.top .menu a { font-size: 12px; }
}
@media (max-width: 1100px) {
  nav.top .menu { gap: 20px; }
}
