/* Global routes — interactive map + route grid */
body.nine-properties {
    --pm-route-map-stage-height: 220px;
}

body.nine-properties .nine-pm-route-map-band {
    padding-top: var(--nine-pm-section-gap, 2.5rem) !important;
    padding-bottom: 0 !important;
}

body.nine-properties .nine-pm-route-map__inner {
    max-width: var(--nine-pm-content-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--nine-pm-content-gutter, 15px);
    box-sizing: border-box;
}

body.nine-properties .nine-pm-route-map__title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pm-panel-navy, #09233c);
}

body.nine-properties .nine-pm-route-map__subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    color: #667085;
}

body.nine-properties .nine-pm-route-map__panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
}

body.nine-properties .nine-pm-route-map__map-stage {
    position: relative;
    height: var(--pm-route-map-stage-height);
    overflow: hidden;
    border-radius: 12px;
    background: #eef4fb;
}

body.nine-properties .nine-pm-route-map__map-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.nine-properties .nine-pm-route-map__arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.nine-properties .nine-pm-route-map__arc {
    fill: none;
    stroke: #0abf53;
    stroke-width: 0.45;
    stroke-linecap: round;
    stroke-dasharray: 1.2 1.4;
    opacity: 0;
    vector-effect: non-scaling-stroke;
    transition: opacity 0.35s ease, stroke-width 0.35s ease;
}

body.nine-properties .nine-pm-route-map__arc.is-active {
    opacity: 0.92;
    stroke-width: 0.55;
    animation: nine-pm-route-arc-flow 1.8s linear infinite;
}

@keyframes nine-pm-route-arc-flow {
    to {
        stroke-dashoffset: -5;
    }
}

body.nine-properties .nine-pm-route-map__pin {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
}

body.nine-properties .nine-pm-route-map__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: rgb(10 191 83 / 38%);
    animation: nine-pm-route-pin-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

body.nine-properties .nine-pm-route-map__pin.is-active .nine-pm-route-map__pulse {
    background: rgb(10 191 83 / 52%);
}

body.nine-properties .nine-pm-route-map__pin--origin .nine-pm-route-map__pulse {
    background: rgb(10 191 83 / 48%);
}

body.nine-properties .nine-pm-route-map__dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0abf53;
    box-shadow: 0 2px 6px rgb(9 35 60 / 22%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

body.nine-properties .nine-pm-route-map__pin.is-active .nine-pm-route-map__dot,
body.nine-properties .nine-pm-route-map__pin:hover .nine-pm-route-map__dot,
body.nine-properties .nine-pm-route-map__pin:focus-visible .nine-pm-route-map__dot {
    transform: scale(1.15);
    background: #089a45;
}

body.nine-properties .nine-pm-route-map__pin--origin .nine-pm-route-map__dot {
    width: 12px;
    height: 12px;
}

body.nine-properties .nine-pm-route-map__pin-label {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 1px 4px rgb(9 35 60 / 14%);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    color: #09233c;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.nine-properties .nine-pm-route-map__pin.is-active .nine-pm-route-map__pin-label,
body.nine-properties .nine-pm-route-map__pin--origin .nine-pm-route-map__pin-label {
    background: var(--nine-pm-brand-btn, #0abf53);
    color: #fff;
}

@keyframes nine-pm-route-pin-pulse {
    0% {
        transform: scale(0.45);
        opacity: 0.85;
    }

    70% {
        transform: scale(2.1);
        opacity: 0;
    }

    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

body.nine-properties .nine-pm-route-map__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.nine-properties .nine-pm-route-map__tile {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2px 8px;
    padding: 10px 11px;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.nine-properties .nine-pm-route-map__tile.is-active,
body.nine-properties .nine-pm-route-map__tile:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgb(10 191 83 / 10%);
}

body.nine-properties .nine-pm-route-map__tile-flag-wrap {
    grid-row: span 3;
    align-self: start;
    width: 22px;
    height: 16px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 8%);
}

body.nine-properties .nine-pm-route-map__tile-flag {
    display: block;
    width: 22px;
    height: 16px;
    background-size: cover;
}

body.nine-properties .nine-pm-route-map__tile-route {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #09233c;
}

body.nine-properties .nine-pm-route-map__tile-city {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: #09233c;
}

body.nine-properties .nine-pm-route-map__tile-region {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #667085;
}

@media (max-width: 991px) {
    body.nine-properties .nine-pm-route-map__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    body.nine-properties {
        --pm-route-map-stage-height: 190px;
    }

    body.nine-properties .nine-pm-route-map__grid {
        grid-template-columns: 1fr;
    }

    body.nine-properties .nine-pm-route-map__pin-label {
        font-size: 8px;
        padding: 2px 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.nine-properties .nine-pm-route-map__pulse,
    body.nine-properties .nine-pm-route-map__arc.is-active {
        animation: none;
    }

    body.nine-properties .nine-pm-route-map__arc.is-active {
        opacity: 0.85;
    }
}
