/**
 * ==========================================================
 * RentHub.lk
 * Homepage Map
 * Main Stylesheet
 * ==========================================================
 */


/* ==========================================================
   MAIN SECTION
   ========================================================== */

.homepage-map-section {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}


.homepage-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}


/* ==========================================================
   SECTION HEADER
   ========================================================== */

.homepage-map-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}


.homepage-map-header h2 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;

    color: #34495e;
}


.homepage-map-header h2 span {
    color: #05ba1b;
}


.homepage-map-header p {
    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #7b8794;
}


/* ==========================================================
   MAIN MAP LAYOUT
   ========================================================== */

.homepage-map-wrapper {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.65fr);

    gap: 24px;

    align-items: stretch;

    position: relative;
}


/* ==========================================================
   LEFT - MAP
   ========================================================== */

.homepage-map-left {
    width: 100%;
    min-width: 0;
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    background: #ffffff;

    border: 2px solid #05ba1b;
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);

    overflow: hidden;

    position: relative;

    z-index: 1;
}


.homepage-map-left svg {
    display: block;

    width: 100%;
    max-width: 600px;
    height: auto;

    margin: 0 auto;
}


/* ==========================================================
   MAP DISTRICT PATHS
   ========================================================== */

.homepage-map-left #features path {
    cursor: pointer;

    transition:
        fill 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================
   MAP DISTRICT - HOVER
   ========================================================== */

.homepage-map-left #features path:hover {
    opacity: 0.85;
}


/* ==========================================================
   MAP DISTRICT - SELECTED / ACTIVE
   ========================================================== */

.homepage-map-left #features path.active {
    fill: #05ba1b !important;

    opacity: 1 !important;

    stroke: #ffffff !important;
    stroke-width: 1.5px !important;

    transition:
        fill 0.2s ease,
        opacity 0.2s ease,
        stroke 0.2s ease;
}


/* ==========================================================
   MAP DISTRICT - SELECTED HOVER
   ========================================================== */

.homepage-map-left #features path.active:hover {
    fill: #05ba1b !important;

    opacity: 1 !important;

    stroke: #ffffff !important;
    stroke-width: 1.5px !important;
}


/* ==========================================================
   RIGHT - DISTRICT INFORMATION
   ========================================================== */

.homepage-map-right {
    width: 100%;
    min-width: 0;

    padding: 32px;

    box-sizing: border-box;

    background: #ffffff;

    border: 2px solid #05ba1b;
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);

    position: relative;

    z-index: 20;

    pointer-events: auto;
}


/* ==========================================================
   DISTRICT HEADER
   ========================================================== */

.district-card {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 28px;
}


.district-icon {
    width: 28px;
    min-width: 28px;

    font-size: 22px;
    line-height: 1;
}


.district-card h3,
#selected-district {
    margin: 0 0 8px;

    font-size: 26px;
    line-height: 1.3;

    font-weight: 700;

    color: #34495e;
}


.district-card p,
#selected-province {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    color: #7b8794;
}


/* ==========================================================
   DISTRICT HEADING
   ========================================================== */

.district-heading {
    margin-bottom: 28px;
}


.district-location-icon {
    width: 100%;
    height: auto;
}


.district-heading h3 {
    margin: 0 0 8px;

    font-size: 26px;
    line-height: 1.3;

    font-weight: 700;

    color: #34495e;
}


.district-heading p {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    color: #7b8794;
}


/* ==========================================================
   VEHICLE SUMMARY
   ========================================================== */

.vehicle-summary {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr;

    justify-items: center;

    gap: 16px;

    margin-bottom: 30px;

    position: relative;

    z-index: 30;

    pointer-events: auto;
}


/* ==========================================================
   VEHICLE SUMMARY BOX
   ========================================================== */

.vehicle-summary-box {
    width: 180px;
    max-width: 100%;

    padding: 22px 15px;

    box-sizing: border-box;

    text-align: center;

    background: #ffffff;

    border: 2px solid #05ba1b;
    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.035);

    position: relative;

    z-index: 40;

    cursor: pointer !important;

    pointer-events: auto !important;

    user-select: none;
    -webkit-user-select: none;

    touch-action: manipulation;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* ==========================================================
   VEHICLE SUMMARY BOX - HOVER
   ========================================================== */

.vehicle-summary-box:hover {
    transform: translateY(-2px);

    border-color: #05ba1b;

    box-shadow:
        0 8px 24px rgba(5, 186, 27, 0.14);
}


