/* =========================================================
   DALISAY GROCERY
   BRANCHES PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.branches-hero {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            100deg,
            rgba(0, 59, 106, .98),
            rgba(0, 59, 106, .80),
            rgba(0, 59, 106, .35)
        ),
        url("../images/dalisay-store.jpg")
        center / cover no-repeat;

}


.branches-hero::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 100px;

    background:
        linear-gradient(
            to top,
            #003b6a,
            transparent
        );

    pointer-events: none;

}


.branches-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(255, 193, 7, .15),
            transparent 35%
        );

}


.branches-hero-content {

    position: relative;

    z-index: 2;

    max-width: 760px;

    padding: 100px 0;

    color: #fff;

}


.branches-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    margin-bottom: 20px;

    border: 1px solid
        rgba(255, 193, 7, .5);

    border-radius: 30px;

    background:
        rgba(255, 193, 7, .12);

    color: #ffc107;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

}


.branches-hero h1 {

    margin: 0;

    font-size: clamp(
        48px,
        7vw,
        88px
    );

    line-height: .95;

    font-weight: 900;

    letter-spacing: -3px;

}


.branches-hero h1 strong {

    display: block;

    color: #ffc107;

}


.branches-hero-content p {

    max-width: 650px;

    margin: 28px 0;

    color: rgba(255,255,255,.85);

    font-size: 17px;

    line-height: 1.8;

}


.branches-hero-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 15px 24px;

    border-radius: 5px;

    background: #ffc107;

    color: #003b6a;

    text-decoration: none;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: .8px;

    transition: .3s ease;

}


.branches-hero-button:hover {

    background: #fff;

    color: #003b6a;

    transform: translateY(-3px);

}


.branches-hero-button i {

    font-size: 20px;

}



/* =========================================================
   INTRO
========================================================= */

.branches-intro {

    padding: 100px 0 55px;

    background: #003b6a;

    color: #fff;

}


.branches-section-heading {

    max-width: 760px;

    margin: 0 auto;

    text-align: center;

}


.branches-section-heading > span {

    color: #ffc107;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;

}


.branches-section-heading h2 {

    margin: 12px 0;

    font-size: clamp(
        32px,
        5vw,
        54px
    );

    font-weight: 900;

    line-height: 1;

}


.branches-section-heading h2 strong {

    color: #ffc107;

}


.branches-section-heading p {

    margin: 20px auto 0;

    max-width: 620px;

    color: rgba(255,255,255,.68);

    line-height: 1.8;

}



/* =========================================================
   SEARCH
========================================================= */

.branch-search-wrapper {

    max-width: 720px;

    margin: 45px auto 0;

}


.branch-search {

    position: relative;

    display: flex;

    align-items: center;

    height: 65px;

    padding: 0 20px;

    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.18);

}


.branch-search > i {

    margin-right: 14px;

    color: #003b6a;

    font-size: 25px;

}


.branch-search input {

    width: 100%;

    height: 100%;

    border: 0;

    outline: 0;

    color: #003b6a;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

}


.branch-search input::placeholder {

    color: #8b9aaa;

}


.clear-search {

    display: none;

    align-items: center;

    justify-content: center;

    width: 35px;

    height: 35px;

    flex-shrink: 0;

    border: 0;

    border-radius: 50%;

    background: #eef2f5;

    color: #003b6a;

}


.clear-search.show {

    display: flex;

}



/* =========================================================
   BRANCH LIST
========================================================= */

.branch-list-section {

    padding: 35px 0 100px;

    background: #003b6a;

}


.branch-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


.branch-card {

    position: relative;

    overflow: hidden;

    border: 1px solid
        rgba(255,255,255,.08);

    border-radius: 12px;

    background: #fff;

    color: #003b6a;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.branch-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 25px 50px
        rgba(0,0,0,.25);

}


.branch-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background: #ffc107;

}


.branch-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 25px 25px 0;

}


.branch-number {

    font-size: 13px;

    font-weight: 900;

    color: #a7b4bf;

    letter-spacing: 2px;

}


.branch-status {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #32854a;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

}


.status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #32a852;

    box-shadow:
        0 0 0 4px
        rgba(50,168,82,.12);

}


.branch-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 62px;

    height: 62px;

    margin: 25px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #fff7d6;

    color: #003b6a;

    font-size: 29px;

}


.branch-card-content {

    padding: 0 25px 28px;

}


