/* ============================================================
   geo.css — Wspólne style dla stron geopozycyjnych (geo/*.php)
   AdresDoNajmu.pl | Stitch Design System
   ============================================================ */

/* ============================================================
   GEO HERO
   ============================================================ */
.geo-hero {
    position: relative;
    background: var(--gradient-dark);
    padding: var(--space-20) 0 var(--space-24);
    overflow: hidden;
}

.geo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(74, 31, 168, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(46, 16, 101, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.geo-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.geo-breadcrumb {
    margin-bottom: var(--space-8);
}

.geo-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.geo-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.geo-breadcrumb li+li::before {
    content: '/';
    margin-right: var(--space-2);
    color: rgba(255, 255, 255, 0.3);
}

.geo-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.geo-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.geo-breadcrumb li[aria-current="page"] {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero inner */
.geo-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .geo-hero-inner {
        grid-template-columns: 3fr 2fr;
        gap: var(--space-16);
    }
}

.geo-hero-text {
    max-width: 680px;
}

.geo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-6);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.geo-hero-badge .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-primary-fixed-dim);
}

.geo-hero h1 {
    font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
    font-weight: var(--font-weight-black);
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    text-transform: none;
}

.geo-hero-desc {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-bottom: var(--space-10);
    max-width: 560px;
}

.geo-hero-cta-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.geo-hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.geo-hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--font-weight-medium);
}

.geo-hero-trust-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-primary-fixed-dim);
}

/* Hero Visual (right side) */
.geo-hero-visual {
    display: none;
}

@media (min-width: 1024px) {
    .geo-hero-visual {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        perspective: 1000px;
    }
}

.geo-hero-visual-box {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1 / 1;
    background: var(--color-surface-container-high);
    border-radius: var(--radius-2xl);
    /* Pronounced 3D shadow: broad soft lift + dark tight base + light rim highlight */
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 15px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-left: auto;
    transform: rotateY(-3deg) rotateX(2deg);
}

.geo-hero-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Rules for Geo Image */
@media (max-width: 1024px) {
    .geo-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .geo-hero {
        padding: var(--space-10) 0 var(--space-16);
    }

    .geo-hero-visual {
        display: flex;
        position: static;
        justify-content: center;
        order: -1;
        margin-bottom: 0px;
    }

    .geo-hero-visual-box {
        position: relative;
        height: auto;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-2xl);
        transform: none;
        /* remove desktop perspective */
        margin-left: 0;
        /* Pronounced 3D shadow: broad soft lift + dark tight base + light rim highlight */
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.65),
            0 10px 20px rgba(0, 0, 0, 0.45),
            inset 0 0 0 1px rgba(255, 255, 255, 0.15);
        /* Light rim highlight */
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .geo-hero-visual-box:hover {
        transform: none;
    }

    .geo-hero-text {
        position: relative;
        z-index: 10;
        margin-top: -100px;
        /* text laps over image */
    }
}

@media (max-width: 768px) {
    .geo-hero-text h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        word-break: break-word;
        hyphens: auto;
        text-shadow:
            0 0 10px rgba(26, 10, 62, 1),
            0 0 20px rgba(26, 10, 62, 0.9),
            0 0 35px rgba(26, 10, 62, 0.7),
            0 0 50px rgba(26, 10, 62, 0.5);
    }

    .geo-hero-text {
        margin-top: -70px;
        /* text laps over image */
    }

    .geo-hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }

    .geo-hero-cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================
   SHARED SECTION LABEL / HEADER
   ============================================================ */
.geo-section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-fixed);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-4);
    margin-bottom: var(--space-4);
}

/* ============================================================
   C3 — DZIELNICE WARSZAWY (2 kolumny: lista + mapa SVG)
   ============================================================ */
.geo-districts-section .section-header--center {
    max-width: 960px;
}

#geo-districts-heading {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
}

.geo-districts-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: stretch;
    margin-top: var(--space-10);
}

/* ---- Lewa kolumna: ranking ---- */
.geo-districts-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
    opacity: 0.85;
}

.geo-districts-hint .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
}

.hint-touch {
    display: none;
}

@media (hover: none), (max-width: 1024px) {
    .hint-desktop { display: none; }
    .hint-touch   { display: inline; }
}

.geo-district-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    cursor: default;
    transition: background 0.2s;
}

.geo-district-row:hover,
.geo-district-row--active {
    background: var(--color-primary-fixed);
}

.geo-district-rank {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-black);
    color: var(--color-outline);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.geo-district-info {
    flex: 1;
    min-width: 0;
}

