/* Branch cards and their map extend the approved ivory-and-gold section. */
.locations-section {
  grid-template-columns: minmax(190px,.8fr) minmax(270px,1fr) minmax(360px,1.5fr);
  align-items: start;
  gap: clamp(24px,2.5vw,44px);
  padding: 80px clamp(24px,4vw,72px);
}
.locations-intro h2 { font-size: clamp(40px,3.5vw,58px); }
.locations-intro p { font-size: 16px; }
.locations-intro .text-link { margin-top: 25px; }
.branch-directory { min-width: 0; }
.branch-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.branch-directory-heading h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; }
#branch-list-count { border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; color: var(--gold); font-size: 12px; white-space: nowrap; }
.branch-list { display: flex; flex-direction: column; gap: 12px; max-height: 510px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #b8a071 transparent; padding: 4px 12px 6px 4px; margin-left: -4px; }
.branch-card { flex: 0 0 auto; display: block; width: 100%; padding: 18px 19px; border: 1px solid #b8a07166; border-left: 3px solid #b8a07166; border-radius: 5px; text-align: left; background: #fffaf0d9; color: var(--ivory); transition: background .2s,border-color .2s,box-shadow .2s; }
.branch-card:hover { background: #fffaf0; border-color: #a7874d; }
.branch-card[aria-pressed=true] { background: #eee2c7; border-color: #9a783c; box-shadow: 0 3px 12px #6f50200b; }
.branch-card-heading { display: flex; align-items: center; gap: 10px; }
.branch-card .outline-icon { color: var(--gold); width: 19px; height: 19px; flex-basis: 19px; }
.branch-card-name { font-size: 16px; line-height: 1.4; font-weight: 700; }
.branch-card-address { display: block; margin-top: 9px; font-size: 14px; line-height: 1.65; color: #695b45; overflow-wrap: anywhere; }
.branch-card:focus-visible { outline-offset: 2px; }
.branch-map-panel { min-width: 0; border: 1px solid #b8a07180; border-radius: 7px; overflow: hidden; background: #fffaf0; box-shadow: 0 12px 36px #6a50240c; }
.branch-map-frame { height: 320px; background: #eee9dc; }
#branch-map { display: block; width: 100%; height: 100%; border: 0; }
.branch-map-details { padding: 23px 25px 21px; }
.branch-map-heading { display: flex; align-items: center; gap: 11px; color: var(--gold); }
.branch-map-heading h3 { color: var(--ivory); font-size: 32px; line-height: 1.1; }
#branch-map-address { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.branch-phone { display: inline-block; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--gold); }
.branch-map-actions { display: flex; gap: 12px; margin-top: 19px; flex-wrap: wrap; }
.branch-map-actions .button { min-height: 45px; padding: 11px 17px; gap: 9px; font-size: 14px; }
.branch-map-actions svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.branch-share-status { color: var(--gold); font-size: 13px; line-height: 1.5; }
.branch-share-status:not(:empty) { margin-top: 13px; }
#branch-share-fallback { margin-top: 12px; }
#branch-share-fallback label { font-size: 14px; }
#branch-share-link { width: 100%; min-width: 0; padding: 11px; border: 1px solid #b8a071; border-radius: 3px; font-size: 14px; background: #fffdf6; color: var(--ivory); }
@media(max-width:1100px) {
  .locations-section { grid-template-columns: minmax(270px,.9fr) minmax(340px,1.3fr); gap: 32px; padding: 60px 32px; }
  .locations-intro { grid-column: 1 / -1; }
  .locations-intro h2 { font-size: 48px; margin: 18px 0; }
  .locations-intro p { max-width: 560px; }
  .locations-intro .text-link { margin-top: 15px; }
  .branch-list { max-height: 530px; }
}
@media(max-width:760px) {
  .locations-section { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 54px 24px; }
  .locations-intro h2 { font-size: 44px; }
  .branch-list { max-height: 320px; }
  .branch-card { padding: 16px 18px; }
  .branch-map-frame { height: 300px; }
  .branch-map-details { padding: 22px; }
}
@media(max-width:360px) {
  .branch-map-actions { gap: 9px; }
  .branch-map-actions .button { padding-inline: 13px; }
}

.branch-map-frame { position: relative; }
.branch-map-frame[data-loading="true"] iframe { opacity: 0; }
.branch-map-frame[data-loading="true"]::after { content: 'Loading branch map…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); background: #f4eddb; font-size: 13px; pointer-events: none; }