.branch-location {

    display: flex;

    align-items: center;

    gap: 5px;

    margin-bottom: 7px;

    color: #d09e00;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.branch-location i {

    font-size: 15px;

}


.branch-card h3 {

    margin: 0 0 12px;

    font-size: 21px;

    font-weight: 900;

    line-height: 1.2;

}


.branch-address {

    min-height: 45px;

    margin: 0;

    color: #687989;

    font-size: 13px;

    line-height: 1.7;

}


.branch-details {

    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;

    margin: 25px 0;

    padding-top: 20px;

    border-top: 1px solid #e7edf1;

}


.branch-detail {

    display: flex;

    align-items: center;

    gap: 12px;

}


.detail-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    border-radius: 7px;

    background: #eef4f8;

    color: #003b6a;

    font-size: 18px;

}


.branch-detail small {

    display: block;

    margin-bottom: 3px;

    color: #9aa8b4;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

}


.branch-detail strong {

    display: block;

    color: #003b6a;

    font-size: 12px;

    font-weight: 800;

}


.direction-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 13px;

    border-radius: 5px;

    background: #003b6a;

    color: #fff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .8px;

    transition: .3s ease;

}


.direction-button:hover {

    background: #ffc107;

    color: #003b6a;

}


.direction-button i {

    font-size: 18px;

}



/* =========================================================
   NO RESULTS
========================================================= */

.branch-no-results {

    display: none;

    padding: 70px 20px;

    text-align: center;

    color: #fff;

}


.branch-no-results.show {

    display: block;

}


.no-results-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 70px;

    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #ffc107;

    font-size: 30px;

}


.branch-no-results h3 {

    margin-bottom: 8px;

    font-size: 22px;

    font-weight: 900;

}


.branch-no-results p {

    margin: 0;

    color: rgba(255,255,255,.6);

}



/* =========================================================
   MAP
========================================================= */

.branch-map-section {

    padding: 100px 0;

    background: #f4f7f9;

}


.map-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;

}


.map-heading span {

    color: #d09e00;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;

}


.map-heading h2 {

    margin: 10px 0 0;

    color: #003b6a;

    font-size: clamp(
        32px,
        5vw,
        52px
    );

    font-weight: 900;

    line-height: 1;

}


.map-heading h2 strong {

    color: #d09e00;

}


.map-heading > p {

    max-width: 360px;

    margin: 0;

    color: #667788;

    font-size: 14px;

    line-height: 1.8;

}


.map-wrapper {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    min-height: 500px;

    overflow: hidden;

    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 20px 50px
        rgba(0,59,106,.12);

}


.branch-map {

    position: relative;

    min-height: 500px;

    background:

        linear-gradient(
            45deg,
            #e8eef2 25%,
            transparent 25%
        ) 0 0 / 40px 40px,

        linear-gradient(
            -45deg,
            #e8eef2 25%,
            transparent 25%
        ) 0 0 / 40px 40px,

        #f5f8fa;

}


.map-placeholder {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 90%;

    max-width: 450px;

    transform:
        translate(-50%, -50%);

    text-align: center;

}


.map-placeholder-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 75px;

    height: 75px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #003b6a;

    color: #ffc107;

    font-size: 35px;

    box-shadow:
        0 10px 30px
        rgba(0,59,106,.25);

}


.map-placeholder h3 {

    margin-bottom: 10px;

    color: #003b6a;

    font-size: 21px;

    font-weight: 900;

}


.map-placeholder p {

    margin-bottom: 20px;

    color: #718292;

    font-size: 13px;

}


.map-placeholder a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 12px 18px;

    border-radius: 4px;

    background: #ffc107;

    color: #003b6a;

    text-decoration: none;

    font-size: 10px;

    font-weight: 900;

}


.map-side-panel {

    background: #fff;

    border-left: 1px solid #e5ebef;

}


.map-panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 25px;

    border-bottom: 1px solid #e5ebef;

}


.map-panel-header span {

    color: #8c9ba7;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

}


.map-panel-header strong {

    color: #003b6a;

    font-size: 14px;

}


.map-branch-list {

    max-height: 420px;

    overflow-y: auto;

}


.map-branch-item {

    display: flex;

    align-items: center;

    width: 100%;

    padding: 18px 20px;

    border: 0;

    border-bottom: 1px solid #edf1f3;

    background: #fff;

    text-align: left;

    transition: .25s ease;

}


