/* ==========================================================================
   Australia Locations Map — Styles
   Static SVG base + absolutely-positioned HTML pins + custom tooltip.
   Re-uses theme classes (.trust-sec .list-icn-txt .slider-grid).
   ========================================================================== */

/* ----- Section grid ------------------------------------------------------ */
.au-map-section .au-map-grid {
    align-items: stretch;
    gap: 32px;
}

@media (max-width: 992px) {
    .au-map-section .au-map-grid {
        flex-direction: column;
        gap: 24px;
    }
    .au-map-section .au-map-grid .a {
        width: 100% !important;
    }
}

.au-map-list-col   { width: calc(48% - 16px) !important; }
.au-map-stage-col  { width: calc(52% - 16px) !important; }

@media (max-width: 1200px) {
    .au-map-list-col   { width: calc(45% - 16px) !important; }
    .au-map-stage-col  { width: calc(55% - 16px) !important; }
}

/* ----- List column (paginated 3×5 grid, slider style) ------------------- */
.au-map-list-col .list-icn-txt.txt {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(17, 17, 26, 0.04);
}

.au-map-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(44px, auto);
    gap: 8px 12px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.au-map-list-grid > li { margin: 0; padding: 0; list-style: none; }
.au-map-list-grid > li[hidden] { display: none !important; }

@media (max-width: 1200px) {
    .au-map-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .au-map-list-grid { grid-template-columns: 1fr; }
}

/* ----- Pager (prev/next + dots) ----------------------------------------- */
.au-map-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
}

.au-map-pager-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ececec;
    color: #882F2F;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.au-map-pager-arrow:hover {
    background: #882F2F;
    color: #fff;
    border-color: #882F2F;
}

.au-map-pager-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #fff;
    color: #882F2F;
    border-color: #ececec;
}

.au-map-pager-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #19191A;
    min-width: 80px;
}

.au-map-pager-count {
    color: #882F2F;
    font-weight: 700;
}

.au-map-pager-dot {
    display: none;
}

.au-map-list-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ececec !important;
    background: #fff;
    color: #19191A;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: background-color 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease,
                box-shadow 0.18s ease;
}

.au-map-list-item .icn-txt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.au-map-list-item .icn-txt > i {
    color: #882F2F;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.au-map-list-item .icn-txt span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.au-map-list-item > i.fa-angle-right {
    color: #9a9a9a;
    font-size: 12px;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.au-map-list-item:hover {
    background-color: #fdf6f6 !important;
    border-color: #f0dada !important;
    color: #882F2F !important;
}

.au-map-list-item:hover .icn-txt i,
.au-map-list-item:hover > i { color: #882F2F !important; }
.au-map-list-item:hover > i.fa-angle-right { transform: translateX(2px); }

.au-map-list-item.is-active {
    background-color: #882F2F !important;
    color: #fff !important;
    border-color: #882F2F !important;
    box-shadow: 0 4px 12px rgba(136, 47, 47, 0.25);
}

.au-map-list-item.is-active .icn-txt i,
.au-map-list-item.is-active i,
.au-map-list-item.is-active span { color: #fff !important; }

.au-map-list-item.au-map-no-link { cursor: pointer; }

/* ----- Map stage --------------------------------------------------------- */
.au-map-stage-col {
    display: block;
}

.au-map-canvas {
    position: relative;
    width: 100%;
    /* 763 / 1000 = 0.763 — locks canvas height to SVG viewBox aspect */
    padding-bottom: 76.3%;
    background: linear-gradient(180deg, #fafafa 0%, #f3eded 100%);
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(17, 17, 26, 0.04);
}

.au-map-svg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* LGA / region name labels inside the SVG */
.au-map-svg .lga-label {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    fill: #555;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2.5px;
    stroke-linejoin: round;
    letter-spacing: 0.15px;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

.au-map-pin-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* ----- Pin + label ------------------------------------------------------- */
.au-map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: pointer;
    display: block;
    text-decoration: none !important;
    z-index: 2;
    line-height: 1;
}

.au-map-pin-icon {
    font-size: 20px;
    color: #882F2F;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7))
            drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
    transform-origin: bottom center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.18s ease;
    flex-shrink: 0;
    animation: au-map-pin-pulse 2.4s ease-in-out infinite;
}

@keyframes au-map-pin-pulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.au-map-pin-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #19191A;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
    z-index: 6;
}

.au-map-pin-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background: #19191A;
    transform: translateX(-50%) rotate(45deg);
}

.au-map-pin:hover { z-index: 4; }
.au-map-pin:hover .au-map-pin-icon {
    color: #6d2424;
    transform: scale(1.25);
    animation-play-state: paused;
}
.au-map-pin:hover .au-map-pin-label {
    opacity: 1;
    visibility: visible;
}

.au-map-pin.is-active { z-index: 5; }
.au-map-pin.is-active .au-map-pin-icon {
    color: #ffb800;
    transform: scale(1.4);
    animation-play-state: paused;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.au-map-pin.is-active .au-map-pin-label {
    opacity: 1;
    visibility: visible;
    background: #882F2F;
}
.au-map-pin.is-active .au-map-pin-label::after { background: #882F2F; }

/* ----- Tooltip ----------------------------------------------------------- */
.au-map-tooltip {
    position: absolute;
    z-index: 10;
    width: 240px;
    background: #fff;
    border: 1px solid #efe6e6;
    border-radius: 12px;
    padding: 14px 16px 12px;
    box-shadow:
        0 16px 36px rgba(17, 17, 26, 0.18),
        0 6px 14px rgba(17, 17, 26, 0.10);
    transform: translate(-50%, calc(-100% - 18px));
    pointer-events: auto;
}

.au-map-tooltip[hidden] { display: none !important; }

/* small arrow underneath pointing to the pin */
.au-map-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid #efe6e6;
    border-bottom: 1px solid #efe6e6;
    transform: translateX(-50%) rotate(45deg);
}

.au-map-tooltip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.18s ease;
}
.au-map-tooltip-close:hover { color: #882F2F; }

.au-map-tooltip-image {
    width: 100%;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f4f4f4;
}

.au-map-tooltip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.au-map-tooltip-image[hidden] { display: none !important; }

.au-map-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #19191A;
    padding-right: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.au-map-tooltip-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #5a5a5a;
    margin: 0 0 10px;
}

.au-map-tooltip-desc:empty { display: none; }

.au-map-tooltip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #882F2F;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #882F2F;
    border-radius: 6px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.au-map-tooltip-cta:hover {
    background: #882F2F;
    color: #fff;
    text-decoration: none;
}

.au-map-tooltip-cta i { transition: transform 0.18s ease; }
.au-map-tooltip-cta:hover i { transform: translateX(2px); }
.au-map-tooltip-cta[hidden] { display: none !important; }
