body[data-page="branches"] { background: #f8f9f7; color: #252a28; }
.branches-page { --branch-red: #ed162b; max-width: 1240px; margin: 0 auto; padding: 38px 28px 64px; }
.branches-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.branches-heading p { color: #81867d; font-size: 10px; font-weight: 700; letter-spacing: .18em; margin-bottom: 7px; }
.branches-heading h1 { color: #242927; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.2; }
.branches-heading > span { color: #777d78; font-size: 12px; padding-bottom: 4px; }
.branches-layout { display: grid; grid-template-columns: 1.13fr 1fr; align-items: start; gap: 22px; }
.branches-cards { display: grid; gap: 18px; min-width: 0; }
.branch-card { border: 1px solid #e0e4dd; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 3px 14px #223a2310; transition: border-color .2s, box-shadow .2s; }
.branch-card.is-selected { border-color: #e99ba4; box-shadow: 0 5px 22px #b3293312; }
.branch-cover { height: 155px; position: relative; overflow: hidden; background: #f5eee1; }
.branch-photo { width: 100%; height: 100%; object-fit: cover; }
.branch-cover-fallback { width: 100%; height: 100%; background: radial-gradient(ellipse at 75% 10%, #fff9e0, transparent 65%), repeating-linear-gradient(135deg, #e8d8b430 0 1px, transparent 1px 22px), #f5eee1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: #9a7945; }
.branch-cover-fallback .icon { width: 36px; height: 36px; stroke-width: 1.2; }
.branch-cover-fallback span { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.branch-cover [hidden] { display: none; }
.branch-status { position: absolute; right: 13px; top: 13px; display: inline-flex; align-items: center; gap: 6px; background: #fffffff2; border: 1px solid #d7e8d8; padding: 6px 10px; border-radius: 30px; color: #18783b; font-size: 11px; font-weight: 700; box-shadow: 0 2px 12px #00000012; }
.branch-status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.branch-status.is-closed { color: #686c70; border-color: #e3e3e3; }
.branch-card-content { position: relative; padding: 14px 16px 16px; }
.branch-brand { font-size: 17px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; text-transform: uppercase; }
.branch-card h2 { font-size: 15px; font-weight: 500; line-height: 1.35; color: #6b706d; margin: 3px 0 12px; }
.branch-address { display: flex; align-items: flex-start; gap: 7px; color: #626862; font-size: 11px; line-height: 1.5; }
.branch-address .icon, .branch-meta .icon { height: 14px; width: 14px; }
.branch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #535b54; font-size: 10px; margin: 9px 0; }
.branch-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.branch-meta strong { font-weight: 500; }
.branch-delivery { padding-left: 11px; border-left: 1px solid #dce1db; }
.branch-hours { margin: 0 0 12px; color: #5d655f; }
.branch-hours > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 10px; padding: 3px 0; }
.branch-hours > summary::-webkit-details-marker { display: none; }
.branch-hours > summary .icon { width: 12px; height: 12px; transition: transform .2s; }
.branch-hours[open] > summary .icon { transform: rotate(180deg); }
.branch-hours-content { margin-top: 9px; padding: 13px; border-radius: 9px; background: #f7f8f5; font-size: 12px; }
.branch-hours dl { margin: 0 0 10px; }
.branch-hours dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; }
.branch-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.branch-hours small { font-size: 10px; color: #858982; }
.branch-hours-notice { margin: 8px 0; color: #a55322; }
.branch-actions { display: flex; gap: 8px; }
.branch-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; flex: 1; border: 1px solid #d9ddd7; border-radius: 30px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #fff; color: #414942; padding: 8px 9px; transition: background .2s; }
.branch-actions > *:hover { background: #f3f5f0; }
.branch-actions .icon { width: 15px; height: 15px; }
.branch-actions .branch-order { flex: 1.15; background: var(--branch-red); border-color: var(--branch-red); color: #fff; }
.branch-actions .branch-order:hover { background: #cc1022; }
.branches-map-panel { position: sticky; top: 22px; height: 708px; max-height: calc(100dvh - 44px); min-height: 430px; overflow: hidden; border: 1px solid #d9dfd6; border-radius: 14px; box-shadow: 0 3px 14px #223a2310; background: #e9eee5; isolation: isolate; }
.branches-map { height: 100%; width: 100%; background: #edf0e9; }
.branches-map .leaflet-tile-pane { filter: saturate(.38); }
.branch-map-marker { display: flex; align-items: flex-start; overflow: visible; color: var(--branch-red); }
.branch-map-pin { position: relative; z-index: 2; flex: 0 0 32px; width: 32px; height: 40px; filter: drop-shadow(0 2px 3px #9c263336); }
.branch-map-pin svg { display: block; width: 32px; height: 40px; }
.branch-map-label { margin: 4px 0 0 -5px; padding: 6px 12px 6px 10px; border: 1px solid #ef8a94; border-radius: 0 20px 20px 0; background: #fff; color: #353f37; font-family: "Figtree", sans-serif; font-size: 11px; line-height: 1.2; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 10px #00000013; }
.branch-map-marker.is-selected .branch-map-label { color: #fff; background: var(--branch-red); border-color: var(--branch-red); }
.branches-map-expand { position: absolute; z-index: 500; top: 13px; right: 13px; border: 1px solid #d6ddd3; border-radius: 8px; background: #fffffff5; color: #424a42; width: 34px; height: 34px; display: grid; place-items: center; box-shadow: 0 2px 6px #0000000b; }
.branches-map-expand .icon { width: 18px; height: 18px; }
.branches-map-caption { position: absolute; top: 14px; left: 13px; right: 60px; z-index: 400; width: fit-content; max-width: calc(100% - 74px); display: flex; align-items: center; gap: 6px; border: 1px solid #e0e5db; background: #fffffff0; padding: 8px 10px; border-radius: 8px; font-size: 10px; color: #586151; }
.branches-map-caption .icon { width: 13px; height: 13px; }
.branches-map-note { position: absolute; top: 75px; left: 20px; right: 20px; z-index: 400; background: #ffffffef; padding: 12px; border-radius: 8px; color: #5c655b; font-size: 12px; text-align: center; }
.branches-map-panel.is-expanded { position: fixed; inset: 18px; width: auto; height: auto; max-height: none; z-index: 2000; box-shadow: 0 0 0 100vmax #222b2480; }
body.branch-map-open { overflow: hidden; }
.branches-empty { text-align: center; padding: 80px 20px; background: #fff; border: 1px solid #e0e4dd; border-radius: 14px; }
.branches-empty > .icon { width: 42px; height: 42px; color: #b0b8a6; margin-bottom: 20px; }
.branches-empty p { margin: 12px 0 22px; color: #777d78; }
.branches-empty a { color: var(--branch-red); font-weight: 600; }
@media (min-width: 1000px) {
  .branch-hours:not([open]) { margin-top: -25px; padding-top: 0; padding-bottom: 9px; }
  .branch-meta { padding-right: 80px; min-height: 24px; }
}
@media (max-width: 850px) {
  .branches-page { padding: 25px 18px 44px; }
  .branches-layout { grid-template-columns: 1fr; gap: 20px; }
  .branches-map-panel { position: relative; top: auto; height: 400px; min-height: 320px; max-height: none; }
  .branch-cover { height: clamp(140px, 28vw, 210px); }
  .branch-meta { font-size: 11px; }
}
@media (max-width: 400px) {
  .branches-page { padding-inline: 12px; }
  .branch-card-content { padding: 13px 12px; }
  .branch-actions { gap: 5px; }
  .branch-actions > * { font-size: 10px; padding: 8px 6px; gap: 4px; }
  .branch-delivery { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .branch-card, .branch-actions > *, .branch-hours > summary .icon { transition: none; } }