/* ==========================================================
   VEHICLE SUMMARY BOX - ACTIVE
   ========================================================== */

.vehicle-summary-box:active {
    transform: translateY(0);
}


/* ==========================================================
   VEHICLE SUMMARY BOX - FOCUS
   ========================================================== */

.vehicle-summary-box:focus,
.vehicle-summary-box:focus-visible {
    outline: none;

    border-color: #05ba1b;

    box-shadow:
        0 0 0 3px rgba(5, 186, 27, 0.14);
}


/* ==========================================================
   VEHICLE SUMMARY TITLE
   ========================================================== */

.vehicle-summary-title {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.4;

    color: #66717c;
}


/* ==========================================================
   VEHICLE SUMMARY NUMBER
   ========================================================== */

.vehicle-summary-number {
    display: block;

    margin: 0 0 5px;

    font-size: 42px;
    line-height: 1;

    font-weight: 700;

    color: #05ba1b;

    cursor: pointer;
}


/* ==========================================================
   VEHICLE SUMMARY TEXT
   ========================================================== */

.vehicle-summary-text {
    display: block;

    font-size: 13px;
    line-height: 1.4;

    color: #8a959e;

    cursor: pointer;
}


/* ==========================================================
   CITIES TITLE
   ========================================================== */

.homepage-map-right h4,
.main-cities h4 {
    margin: 0 0 16px;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;

    color: #34495e;
}


/* ==========================================================
   CITY BUTTON CONTAINER
   ========================================================== */

#city-buttons {
    width: 100%;

    display: flex;

    flex-wrap: wrap;

    align-items: flex-start;

    gap: 10px;

    position: relative;

    z-index: 30;

    pointer-events: auto;
}


/* ==========================================================
   CITY BUTTON
   ========================================================== */

