.branch-page address {
    font-size: 14px;
    font-style: normal;
    line-height: 1.9;
}

.branch-masthead .about-title h1 {
    font-size: clamp(44px, 5.3vw, 72px);
}

.branch-hero .about-hero-inner {
    min-height: 535px;
    padding-block: 48px;
}

.branch-hero .about-hero-photo {
    background-image: linear-gradient(#152d4629, #152d4629), url('assets/jakarta-skylines.jpg');
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.branch-hero .about-hero-card {
    width: 380px;
    padding: 34px;
}

.branch-page .branch-hero h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.15;
}

.branch-hero-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    color: var(--blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-hero address {
    color: #657385;
}

.branch-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.branch-hero-phone:hover {
    color: var(--blue);
}

.branch-hero-phone svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-hero .about-hero-link {
    padding-top: 21px;
    border-top: 1px solid var(--line);
}

.branch-directory {
    padding: 85px 0 95px;
    background: #f4f6f8;
}

.branch-directory-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.branch-page .branch-directory-heading h2 {
    margin: 0;
}

.branch-directory-heading h2 > span {
    color: var(--blue);
}

.branch-directory-heading p {
    max-width: 330px;
    margin: 0 0 5px;
    color: #657385;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.branch-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 230px;
    padding: 30px;
    border: 1px solid #e3e9f1;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.branch-card:hover {
    border-color: #b4cae5;
    box-shadow: 0 12px 30px #152d460a;
}

.branch-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 19px;
}

.branch-card-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edf3fb;
    color: var(--blue);
}

.branch-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.025em;
}

.branch-card address {
    margin: 0;
    color: #657385;
}

.topbar .branch-link[aria-current="page"] {
    font-weight: 600;
}

.branch-map-section {
    padding: 32px 0 42px;
    background: #fff;
}

.branch-map-canvas {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(460px, 42vw, 520px);
    isolation: isolate;
}

.branch-map-art {
    position: relative;
    width: 100%;
    min-width: 0;
}

.branch-map-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1000 / 368;
}

.branch-map-pins {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.branch-map-connectors {
    fill: var(--blue);
    stroke: var(--blue);
    stroke-width: .9;
    opacity: .75;
    pointer-events: none;
}

.branch-map-hit-area {
    fill: transparent;
    stroke: none;
}

.branch-map-pin-icon {
    color: var(--blue);
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: color .18s;
}

.branch-map-pin-shape {
    fill: currentColor;
    stroke: #fff;
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.branch-map-pin-center {
    fill: #fff;
}

.branch-map-marker[role="button"] {
    cursor: pointer;
}

.branch-map-marker[role="button"]:hover .branch-map-pin-icon,
.branch-map-marker.is-active .branch-map-pin-icon {
    color: var(--navy);
}

.branch-map-marker:focus-visible {
    outline: none;
}

.branch-map-marker:focus-visible .branch-map-hit-area {
    fill: #3d6db425;
    stroke: var(--navy);
    stroke-width: 1.5;
}

.branch-map-popover {
    position: absolute;
    z-index: 3;
    width: min(330px, calc(100% - 20px));
    max-height: min(460px, calc(100dvh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 12px 17px;
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 14px;
    box-shadow: 0 10px 35px #152d4624, 0 2px 8px #152d4610;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .18s, transform .18s;
}

.branch-map-popover[hidden] {
    display: none;
}

.branch-map-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.branch-map-card-photo {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 9px;
    margin-bottom: 13px;
}

.branch-map-popover h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.025em;
}

.branch-map-card-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 7px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.6;
}

.branch-map-card-row svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-map-card-row address,
.branch-map-card-row span {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.branch-map-card-row[href]:hover {
    color: var(--blue);
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
    .branch-map-canvas { min-height: 0; }
    .branch-map-section { padding: 26px 0 32px; }
    .branch-map-pins { pointer-events: none; }
    .branch-map-marker { pointer-events: none; }
    .branch-map-popover { display: none !important; }
}

@media (max-width: 760px) {
    .branch-map-pin-icon { transform: scale(1.12); }
    .branch-map-connectors { stroke-width: 1.2; opacity: .9; }
}

@media (max-width: 1000px) {
    .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .branch-card { padding: 26px; }
}

@media (max-width: 760px) {
    .branch-hero { padding-top: 295px; }
    .branch-hero .about-hero-photo { height: 360px; background-position: center 55%; background-attachment: scroll; }
    .branch-hero::after { background: linear-gradient(0deg, #f4f6f8 0%, #f4f6f8 calc(100% - 270px), #f4f6f800 100%); }
    .branch-hero .about-hero-inner { min-height: 0; padding: 0 0 36px; }
    .branch-hero .about-hero-card { width: 100%; padding: 30px; }
    .branch-page .branch-hero h2 { font-size: 34px; }
    .branch-directory { padding: 55px 0 65px; }
    .branch-directory-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
    .branch-directory-heading p { max-width: 520px; margin: 0; }
    .branch-card { min-height: 230px; padding: 24px; }
    .branch-card-heading { gap: 12px; }
    .branch-card h3 { font-size: 20px; }
    .branch-card-icon { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
    .branch-grid { grid-template-columns: 1fr; gap: 15px; }
    .branch-card { min-height: 0; padding: 26px; }
    .branch-card h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .branch-card { transition: none; }
    .branch-map-popover, .branch-map-pin-icon { transition: none; }
}

@media (prefers-reduced-motion: reduce), (hover: none) and (pointer: coarse) {
    .branch-hero .about-hero-photo { background-attachment: scroll; }
}
