.apollo-franchise-map {
    --apollo-blue: #004f82;
    --apollo-blue-dark: #003d66;
    --apollo-yellow: #ffe100;
    --apollo-orange: #e84c1b;
    --apollo-green: #23814d;
    --apollo-owned: #747b84;
    --apollo-available: #ffe100;
    --apollo-border: #d8e2ea;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 28px;
    align-items: start;
    color: #163348;
}

.apollo-franchise-map *,
.apollo-franchise-map *::before,
.apollo-franchise-map *::after {
    box-sizing: border-box;
}

.elementor-widget-shortcode,
.elementor-widget-html,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-html .elementor-widget-container {
    max-width: 100%;
    min-width: 0;
}

.elementor-widget-shortcode,
.elementor-widget-html {
    container-type: inline-size;
}

.apollo-map-stage {
    position: relative;
    width: 100%;
    height: var(--apollo-map-height, 560px);
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f6fbff;
    box-shadow: inset 0 0 0 1px var(--apollo-border);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.apollo-map-stage.is-dragging {
    cursor: grabbing;
}

.apollo-map-viewport {
    position: absolute;
    inset: 0;
}

.apollo-australia-map {
    display: block;
    width: 100%;
    height: 100%;
}

.apollo-map-bg {
    fill: #a9cde8;
}

.apollo-map-land {
    stroke: rgba(255, 255, 255, 0.88);
    stroke-linejoin: round;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.apollo-map-land--wa,
.apollo-map-land--nt,
.apollo-map-land--sa,
.apollo-map-land--qld,
.apollo-map-land--vic,
.apollo-map-land--tas {
    fill: #f4efe5;
}

.apollo-map-land--nsw {
    fill: #f4efe5;
}

.apollo-map-land--act {
    fill: #f4efe5;
}

.apollo-map-division {
    fill: none;
    stroke: rgba(104, 123, 132, 0.38);
    stroke-linejoin: round;
    stroke-width: 0.55;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.apollo-territory {
    display: none;
}

.apollo-territory--qld {
    display: none;
}

.apollo-territory--vic {
    display: none;
}

.apollo-territory.is-active,
.apollo-territory:hover {
    display: none;
}

.apollo-map-label {
    display: none;
    fill: rgba(0, 79, 130, 0.28);
    font-family: Arial, sans-serif;
    font-size: 46px;
    font-weight: 700;
    transform: scale(var(--apollo-label-scale, 1));
    transform-box: fill-box;
    transform-origin: center;
}

.apollo-map-label--small {
    font-size: 20px;
}

.apollo-city-marker {
    pointer-events: none;
}

.apollo-city-label {
    fill: rgba(22, 51, 72, 0.76);
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 4px;
    text-anchor: middle;
    dominant-baseline: central;
    vector-effect: non-scaling-stroke;
}

.apollo-city-leader {
    fill: none;
    stroke: rgba(22, 51, 72, 0.32);
    stroke-width: 0.8;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.apollo-city-dot {
    fill: rgba(22, 51, 72, 0.78);
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 2.5px;
    text-anchor: middle;
    dominant-baseline: central;
    vector-effect: non-scaling-stroke;
}

.apollo-territory-label {
    display: none;
    fill: #006b16;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 3.5px;
    transform: scale(var(--apollo-label-scale, 1));
    transform-box: fill-box;
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

.apollo-map-pins {
    position: absolute;
    inset: 0;
}

.apollo-pin {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    z-index: 2;
    width: 24px;
    height: 24px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px 999px 999px 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transform: translate(-50%, -100%) rotate(-45deg) scale(var(--apollo-pin-scale, 1));
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 7px 16px rgba(0, 38, 64, 0.22);
    pointer-events: auto;
}

.apollo-pin span {
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: #ffffff;
}

.apollo-pin--owned {
    background: var(--apollo-owned) !important;
    background-color: var(--apollo-owned) !important;
}

.apollo-pin--available {
    background: var(--apollo-available) !important;
    background-color: var(--apollo-available) !important;
}

.apollo-pin.is-active,
.apollo-pin:focus-visible {
    z-index: 5;
    transform: translate(-50%, -100%) rotate(-45deg) scale(var(--apollo-pin-active-scale, 1.22));
    outline: 3px solid rgba(255, 225, 0, 0.55);
    outline-offset: 3px;
}

.apollo-pin-label {
    position: absolute;
    z-index: 3;
    max-width: 150px;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #163348;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    pointer-events: none;
    text-shadow: 0 1px 0 #ffffff;
    transform: translate(12px, -50%);
    white-space: normal;
    box-shadow: 0 2px 7px rgba(0, 38, 64, 0.14);
}

.apollo-pin-label.is-left {
    transform: translate(calc(-100% - 12px), -50%);
}

.apollo-pin-label.is-top {
    transform: translate(-50%, calc(-100% - 12px));
}

.apollo-pin.is-active + .apollo-pin-label,
.apollo-pin-label.is-active {
    z-index: 6;
    color: var(--apollo-blue-dark);
}

.apollo-map-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: var(--apollo-map-height, 560px);
    min-width: 0;
    overflow: hidden;
}

.apollo-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}

.apollo-map-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.apollo-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.apollo-legend-dot--owned {
    background: var(--apollo-owned);
}

.apollo-legend-dot--available {
    background: var(--apollo-available);
}

.apollo-location-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.apollo-location-card {
    display: grid;
    gap: 10px;
    min-height: 116px;
    padding: 15px;
    border: 1px solid var(--apollo-border);
    border-left: 5px solid var(--apollo-blue);
    border-radius: 8px;
    background: #ffffff;
    transition: none;
}

.apollo-location-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.apollo-location-card--available {
    border-left-color: var(--apollo-available);
}

.apollo-location-type {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--apollo-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apollo-location-card h3 {
    margin: 0;
    color: var(--apollo-blue-dark);
    font-size: 17px;
    line-height: 1.2;
}

.apollo-location-card p {
    margin: 7px 0 0;
    color: #4b6475;
    font-size: 14px;
    line-height: 1.45;
}

.apollo-location-card a,
.apollo-location-card__button {
    align-self: end;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--apollo-yellow);
    color: var(--apollo-blue-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.apollo-location-card a:hover {
    background: var(--apollo-orange);
    color: #ffffff;
}

@media (max-width: 900px) {
    .apollo-franchise-map {
        grid-template-columns: 1fr;
    }

    .apollo-map-stage {
        height: min(var(--apollo-map-height, 560px), 380px);
    }

    .apollo-map-content {
        height: auto;
        overflow: visible;
    }

    .apollo-location-list {
        max-height: 384px;
        overflow-y: auto;
        padding-right: 0;
    }
}

@container (max-width: 760px) {
    .apollo-franchise-map {
        grid-template-columns: 1fr;
    }

    .apollo-map-stage {
        height: min(var(--apollo-map-height, 560px), 380px);
    }

    .apollo-map-content {
        height: auto;
        overflow: visible;
    }

    .apollo-location-list {
        grid-template-columns: 1fr;
        max-height: 384px;
        overflow-y: auto;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .apollo-location-list {
        grid-template-columns: 1fr;
        max-height: 384px;
        overflow-y: auto;
    }

    .apollo-pin {
        width: 22px;
        height: 22px;
    }

    .apollo-pin span {
        inset: 5px;
    }

    .apollo-pin-label {
        max-width: 124px;
        font-size: 12px;
    }
}