.homepage-map-section #city-buttons .city-btn,
.homepage-map-section .city-btn {
    width: auto;
    max-width: 100%;

    min-height: 48px;

    margin: 0;
    padding: 12px 16px;

    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    flex: 0 1 auto;

    flex-wrap: nowrap;

    box-sizing: border-box;

    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #66717c !important;

    border: 1px solid #e8ecef !important;
    border-radius: 10px !important;

    box-shadow: none !important;

    font-family: inherit;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;

    text-align: left;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    position: relative;

    z-index: 40;

    pointer-events: auto;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================
   CITY NAME
   ========================================================== */

.homepage-map-section #city-buttons .city-btn .city-name,
.homepage-map-section .city-btn .city-name {
    display: inline-block;

    min-width: 0;

    margin: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    color: inherit;
}


/* ==========================================================
   CITY VEHICLE COUNT
   ========================================================== */

.homepage-map-section #city-buttons .city-btn .city-count,
.homepage-map-section .city-btn .city-count {
    display: inline-block;

    flex: 0 0 auto;

    margin-left: 14px;

    white-space: nowrap;

    color: #05ba1b !important;

    font-weight: 700;
}


/* ==========================================================
   CITY BUTTON - HOVER
   ========================================================== */

.homepage-map-section #city-buttons .city-btn:hover,
.homepage-map-section .city-btn:hover {
    background: #f6faf7 !important;
    background-color: #f6faf7 !important;

    color: #05ba1b !important;

    border-color: #05ba1b !important;

    box-shadow: none !important;

    transform: translateY(-1px);
}


/* ==========================================================
   CITY BUTTON - ACTIVE
   ========================================================== */

.homepage-map-section #city-buttons .city-btn.active,
.homepage-map-section .city-btn.active {
    background: #05ba1b !important;
    background-color: #05ba1b !important;

    color: #ffffff !important;

    border-color: #05ba1b !important;

    box-shadow: none !important;
}


/* ==========================================================
   CITY BUTTON - ACTIVE COUNT
   ========================================================== */

.homepage-map-section #city-buttons .city-btn.active .city-count,
.homepage-map-section .city-btn.active .city-count {
    color: #ffffff !important;
}


/* ==========================================================
   CITY BUTTON - ACTIVE HOVER
   ========================================================== */

.homepage-map-section #city-buttons .city-btn.active:hover,
.homepage-map-section .city-btn.active:hover {
    background: #05ba1b !important;
    background-color: #05ba1b !important;

    color: #ffffff !important;

    border-color: #05ba1b !important;

    box-shadow: none !important;
}


/* ==========================================================
   CITY BUTTON - FOCUS
   ========================================================== */

.homepage-map-section #city-buttons .city-btn:focus,
.homepage-map-section #city-buttons .city-btn:focus-visible,
.homepage-map-section .city-btn:focus,
.homepage-map-section .city-btn:focus-visible {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #66717c !important;

    border-color: #05ba1b !important;

    outline: none !important;

    box-shadow:
        0 0 0 2px rgba(5, 186, 27, 0.12) !important;
}


/* ==========================================================
   ACTIVE + FOCUS
   ========================================================== */

.homepage-map-section #city-buttons .city-btn.active:focus,
.homepage-map-section #city-buttons .city-btn.active:focus-visible,
.homepage-map-section .city-btn.active:focus,
.homepage-map-section .city-btn.active:focus-visible {
    background: #05ba1b !important;
    background-color: #05ba1b !important;

    color: #ffffff !important;

    border-color: #05ba1b !important;

    outline: none !important;

    box-shadow:
        0 0 0 2px rgba(5, 186, 27, 0.15) !important;
}


/* ==========================================================
   MAP TOOLTIP
   ========================================================== */

.map-tooltip {
    position: fixed;

    display: none;

    max-width: 220px;

    padding: 9px 13px;

    box-sizing: border-box;

    background: #34495e;

    color: #ffffff;

    border-radius: 7px;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;

    white-space: nowrap;

    pointer-events: none;

    z-index: 999999;

    opacity: 0;

    transform: translateY(3px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.16);
}


.map-tooltip.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .homepage-map-container {
        padding: 35px 18px;
    }


    .homepage-map-wrapper {
        grid-template-columns: 1fr;
    }


    .homepage-map-left {
        min-height: 450px;
    }


    .homepage-map-right {
        padding: 28px;

        z-index: 50;
    }


    .vehicle-summary {
        z-index: 60;
    }


    .vehicle-summary-box {
        z-index: 70;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .homepage-map-container {
        padding: 25px 14px;
    }


    .homepage-map-header {
        margin-bottom: 22px;
    }


    .homepage-map-header h2 {
        font-size: 27px;
    }


    .homepage-map-header p {
        font-size: 14px;
    }


    .homepage-map-left {
        min-height: 330px;

        padding: 18px;

        border-radius: 14px;
    }


    .homepage-map-left svg {
        max-width: 100%;
    }


    .homepage-map-right {
        padding: 22px;

        border-radius: 14px;

        z-index: 50;
    }


    .vehicle-summary {
        grid-template-columns: 1fr;

        gap: 12px;

        z-index: 60;
    }


    .vehicle-summary-box {
        width: 180px;
        max-width: 100%;

        z-index: 70;
    }


    .vehicle-summary-number {
        font-size: 38px;
    }


    #city-buttons {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

        z-index: 60;
    }


    .homepage-map-section #city-buttons .city-btn,
    .homepage-map-section .city-btn {
        width: auto;
        max-width: 100%;

        min-height: 48px;

        justify-content: space-between;

        white-space: nowrap;

        z-index: 70;
    }


    .homepage-map-section #city-buttons .city-btn .city-name,
    .homepage-map-section .city-btn .city-name {
        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .homepage-map-section #city-buttons .city-btn .city-count,
    .homepage-map-section .city-btn .city-count {
        flex: 0 0 auto;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .homepage-map-container {
        padding: 20px 10px;
    }


    .homepage-map-header h2 {
        font-size: 24px;
    }


    .homepage-map-left {
        min-height: 280px;

        padding: 12px;
    }


    .homepage-map-right {
        padding: 18px;

        z-index: 50;
    }


    .vehicle-summary-box {
        width: 170px;

        padding: 18px 12px;

        z-index: 70;
    }


    .vehicle-summary-number {
        font-size: 34px;
    }


    .city-btn {
        min-height: 46px;
    }

}


/* ==========================================================
   FINAL CLICK SAFETY
   ==========================================================
   Ensures the vehicle box remains above any overlapping
   desktop/tablet layout layer.
   ========================================================== */

.homepage-map-section .homepage-map-right,
.homepage-map-section .vehicle-summary,
.homepage-map-section .vehicle-summary-box {
    pointer-events: auto !important;
}


.homepage-map-section .vehicle-summary-box * {
    pointer-events: none;
}
/* Keep the current category-first interaction with the original map appearance. */
.homepage-map-section.category-required .homepage-map-left #features path {
    cursor: not-allowed !important;
}
.homepage-map-section.category-required .vehicle-summary-box {
    cursor: default !important;
    opacity: .65;
    transform: none !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035) !important;
}
.homepage-map-section.category-locked .homepage-map-left #features path {
    cursor: pointer;
}
.homepage-map-section { scroll-margin-top: 90px; }
/* The reference uses a uniform green map without a colour key. */
.rhmp-map-legend { display: none; }
@media (prefers-reduced-motion: reduce) {
    .homepage-map-left #features path,
    .homepage-map-left #features path.active { transition: none; }
}
\n\n/* ==========================================================
   v2.5.9 - CLEAN LIVE DISTRICT VEHICLE COUNTS
   Positive counts only. White number text, no circle/badge.
   Hover tooltip remains district-name only.
========================================================== */
.homepage-map-left #rhmp-district-count-labels,
.homepage-map-left #rhmp-district-count-labels * {
    pointer-events: none !important;
}