.geo-district-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.geo-district-bar-wrap {
    height: 4px;
    background: rgba(46, 16, 101, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.geo-district-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.geo-district-count {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}

.geo-districts-note {
    font-size: var(--text-xs);
    color: var(--color-outline);
    margin-top: var(--space-4);
    opacity: 0.7;
}

/* Scroll container for the list */
.geo-districts-scroll {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* max-height set by JS to match map height */
}

.geo-districts-scroll.is-expanded {
    max-height: 9999px !important;
}

/* Fade overlay at the bottom of the list */
.geo-districts-fade {
    height: 60px;
    margin-top: -60px;
    background: linear-gradient(to bottom, transparent, var(--color-surface-base));
    pointer-events: none;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.geo-districts-fade.is-hidden {
    opacity: 0;
}

/* Show all button */
.geo-districts-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border: 1.5px solid rgba(46, 16, 101, 0.2);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    justify-content: center;
}

.geo-districts-toggle:hover {
    background: var(--color-primary-fixed);
    border-color: var(--color-primary);
}

.geo-districts-toggle .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s;
}

.geo-districts-toggle[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(180deg);
}

.geo-districts-toggle[aria-expanded="true"] .toggle-label::before {
    content: "Zwiń listę";
}

.geo-districts-toggle .toggle-label {
    /* label text swapped via aria-expanded in JS */
}

/* ---- Prawa kolumna: SVG mapa ---- */
.geo-districts-map-wrap {
    position: relative;
    padding: 0;
}

.geo-warsaw-map,
.geo-krakow-map,
.geo-wroclaw-map,
.geo-lodz-map,
.geo-poznan-map,
.geo-gdansk-map,
.geo-szczecin-map,
.geo-bydgoszcz-map,
.geo-lublin-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.geo-districts-section .geo-districts-two-col > * {
    min-width: 0;
}

.geo-districts-section .geo-district-row,
.geo-districts-section .geo-districts-list {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Gdańsk: mapa na całą szerokość, lista poniżej */
.geo-gdansk-districts .geo-districts-two-col {
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

.geo-gdansk-districts .geo-districts-two-col > * {
    min-width: 0;
}

.geo-gdansk-districts .geo-districts-map-wrap {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.geo-gdansk-districts .geo-district-row,
.geo-gdansk-districts .geo-districts-list {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.geo-gdansk-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 800 / 465;
    display: block;
    overflow: hidden;
}

.geo-gdansk-districts .geo-districts-list {
    max-width: 100%;
}

.geo-gdansk-districts .geo-districts-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 var(--space-4);
    max-height: 260px;
}

@media (max-width: 768px) {
    .geo-gdansk-districts .geo-districts-scroll {
        grid-template-columns: repeat(2, 1fr);
        max-height: 340px;
    }
}

@media (max-width: 480px) {
    .geo-gdansk-districts .geo-districts-scroll {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}

.waw-district,
.wro-district,
.krk-district,
.lodz-district,
.poznan-district,
.gdansk-district,
.szczecin-district,
.bydgoszcz-district,
.lublin-district {
    fill: rgba(46, 16, 101, 0.08);
    stroke: var(--color-primary);
    stroke-width: 1.5;
    transition: fill 0.2s, stroke-width 0.2s;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.waw-district:hover,
.waw-district--active,
.waw-district.is-active,
.wro-district:hover,
.wro-district--active,
.wro-district.is-active,
.krk-district:hover,
.krk-district--active,
.krk-district.is-active,
.lodz-district:hover,
.lodz-district--active,
.lodz-district.is-active,
.poznan-district:hover,
.poznan-district--active,
.poznan-district.is-active,
.gdansk-district:hover,
.gdansk-district--active,
.gdansk-district.is-active,
.szczecin-district:hover,
.szczecin-district--active,
.szczecin-district.is-active,
.bydgoszcz-district:hover,
.bydgoszcz-district--active,
.bydgoszcz-district.is-active,
.lublin-district:hover,
.lublin-district--active,
.lublin-district.is-active {
    fill: rgba(46, 16, 101, 0.28);
    stroke-width: 2.5;
}

.waw-label,
.wro-label,
.krk-label,
.lodz-label,
.poznan-label,
.gdansk-label,
.szczecin-label {
    fill: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-family);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    paint-order: stroke fill;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.wro-label,
.poznan-label {
    font-size: 18px;
}


/* Tooltip */
.geo-district-tooltip {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
    min-width: 140px;
    max-width: 280px;
}

.geo-district-tooltip.district-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

.district-tooltip-name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-black);
}

.district-tooltip-count {
    font-size: var(--text-xs);
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .geo-districts-two-col {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .geo-districts-map-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        align-self: start;
    }

    /* Gdańsk: na mobile też pełna szerokość */
    .geo-gdansk-districts .geo-districts-map-wrap {
        max-width: 100%;
        margin: 0;
    }
}


/* ============================================================
   C10 — TIMELINE KROKÓW (geo-steps-section)
   ============================================================ */
/* Centered, narrow container for clarity */
.geo-timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line running down the left */
.geo-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(46, 16, 101, 0.12),
            rgba(46, 16, 101, 0.35) 30%,
            rgba(46, 16, 101, 0.35) 70%,
            rgba(46, 16, 101, 0.08));
    border-radius: var(--radius-full);
}

/* Each step row */
.geo-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    padding-bottom: var(--space-10);
    position: relative;
}