.map-branch-item:hover {

    background: #f7f9fa;

}


.map-branch-number {

    margin-right: 12px;

    color: #c1cbd2;

    font-size: 11px;

    font-weight: 900;

}


.map-branch-info {

    flex: 1;

}


.map-branch-info strong {

    display: block;

    margin-bottom: 4px;

    color: #003b6a;

    font-size: 12px;

    font-weight: 800;

}


.map-branch-info small {

    color: #8a99a5;

    font-size: 10px;

}


.map-branch-item > i {

    color: #aab6bf;

    font-size: 18px;

}



/* =========================================================
   CTA
========================================================= */

.branches-cta {

    padding: 70px 0;

    background: #003b6a;

}


.branches-cta-inner {

    display: flex;

    align-items: center;

    gap: 30px;

    padding: 45px;

    border-radius: 12px;

    background:
        linear-gradient(
            120deg,
            #004b84,
            #00345e
        );

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.2);

}


.cta-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 75px;

    height: 75px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #ffc107;

    color: #003b6a;

    font-size: 34px;

}


.cta-content {

    flex: 1;

}


.cta-content > span {

    color: #ffc107;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

}


.cta-content h2 {

    margin: 7px 0;

    color: #fff;

    font-size: 30px;

    font-weight: 900;

}


.cta-content h2 strong {

    color: #ffc107;

}


.cta-content p {

    margin: 0;

    color: rgba(255,255,255,.65);

    font-size: 13px;

}


.cta-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 14px 22px;

    flex-shrink: 0;

    border-radius: 5px;

    background: #fff;

    color: #003b6a;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    transition: .3s ease;

}


.cta-button:hover {

    background: #ffc107;

    transform: translateY(-3px);

}