.homepage-map-left .rhmp-district-count-marker text {
    fill: #ffffff;
    font-family: inherit;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.02em;
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke fill;
    stroke: rgba(0, 82, 38, .28);
    stroke-width: 1.5px;
    stroke-linejoin: round;
}



/* ==========================================================
   v2.5.10 - SLIGHTLY LARGER MAP INSIDE SAME FRAME
   Keep the existing frame dimensions and interactions unchanged.
========================================================== */
.homepage-map-left svg {
    transform: scale(1.12);
    transform-origin: center center;
}

@media (max-width: 600px) {
    .homepage-map-left svg {
        transform: scale(1.14);
    }
}

/* ============================================================
   RentHubMP 2.6.0 — District focus design
   Presentation-only: map data, URL filters, and click routing
   continue to use their original JavaScript/PHP functions.
   ============================================================ */
.homepage-map-section {
    --rhmp-map-navy: #101c36;
    --rhmp-map-muted: #63728a;
    --rhmp-map-green: #02bd6b;
    --rhmp-map-border: #b8f4d5;
    --rhmp-map-shadow: 0 12px 32px rgba(12, 146, 91, .09);
    font-family: inherit;
    color: var(--rhmp-map-navy);
}
.homepage-map-section .homepage-map-container {
    max-width: 1500px;
    padding: 30px clamp(12px, 2.3vw, 28px) 44px;
}
.homepage-map-section .homepage-map-header { margin-bottom: 27px; }
.homepage-map-section .homepage-map-header h2 {
    color: var(--rhmp-map-navy);
    font-size: clamp(29px, 3.1vw, 49px);
    font-weight: 800;
    letter-spacing: -.037em;
    margin: 0 0 4px;
}
.homepage-map-section .homepage-map-header h2 span { color: #00ac63; }
.homepage-map-section .homepage-map-header p {
    font-size: clamp(14px, 1.2vw, 19px);
    color: var(--rhmp-map-muted);
}
.homepage-map-section .homepage-map-wrapper {
    grid-template-columns: minmax(0, 1.94fr) minmax(315px, .97fr);
    gap: 20px;
}
.homepage-map-section .homepage-map-left,
.homepage-map-section .homepage-map-right {
    border: 1px solid var(--rhmp-map-border);
    border-radius: 21px;
    box-shadow: var(--rhmp-map-shadow);
    min-height: 545px;
}
.homepage-map-section .homepage-map-left {
    padding: 24px;
    background-image: url('../images/topographic-pattern.svg'), radial-gradient(ellipse at 50% 45%, #e7fff2 0%, #f7fffb 58%, #ffffff 100%);
    background-repeat: repeat, no-repeat;
    background-size: 560px 560px, cover;
    isolation: isolate;
}
.homepage-map-section .homepage-map-left svg {
    width: 100%;
    height: auto;
    max-width: 670px;
    overflow: visible;
}
.homepage-map-section .homepage-map-left #features path {
    fill: #5eaa81;
    stroke: #d6f7e5;
    transition: fill .25s ease, opacity .25s ease;
}
.homepage-map-section .homepage-map-left #features path.rhmp-has-ads {
    fill: #3caa76;
}
.homepage-map-section .homepage-map-left #features path.rhmp-no-ads {
    fill: #8dcbaa;
}
.homepage-map-section .homepage-map-left .rhmp-district-count-marker text {
    font-size: 26px;
    font-weight: 800;
    fill: #fff;
    stroke: rgba(10, 65, 43, .22);
    stroke-width: 1.6px;
}
.homepage-map-section .homepage-map-right {
    padding: clamp(20px, 2vw, 30px);
    display: flex;
    flex-direction: column;
    background: #fff;
}
.homepage-map-section .district-heading { margin-bottom: 22px; }
.homepage-map-section .district-heading h3,
.homepage-map-section #selected-district {
    color: var(--rhmp-map-navy);
    font-size: clamp(23px, 2.1vw, 32px);
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 0 0 4px;
}
.homepage-map-section .district-heading p { color: var(--rhmp-map-muted); font-size: 15px; }
.homepage-map-section .rhmp-district-subtitle { display: none; }
.homepage-map-section .vehicle-summary { margin: 0 0 30px; }
.homepage-map-section .vehicle-summary-box {
    width: 100%;
    min-height: 115px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(128deg, #19dc73 0%, #02b96a 53%, #009e68 100%);
    box-shadow: 0 7px 19px rgba(0, 164, 92, .16);
    padding: 22px 25px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}
.homepage-map-section .vehicle-summary-box:hover {
    border: none;
    box-shadow: 0 12px 25px rgba(0, 164, 92, .21);
}
.homepage-map-section .vehicle-summary-number {
    font-size: clamp(44px, 4vw, 64px);
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.homepage-map-section .vehicle-summary-text {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}
.homepage-map-section .main-cities h4 {
    color: var(--rhmp-map-navy);
    font-size: clamp(21px, 1.7vw, 27px);
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: -.025em;
}
.homepage-map-section .rhmp-city-subtitle { color: var(--rhmp-map-muted); font-size: 15px; margin: 0 0 20px; }
.homepage-map-section #city-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}
.homepage-map-section #city-buttons .city-btn {
    width: 100%;
    border: 1px solid #82cfa8 !important;
    border-radius: 14px !important;
    color: var(--rhmp-map-navy) !important;
    min-height: 48px;
    padding: 11px 15px;
    justify-content: center;
    font-weight: 650;
    max-width: none;
}
.homepage-map-section #city-buttons .city-btn:hover {
    color: #009e68 !important;
    background: #effff6 !important;
    border-color: #02bc6e !important;
}
.homepage-map-section #city-buttons .city-btn.active {
    background: linear-gradient(125deg, #17d879, #00aa65) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 5px 10px rgba(0, 160, 93, .15) !important;
}
.homepage-map-section #city-buttons .city-btn.active:hover { color: #fff !important; }
.homepage-map-section #city-buttons .city-count { color: #009b59 !important; margin-left: 9px; }
.homepage-map-section #city-buttons .city-btn.active .city-count { color: #fff !important; }
.homepage-map-section .rhmp-city-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: auto 0 0;
    padding: 19px;
    min-height: 82px;
    border-radius: 15px;
    background: linear-gradient(105deg, #e9f9f1, #edfff7);
    font-size: 13px;
    font-weight: 600;
    color: #52637c;
    line-height: 1.5;
}
.homepage-map-section .rhmp-city-hint-pin {
    display: grid;
    place-items: center;
    color: #00b875;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #d6f8e6;
    font-size: 25px;
}
/* Focus elements are hidden before a district is selected. */
.homepage-map-section .rhmp-focus-controls,
.homepage-map-section .rhmp-map-focus-marker,
.homepage-map-section .rhmp-map-hint { display: none; }
.homepage-map-section.rhmp-district-focused .rhmp-focus-controls {
    display: flex;
    position: absolute;
    top: 19px;
    left: 19px;
    right: 19px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 15;
    pointer-events: none;
}
.homepage-map-section .rhmp-district-zoom-stage {
    display: block;
    position: absolute;
    inset: 24px;
    z-index: 9;
    pointer-events: none;
    opacity: 0;
    transform: scale(.90);
    transition: opacity .32s ease, transform .36s cubic-bezier(.2,.7,.2,1);
}
.homepage-map-section .rhmp-district-zoom-stage svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.homepage-map-section .homepage-map-left .rhmp-base-map-svg {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity .28s ease, transform .36s cubic-bezier(.2,.7,.2,1);
}
.homepage-map-section.rhmp-district-focused .homepage-map-left .rhmp-base-map-svg {
    opacity: 0;
    visibility: hidden;
    transform: scale(.94);
}
.homepage-map-section.rhmp-district-focused .rhmp-district-zoom-stage {
    opacity: 1;
    transform: scale(1);
}
.homepage-map-section .rhmp-district-zoom-stage.is-exiting {
    opacity: 0;
    transform: scale(.94);
}
.homepage-map-section .rhmp-map-back,
.homepage-map-section .rhmp-focus-chip {
    min-height: 43px;
    padding: 9px 16px;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 15px;
    font-family: inherit;
    font-weight: 700;
}
.homepage-map-section .rhmp-map-back {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rhmp-map-navy);
    border: 1px solid #29ae73;
    background: rgba(255,255,255,.94);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.homepage-map-section .rhmp-map-back:hover,