.geo-timeline-item--last {
    padding-bottom: 0;
}

/* --- Dot with ripple rings --- */
.geo-timeline-dot {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Solid purple core */
.geo-timeline-dot__core {
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 50%;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 3px rgba(46, 16, 101, 0.15);
}

/* Ripple rings */
.geo-timeline-dot__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(46, 16, 101, 0.5);
    animation: geo-ripple 3s ease-out infinite;
    opacity: 0;
}

.geo-timeline-dot__ring--1 {
    animation-delay: 0s;
}

.geo-timeline-dot__ring--2 {
    animation-delay: 1s;
}

.geo-timeline-dot__ring--3 {
    animation-delay: 2s;
}

@keyframes geo-ripple {
    0% {
        transform: scale(0.4);
        opacity: 0.6;
    }

    80% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Stagger animation per step */
.geo-timeline-item:nth-child(2) .geo-timeline-dot__ring {
    animation-delay: calc(var(--i, 0) * 1s + 0.4s);
}

.geo-timeline-item:nth-child(3) .geo-timeline-dot__ring {
    animation-delay: calc(var(--i, 0) * 1s + 0.8s);
}

.geo-timeline-item:nth-child(4) .geo-timeline-dot__ring {
    animation-delay: calc(var(--i, 0) * 1s + 1.2s);
}

.geo-timeline-item:nth-child(2) .geo-timeline-dot__ring--1 {
    animation-delay: 0.4s;
}

.geo-timeline-item:nth-child(2) .geo-timeline-dot__ring--2 {
    animation-delay: 1.4s;
}

.geo-timeline-item:nth-child(2) .geo-timeline-dot__ring--3 {
    animation-delay: 2.4s;
}

.geo-timeline-item:nth-child(3) .geo-timeline-dot__ring--1 {
    animation-delay: 0.8s;
}

.geo-timeline-item:nth-child(3) .geo-timeline-dot__ring--2 {
    animation-delay: 1.8s;
}

.geo-timeline-item:nth-child(3) .geo-timeline-dot__ring--3 {
    animation-delay: 2.8s;
}

.geo-timeline-item:nth-child(4) .geo-timeline-dot__ring--1 {
    animation-delay: 1.2s;
}

.geo-timeline-item:nth-child(4) .geo-timeline-dot__ring--2 {
    animation-delay: 2.2s;
}

.geo-timeline-item:nth-child(4) .geo-timeline-dot__ring--3 {
    animation-delay: 3.2s;
}

/* Content block */
.geo-timeline-content {
    flex: 1;
    padding-top: 8px;
    position: relative;
}

.geo-timeline-num {
    position: absolute;
    bottom: -20px;
    left: -5px;
    font-size: 120px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.08;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.geo-timeline-content h3 {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    text-transform: none;
    letter-spacing: -0.01em;
}

.geo-timeline-content p {
    font-size: var(--text-base);
    color: var(--color-on-surface-var);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

/* ============================================================
   C2 — MAPA WOJEWÓDZTW
   ============================================================ */
.geo-map-section {
    background: var(--color-primary);
    padding: var(--space-24) 0;
    position: relative;
}

.geo-map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.geo-map-section .container {
    position: relative;
    z-index: 1;
}

.geo-map-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .geo-map-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.geo-map-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-fixed-dim);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-4);
    margin-bottom: var(--space-4);
}

.geo-map-text h2 {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    text-transform: none;
}

.geo-map-text p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin-bottom: var(--space-8);
}

.geo-map-voivs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.geo-map-voiv {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: #fff;
}