.cta-button i {

    font-size: 18px;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {


    .branches-hero {

        min-height: 450px;

    }


    .branch-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .map-wrapper {

        grid-template-columns: 1fr;

    }


    .map-side-panel {

        border-left: 0;

        border-top: 1px solid #e5ebef;

    }


    .map-branch-list {

        display: grid;

        grid-template-columns:
            repeat(1, 1fr);

        max-height: none;

    }


    .map-branch-item {

        border-right: 1px solid #edf1f3;

    }


    .branches-cta-inner {

        flex-wrap: wrap;

    }

}


@media (max-width: 767px) {


    .branches-hero-content {

        padding: 80px 20px;

    }


    .branches-hero h1 {

        font-size: 52px;

    }


    .branches-intro {

        padding-top: 70px;

    }


    .branch-grid {

        grid-template-columns: 1fr;

    }


    .branch-card {

        max-width: 550px;

        width: 100%;

        margin: auto;

    }


    .map-heading {

        display: block;

    }


    .map-heading > p {

        margin-top: 20px;

    }


    .branch-map {

        min-height: 400px;

    }


    .map-branch-list {

        display: grid;

        grid-template-columns:
            repeat(1, 1fr);

        max-height: none;

    }


    .branches-cta-inner {

        padding: 30px;

        text-align: center;

        justify-content: center;

    }


    .cta-content {

        flex: 100%;

    }


}


@media (max-width: 480px) {


    .branches-hero h1 {

        font-size: 43px;

        letter-spacing: -2px;

    }


    .branches-hero-content p {

        font-size: 14px;

    }


    .branch-search {

        height: 58px;

    }


    .branch-card-content {

        padding-left: 20px;

        padding-right: 20px;

    }


    .branch-card-top {

        padding-left: 20px;

        padding-right: 20px;

    }


    .branches-cta-inner {

        padding: 25px 20px;

    }


    .cta-icon {

        width: 65px;

        height: 65px;

    }
        .map-branch-list {

        display: grid;

        grid-template-columns:
            repeat(1, 1fr);

        max-height: none;

    }


}

.branch-card.branch-extra {

    display: none;

}

/* =========================================================
   DALISAY INTERACTIVE LEAFLET MAP — PROFESSIONAL POLISH
========================================================= */
.branch-map-section {
    padding: clamp(58px, 7vw, 100px) 0;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}
.map-heading { margin-bottom: 28px; }
.map-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 330px);
    min-height: 540px;
    border: 1px solid rgba(0, 59, 106, .08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 39, 72, .14);
}
.branch-map {
    min-height: 540px;
    height: 100%;
    background: #e9eff3;
    isolation: isolate;
    z-index: 1;
}
.branch-map .leaflet-tile-pane { filter: saturate(.82) contrast(1.02); }
.branch-map .leaflet-control-zoom {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 34, 63, .2);
}
.branch-map .leaflet-control-zoom a {
    width: 36px; height: 36px; line-height: 36px;
    color: #003b6a; border-color: #e7edf2;
}
.branch-map .leaflet-control-zoom a:hover { background: #fff4c7; color: #003b6a; }
.branch-map .leaflet-control-attribution { font-size: 9px; }
.branch-map .leaflet-control-scale-line {
    border-color: #003b6a; background: rgba(255,255,255,.88);
    color: #003b6a; font-weight: 700;
}
.map-loading {
    position: absolute; inset: 0; z-index: 500;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; padding: 24px; text-align: center;
    color: #003b6a; background: #f4f7f9;
}
.map-loading strong { font-size: 15px; font-weight: 800; }
.map-loading small { color: #718292; font-size: 12px; }
.map-loading-spinner {
    width: 34px; height: 34px; border: 3px solid #dbe5ec;
    border-top-color: #ffc107; border-radius: 50%; animation: dalisay-map-spin .8s linear infinite;
}
@keyframes dalisay-map-spin { to { transform: rotate(360deg); } }
.dalisay-map-icon-wrap { background: transparent; border: 0; }
.dalisay-map-pin {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-top: 1px;
    background: #003b6a; border: 3px solid #fff; border-radius: 50% 50% 50% 5px;
    box-shadow: 0 5px 13px rgba(0, 35, 65, .34); transform: rotate(-45deg);
    transition: transform .2s ease, background .2s ease;
}
.dalisay-map-pin span { width: 9px; height: 9px; border-radius: 50%; background: #ffc107; border: 1px solid rgba(255,255,255,.8); }
.leaflet-marker-icon:hover .dalisay-map-pin { background: #07558f; transform: rotate(-45deg) scale(1.12); }
.dalisay-map-popup { min-width: 190px; padding: 4px 2px 2px; font-family: inherit; }
.dalisay-popup-label { color: #b18500; font-size: 9px; letter-spacing: 1.4px; font-weight: 900; }
.dalisay-map-popup h3 { margin: 5px 0 9px; color: #003b6a; font-size: 17px; line-height: 1.25; font-weight: 900; }
.dalisay-map-popup p { display: flex; align-items: flex-start; gap: 7px; margin: 6px 0; color: #5c6d7b; font-size: 11px; line-height: 1.5; }
.dalisay-map-popup p i { color: #b18500; font-size: 14px; flex: 0 0 auto; }
.dalisay-map-popup .dalisay-popup-address { margin-bottom: 8px; }
.dalisay-map-popup > a {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
    padding: 9px 12px; border-radius: 7px; background: #ffc107;
    color: #003b6a; font-size: 10px; font-weight: 900; text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.dalisay-map-popup > a:hover { background: #ffd54f; transform: translateY(-1px); }
.branch-map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 36, 67, .18); }
.branch-map .leaflet-popup-content { margin: 15px 17px; }
.map-side-panel { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.map-panel-header { padding: 23px 21px; background: linear-gradient(135deg, #003b6a, #07558f); border: 0; }
.map-panel-header span { color: rgba(255,255,255,.7); }
.map-panel-header strong { color: #ffc107; white-space: nowrap; }
.map-branch-list { max-height: 465px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c8d4dd #f5f7f9; }
.map-branch-item { gap: 10px; padding: 17px 18px; border-bottom-color: #edf1f4; cursor: pointer; }
.map-branch-item:hover, .map-branch-item.active { background: #fff9e5; }
.map-branch-item.active { box-shadow: inset 3px 0 #ffc107; }
.map-branch-item.active .map-branch-number { color: #003b6a; }
.map-branch-item.active .map-branch-info strong { color: #07558f; }
.map-branch-number { flex: 0 0 22px; margin-right: 0; }
.map-branch-info { min-width: 0; }
.map-branch-info strong { font-size: 12px; line-height: 1.45; }
.map-branch-info small { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.map-branch-item:focus-visible { outline: 3px solid #ffc107; outline-offset: -3px; }
@media (max-width: 900px) {
    .map-wrapper { grid-template-columns: minmax(0, 1fr); }
    .branch-map { min-height: 430px; height: 430px; }
    .map-side-panel { border-left: 0; border-top: 1px solid #e5ebef; }
    .map-branch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
    .map-branch-item { border-right: 1px solid #edf1f3; }
}
@media (max-width: 560px) {
    .map-wrapper { border-radius: 13px; }
    .branch-map { min-height: 360px; height: 360px; }
    .map-branch-list { grid-template-columns: minmax(0, 1fr); max-height: 300px; }
    .map-panel-header { padding: 19px 17px; }
    .map-branch-item { padding: 15px 16px; }
}


/* =========================================================
   DALISAY BRANCHES — ENHANCED RESPONSIVE LAYOUT
   Desktop, tablet, and small-phone refinements
========================================================= */
html { scroll-behavior: smooth; }
.branch-map-section,
.branch-map-section .container,
.map-wrapper,
.map-side-panel,
.branch-map { min-width: 0; }

/* Prevent long branch names and addresses from pushing the layout wider. */
.map-panel-header,
.map-branch-item,
.map-branch-info,
.branch-card,
.branch-card * { min-width: 0; }
.map-branch-info strong,
.map-branch-info small,
.branch-card p,
.branch-card address { overflow-wrap: anywhere; }

/* Laptop and tablet: give the map more usable space and keep the list tidy. */
@media (max-width: 1100px) {
    .map-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        min-height: 490px;
    }
    .branch-map { min-height: 490px; }
    .map-panel-header { padding: 19px 17px; }
    .map-branch-item { padding: 14px 15px; }
}

@media (max-width: 900px) {
    .map-heading { align-items: flex-start; gap: 16px; }
    .map-heading > p { max-width: 100%; }
    .map-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .branch-map {
        order: 0;
        width: 100%;
        height: clamp(340px, 52vw, 460px);
        min-height: 340px;
    }
    .map-side-panel {
        order: 1;
        width: 100%;
        border-top: 1px solid #e5ebef;
        border-left: 0;
    }
    .map-panel-header { position: relative; gap: 12px; }
    .map-branch-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 320px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .map-branch-item { border-right: 1px solid #edf1f3; }
}

/* Phones: compact headings, comfortable touch targets, no horizontal overflow. */
@media (max-width: 600px) {
    .branch-map-section { padding: 52px 0; }
    .branch-map-section .container { padding-left: 14px; padding-right: 14px; }
    .map-heading { margin-bottom: 20px; }
    .map-heading h2 {
        font-size: clamp(29px, 8vw, 40px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
    .map-heading > p { margin-top: 12px; font-size: 13px; line-height: 1.7; }
    .map-wrapper { border-radius: 13px; }
    .branch-map { height: 340px; min-height: 340px; }
    .map-panel-header { padding: 17px 15px; }
    .map-panel-header span { font-size: 9px; letter-spacing: .8px; }
    .map-panel-header strong { font-size: 13px; }
    .map-branch-list {
        display: flex;
        flex-direction: column;
        max-height: 270px;
    }
    .map-branch-item {
        min-height: 62px;
        padding: 14px 15px;
        border-right: 0;
        gap: 10px;
    }
    .map-branch-info strong { font-size: 12px; }
    .map-branch-info small { font-size: 11px; }
    .branch-map .leaflet-control-zoom { margin-top: 10px; margin-right: 10px; }
    .branch-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; }
    .branch-map .leaflet-control-attribution { max-width: 75%; font-size: 8px; }
    .branch-map .leaflet-popup-content-wrapper { max-width: calc(100vw - 54px); }
    .branch-map .leaflet-popup-content { margin: 12px 13px; }
    .dalisay-map-popup { min-width: 0; width: min(220px, calc(100vw - 90px)); }
    .dalisay-map-popup h3 { font-size: 15px; }
    .dalisay-map-popup p { font-size: 11px; }
    .dalisay-map-popup > a { min-height: 38px; padding: 10px 12px; }
}

@media (max-width: 380px) {
    .branch-map-section .container { padding-left: 10px; padding-right: 10px; }
    .branch-map { height: 300px; min-height: 300px; }
    .map-panel-header { align-items: flex-start; flex-direction: column; gap: 5px; }
    .map-branch-item { padding: 13px 12px; }
    .branch-map .leaflet-control-attribution { font-size: 7px; }
}

/* Respect reduced-motion settings. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dalisay-map-pin,
    .dalisay-map-popup > a { transition: none; }
    .map-loading-spinner { animation-duration: 2s; }
}