.homepage-map-section .rhmp-map-back:focus-visible {
    background: #e8fff3;
    transform: translateY(-1px);
}
.homepage-map-section .rhmp-map-back span { font-size: 23px; line-height: 0; }
.homepage-map-section .rhmp-focus-chip {
    display: inline-flex;
    align-items: center;
    color: #049963;
    background: rgba(209, 252, 229, .9);
    white-space: nowrap;
}
.homepage-map-section.rhmp-district-focused .homepage-map-left svg {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
    transform: none !important;
    overflow: hidden;
}
.homepage-map-section.rhmp-district-focused .homepage-map-left #features path.rhmp-district-hidden {
    display: none;
}
.homepage-map-section.rhmp-district-focused .homepage-map-left #points,
.homepage-map-section.rhmp-district-focused .homepage-map-left #label_points,
.homepage-map-section.rhmp-district-focused .homepage-map-left #rhmp-district-count-labels {
    display: none;
}
.homepage-map-section.rhmp-district-focused .homepage-map-left #features path.active {
    fill: url(#rhmp-active-district-gradient) !important;
    opacity: 1 !important;
    stroke: rgba(248, 255, 250, .9) !important;
    stroke-width: 1.4px !important;
    filter: drop-shadow(0 2px 12px rgba(0, 175, 92, .22));
    pointer-events: none;
}
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    z-index: 12;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 105, 53, .28);
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
    width: min(72%, 280px);
}
.homepage-map-section .rhmp-marker-pin {
    width: 23px;
    height: 23px;
    border: 6px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: transparent;
    transform: rotate(-45deg);
    margin: 0 0 12px;
    filter: drop-shadow(0 2px 2px rgba(0,100,55,.2));
}
.homepage-map-section .rhmp-marker-pin::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
}
.homepage-map-section .rhmp-map-focus-marker strong { font-size: clamp(14px, 1.4vw, 20px); }
.homepage-map-section .rhmp-marker-total {
    padding: 3px 9px;
    font-size: clamp(12px, 1.05vw, 15px);
    border-radius: 10px;
    background: rgba(0, 105, 63, .23);
    border: 1px solid rgba(255,255,255,.36);
}
.homepage-map-section.rhmp-district-focused .rhmp-map-hint {
    display: block;
    position: absolute;
    bottom: 17px;
    left: 16px;
    right: 16px;
    text-align: center;
    z-index: 11;
    pointer-events: none;
    font-size: 14px;
    color: #5f7189;
    margin: 0;
    font-weight: 600;
}
.homepage-map-section.rhmp-district-focused .rhmp-map-hint { font-size: 0; }
.homepage-map-section.rhmp-district-focused .rhmp-map-hint::after {
    content: 'Select A City To Continue';
    font-size: 14px;
}
.homepage-map-section.rhmp-district-focused #selected-province { display: none; }
.homepage-map-section.rhmp-district-focused .rhmp-district-subtitle { display: block; }
.homepage-map-section .city-placeholder { margin: 0; color: #77879a; }

@media (max-width: 900px) {
    .homepage-map-section .homepage-map-wrapper { grid-template-columns: 1fr; gap: 14px; }
    .homepage-map-section .homepage-map-left { min-height: 440px; }
    .homepage-map-section .homepage-map-right { min-height: 375px; }
    .homepage-map-section .rhmp-city-hint { margin-top: 23px; }
}
@media (max-width: 600px) {
    .homepage-map-section .homepage-map-container { padding: 24px 10px 32px; }
    .homepage-map-section .homepage-map-header { margin-bottom: 20px; }
    .homepage-map-section .homepage-map-header h2 { font-size: clamp(25px, 7.7vw, 36px); }
    .homepage-map-section .homepage-map-left { min-height: 350px; border-radius: 17px; padding: 12px; }
    .homepage-map-section .homepage-map-right { border-radius: 17px; padding: 22px 19px; min-height: 330px; }
    .homepage-map-section .vehicle-summary-box { min-height: 94px; padding: 18px 22px; }
    .homepage-map-section .vehicle-summary-number { font-size: 52px; }
    .homepage-map-section #city-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .homepage-map-section #city-buttons .city-btn { width: 100%; min-width: 0; max-width: 100%; }
    .homepage-map-section .rhmp-city-hint { min-height: 65px; padding: 13px; }
    .homepage-map-section.rhmp-district-focused .rhmp-focus-controls { top: 10px; left: 10px; right: 10px; }
    .homepage-map-section .rhmp-map-back,
    .homepage-map-section .rhmp-focus-chip { padding: 8px 10px; font-size: 12px; min-height: 37px; border-radius: 11px; }
    .homepage-map-section .rhmp-marker-pin { transform: rotate(-45deg) scale(.72); margin-bottom: 5px; }
    .homepage-map-section .rhmp-map-focus-marker strong { font-size: 14px; }
    .homepage-map-section .rhmp-marker-total { font-size: 12px; }
}
@media (max-width: 360px) {
    .homepage-map-section .rhmp-map-back,
    .homepage-map-section .rhmp-focus-chip { padding: 7px 8px; font-size: 11px; }
    .homepage-map-section .vehicle-summary-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .homepage-map-section .rhmp-map-back,
    .homepage-map-section .rhmp-district-zoom-stage,
    .homepage-map-section .homepage-map-left .rhmp-base-map-svg { transition: none; }
}

@media (max-width: 340px) {
    .homepage-map-section #city-buttons { grid-template-columns: 1fr; }
    .homepage-map-section .rhmp-district-zoom-stage { inset: 12px; }
}

/* v2.6.2 final center overrides */
.homepage-map-section .rhmp-marker-pin,
.homepage-map-section .rhmp-marker-pin::after {
    display: none !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker {
    gap: 10px !important;
    width: min(72%, 280px) !important;
}
.homepage-map-section .rhmp-map-focus-marker strong {
    font-size: clamp(24px, 3vw, 42px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.03em !important;
    font-weight: 800 !important;
}
.homepage-map-section .rhmp-marker-total {
    padding: 8px 16px !important;
    font-size: clamp(16px, 1.45vw, 21px) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(0, 82, 47, .16);
}
@media (max-width: 600px) {
    .homepage-map-section .rhmp-map-focus-marker strong {
        font-size: 28px !important;
    }
    .homepage-map-section .rhmp-marker-total {
        font-size: 15px !important;
        padding: 7px 14px !important;
    }
}

/* ----------------------------------------------------------
   v2.6.3 – shape-aware district label and source Ad Card icon
   ---------------------------------------------------------- */
.homepage-map-section.rhmp-district-focused .homepage-map-left .rhmp-base-map-svg {
    visibility: visible !important;
    opacity: 0 !important;
    pointer-events: none;
}
.homepage-map-section .rhmp-district-zoom-stage {
    transition: opacity .5s cubic-bezier(.2,.7,.15,1),
        transform .6s cubic-bezier(.16,1,.3,1) !important;
    transform: scale(.76) !important;
    transform-origin: center !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-district-zoom-stage {
    transform: scale(1) !important;
}
.homepage-map-section .homepage-map-left .rhmp-base-map-svg {
    transition: opacity .43s ease, transform .5s cubic-bezier(.16,1,.3,1) !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker {
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: nowrap;
    gap: 4px !important;
    opacity: 1;
    animation: rhmp-label-arrive .42s ease both;
}
.homepage-map-section .rhmp-map-focus-marker strong {
    line-height: 1.08 !important;
    font-size: 24px;
    letter-spacing: -.02em !important;
    white-space: nowrap;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 85, 43, .35);
}
.homepage-map-section .rhmp-marker-total {
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    padding: 3px 8px !important;
    line-height: 1.24 !important;
    font-size: 15px;
    background: rgba(0, 107, 62, .28) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255,255,255,.23) !important;
    border-radius: 9px !important;
}
.homepage-map-section .rhmp-marker-pin,
.homepage-map-section.rhmp-district-focused .rhmp-marker-pin {
    display: block !important;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: var(--rhmp-label-icon-size, 24px) !important;
    height: var(--rhmp-label-icon-size, 24px) !important;
    margin: 0 auto 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: url('../images/location-icon-transparent.png') center / contain no-repeat !important;
    transform: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 66, 40, .28));
}
.homepage-map-section .rhmp-marker-pin::after { display: none !important; }
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker.rhmp-label-compact {
    gap: 2px !important;
}
@keyframes rhmp-label-arrive {
    from { opacity: 0; filter: blur(3px); }
    to { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
    .homepage-map-section .rhmp-district-zoom-stage,
    .homepage-map-section .homepage-map-left .rhmp-base-map-svg {
        transition: none !important;
    }
    .homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker {
        animation: none;
    }
}

/* Space-efficient arrangement only where a narrow coastal district needs it. */
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker.rhmp-label-compact {
    display: grid !important;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 4px !important;
    row-gap: 2px !important;
    justify-items: center;
    justify-content: center;
    align-content: center;
}
.homepage-map-section.rhmp-district-focused .rhmp-label-compact .rhmp-marker-pin {
    grid-row: 1;
    grid-column: 1;
    margin: 0 !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-label-compact strong {
    grid-row: 1;
    grid-column: 2;
}
.homepage-map-section.rhmp-district-focused .rhmp-label-compact .rhmp-marker-total {
    grid-row: 2;
    grid-column: 1 / 3;
}

/* Paint at small scale on first frame so first click also animates. */
.homepage-map-section.rhmp-district-focused .rhmp-district-zoom-stage.is-entering {
    opacity: 0 !important;
    transform: scale(.76) !important;
}


/* v2.6.4 blue theme label update */
.homepage-map-section .rhmp-map-focus-marker strong {
    color: var(--rhmp-map-navy) !important;
    text-shadow: 0 2px 8px rgba(255,255,255,.45) !important;
}
.homepage-map-section .rhmp-marker-total {
    color: #ffffff !important;
    background: linear-gradient(135deg, #172750 0%, #223a76 100%) !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    box-shadow: 0 8px 18px rgba(16, 28, 54, .20) !important;
}
.homepage-map-section .rhmp-marker-pin,
.homepage-map-section.rhmp-district-focused .rhmp-marker-pin {
    background: url('../images/location-icon-transparent.png') center / contain no-repeat !important;
    filter: drop-shadow(0 3px 6px rgba(16, 28, 54, .18));
}


/* v2.6.5: transparent location icon and lighter RentHubMP blue labels. */
.homepage-map-section.rhmp-district-focused .rhmp-map-focus-marker strong {
    color: #215f91 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.70), 0 2px 9px rgba(255,255,255,.28) !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-marker-total {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4aa4d5 0%, #3186bf 100%) !important;
    border: 1px solid rgba(255,255,255,.56) !important;
    box-shadow: 0 5px 14px rgba(23,95,145,.19) !important;
}
.homepage-map-section.rhmp-district-focused .rhmp-marker-pin {
    background-image: url('../images/location-icon-transparent.png') !important;
}


/* v2.6.6 - Align the All Districts arrow geometrically on mobile and desktop.
 * Use CSS strokes instead of the font's off-centre left-arrow glyph.
 * Visual-only: existing button markup, click handling and navigation remain intact. */
.homepage-map-section .rhmp-map-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.homepage-map-section .rhmp-map-back > span {
    display: inline-block;
    box-sizing: border-box;
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    font-size: 0 !important; /* Hide the platform-dependent text arrow. */
    line-height: 0 !important;
    vertical-align: middle;
}
.homepage-map-section .rhmp-map-back > span::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 8px;
    left: 2px;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.homepage-map-section .rhmp-map-back > span::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 5px;
    left: 3px;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    border-radius: 1px;
    transform: rotate(45deg);
}
@media (max-width: 600px) {
    .homepage-map-section .rhmp-map-back > span {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
    }
    .homepage-map-section .rhmp-map-back > span::before {
        top: 7px;
        left: 1px;
        width: 14px;
    }
    .homepage-map-section .rhmp-map-back > span::after {
        top: 4px;
        left: 2px;
    }
}