.geo-map-voiv .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-primary-fixed-dim);
    flex-shrink: 0;
}

.geo-map-note {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
}

/* SVG Map */
.geo-map-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-map-svg {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Voivodeships */
.voiv {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    transition: fill 0.3s;
}

.voiv--highlight {
    fill: rgba(196, 181, 253, 0.35);
    stroke: rgba(196, 181, 253, 0.7);
    stroke-width: 2;
    animation: voiv-pulse 3s ease-in-out infinite;
}

@keyframes voiv-pulse {

    0%,
    100% {
        fill: rgba(196, 181, 253, 0.35);
    }

    50% {
        fill: rgba(196, 181, 253, 0.55);
    }
}

/* City dot (solid) */
.geo-map-city-dot {
    fill: #fff;
}

/* City pulse ring — CSS only, no SMIL */
.geo-map-city-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: city-ring-pulse 2.5s ease-out infinite;
}

@keyframes city-ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.geo-map-city-label {
    fill: #fff;
    font-size: 22px;
    font-weight: var(--font-weight-black);
    dominant-baseline: middle;
}

.geo-map-voiv-label {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 7px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
}

.geo-map-voiv-label--hi {
    fill: rgba(255, 255, 255, 0.9);
    font-size: 8px;
    font-weight: 700;
}

/* ============================================================
   C3 — DZIELNICE MIASTA
   ============================================================ */
.geo-districts-section {
    background: var(--color-surface-lowest);
    padding: var(--space-24) 0;
    overflow-x: hidden;
}

.geo-districts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-10);
}

.geo-district-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-surface-low);
    border: 1px solid var(--color-outline-var);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface);
    transition: all 0.2s;
    cursor: default;
}

.geo-district-tag:hover {
    background: var(--color-primary-fixed);
    border-color: var(--color-primary-fixed-dim);
    color: var(--color-primary);
}

.geo-district-tag .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-outline);
    transition: color 0.2s;
}

.geo-district-tag:hover .material-symbols-outlined {
    color: var(--color-primary);
}

/* ============================================================
   C10 — ŚCIEŻKA WYNAJMU (4 kroki)
   ============================================================ */
.geo-steps-section {
    background: var(--color-surface-base);
    padding: var(--space-24) 0;
}

.geo-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 640px) {
    .geo-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .geo-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.geo-step-card {
    background: var(--color-surface-lowest);
    border: 1px solid var(--color-outline-var);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.geo-step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-fixed-dim);
}

.geo-step-num {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-black);
    color: #fff;
    margin-bottom: var(--space-6);
}

.geo-step-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-on-surface);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.geo-step-card p {
    font-size: var(--text-base);
    color: var(--color-on-surface-var);
    line-height: 1.65;
}

/* ============================================================
   C4 — FAQ (Wspólne style takie same jak na stronie głównej index.css)
   ============================================================ */
.faq-section {
    background: var(--color-surface-lowest);
    padding: var(--space-32) 0;
}

.faq-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-16);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--color-surface-base);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-outline-var);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(46, 16, 101, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    list-style: none;
    padding: var(--space-5) var(--space-8);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--text-lg);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question .material-symbols-outlined {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    font-size: 24px;
}

.faq-item.is-open>.faq-question .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 var(--space-8) var(--space-5);
    font-size: var(--text-base);
    color: var(--color-on-surface-var);
    line-height: 1.75;
    font-weight: var(--font-weight-medium);
}

.faq-answer-inner p {
    margin-bottom: var(--space-3);
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
    margin: var(--space-3) 0;
    padding-left: var(--space-6);
    list-style: disc;
}

.faq-answer-inner ol {
    list-style: decimal;
}

.faq-answer-inner li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-1);
}

.faq-answer-inner li:last-child {
    margin-bottom: 0;
}

.faq-answer-inner strong {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

/* ============================================================
   CTA BUTTON OVERRIDE (white on dark hero)
   ============================================================ */
#geo-cta-order.btn-white {
    border: 2px solid transparent;
    transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#geo-cta-order.btn-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: none;
}

/* ============================================================
   C9. DLACZEGO JESTEŚMY W WARSZAWIE
   ============================================================ */
.geo-why-section {
    background: var(--color-surface-base);
    padding: var(--space-24) 0;
}

.geo-why-section h2,
.geo-districts-section h2,
.geo-steps-section h2 {
    color: var(--color-primary);
}

.geo-why-section .section-header--center {
    max-width: 900px;
}

.geo-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.geo-why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-6) 0 var(--space-4) 0;
    z-index: 1;
    overflow: hidden;
    min-height: 180px;
}

.geo-why-card-num {
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 140px;
    color: var(--color-primary);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    font-weight: 800;
}

.geo-why-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 var(--space-3) 0;
    position: relative;
}

.geo-why-card h3 .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.geo-why-card p {
    font-size: var(--text-sm);
    color: var(--color-on-surface-var);
    line-height: 1.6;
    margin: 0;
    font-weight: var(--font-weight-medium);
    position: relative;
}

@media (max-width: 1024px) {
    .geo-why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8) var(--space-6);
    }
}

@media (max-width: 768px) {
    .geo-why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ============================================================
   C6 — DO CZEGO SŁUŻY NAJEM OKAZJONALNY
   ============================================================ */
.geo-explain-section {
    background: var(--color-surface-base);
    padding: var(--space-24) 0;
}

.geo-explain-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.geo-explain-text .section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.geo-explain-text h2 {
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.geo-explain-text p {
    color: var(--color-on-surface-var);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.geo-explain-text p:last-child {
    margin-bottom: 0;
}

.geo-explain-text .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    border: 2px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.geo-explain-text .btn-primary:hover {
    opacity: 1;
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.geo-explain-text .btn-primary .btn-label {
    display: inline-block;
    transition: transform 0.25s ease;
}

.geo-explain-text .btn-primary .btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.geo-explain-text .btn-primary:hover .btn-label {
    transform: translateX(-4px);
}

.geo-explain-text .btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .geo-explain-text .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.geo-explain-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.geo-explain-card {
    background: var(--color-surface-lowest);
    border: 1px solid var(--color-outline-var);
    border-radius: var(--radius-2xl);
    padding: var(--space-5) var(--space-5) var(--space-4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* 3D shadow depth */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.geo-explain-card:hover {
    border-color: var(--color-primary-fixed-dim);
    box-shadow: 
        0 12px 20px -5px rgba(46, 16, 101, 0.12),
        0 8px 8px -5px rgba(46, 16, 101, 0.06);
}

.geo-explain-card-icon {
    display: block;
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.geo-explain-card h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin: 0 0 var(--space-2) 0;
}

.geo-explain-card p {
    font-size: var(--text-sm);
    color: var(--color-on-surface-var);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) {
    .geo-explain-inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

@media (max-width: 640px) {
    .geo-explain-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   C5 — ZALETY ZAMÓWIENIA U NAS
   ============================================================ */
.geo-zalety-section {
    background: var(--color-surface-base);
    padding: var(--space-24) 0;
}

.geo-zalety-section h2,
.geo-zalety-section .section-header p {
    color: var(--color-primary);
}

.geo-zalety-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: var(--space-12);
}

.geo-zalety-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-2xl);
    padding: var(--space-6) 0;
}

@media (max-width: 1100px) {
    .geo-zalety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .geo-zalety-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   C3 — KRAKÓW STAT PANEL (lewa kolumna bez SVG)
   ============================================================ */
.geo-districts-stat-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    background: var(--color-surface-lowest);
    border: 1px solid var(--color-outline-var);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.geo-stat-block {
    display: flex;
    gap: var(--space-8);
}

.geo-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.geo-stat-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    line-height: 1;
}

.geo-stat-label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface-var);
}

.geo-stat-desc {
    font-size: var(--text-base);
    color: var(--color-on-surface-var);
    line-height: 1.65;
    margin: 0;
}

.geo-stat-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

.geo-stat-note .material-symbols-outlined {
    font-size: 18px;
}

/* ============================================================
   C3 — KRAKÓW: szeroka mapa, węższa lista
   ============================================================ */
.geo-krakow-districts {
    grid-template-columns: 3fr 2fr;
    align-items: start;
}

/* Mapa wypełnia kolumnę, lista dopasowuje wysokość scrollu do mapy */
.geo-krakow-districts .geo-districts-map-wrap {
    display: flex;
    align-items: center;
}

.geo-krakow-districts .geo-krakow-map {
    width: auto;
    height: 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .geo-krakow-districts {
        grid-template-columns: 1fr;
    }

    .geo-krakow-districts .geo-districts-map-wrap {
        width: 100%;
        max-width: 100%;
        display: block;
        align-self: start;
    }

    .geo-krakow-districts .geo-krakow-map {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .geo-why-section,
    .geo-map-section,
    .geo-districts-section,
    .geo-steps-section,
    .geo-zalety-section,
    .geo-explain-section,
    .faq-section {
        padding: var(--space-12) 0;
    }
}
