.branches-page {
  --blue: #1a5fa8;
  --blue-l: #2472c8;
  --blue-pale: #e8f1fb;
  --orange: #f5a020;
  --orange-l: #ffb84d;
  --orange-pale: #fef3e2;
  --off: #f8f8f6;
  --dark: #1a1a1a;
  --border: #e2e8f0;
  --gray: #6b7280;
}

.branches-page .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.branches-page .reveal.visible { opacity: 1; transform: none; }
.branches-page .d1 { transition-delay: .1s; }

.branches-page .branches-hero {
  background: var(--blue);
  padding: 64px 5% 56px;
  position: relative;
  overflow: hidden;
}

.branches-page .branches-hero::before,
.branches-page .branches-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.branches-page .branches-hero::before {
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  background: rgba(245, 160, 32, .1);
}

.branches-page .branches-hero::after {
  left: 38%;
  bottom: -70px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, .04);
}

.branches-page .branches-hero-inner,
.branches-page .region-nav-in,
.branches-page .main-layout,
.branches-page .find-in,
.branches-page .solo-in {
  max-width: 1200px;
  margin: 0 auto;
}

.branches-page .branches-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.branches-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 160, 32, .2);
  color: var(--orange);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  margin-bottom: 18px;
}

.branches-page .branches-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.branches-page .branches-hero h1 span { color: var(--orange); }

.branches-page .hero-sub {
  font-size: 15.5px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.branches-page .hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.branches-page .hstat-num { font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.branches-page .hstat-num sup { font-size: 18px; color: var(--orange); }
.branches-page .hstat-label { font-size: 11.5px; color: rgba(255, 255, 255, .55); margin-top: 3px; letter-spacing: .3px; }

.branches-page .hero-badges { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.branches-page .hbadge { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-width: 200px; }
.branches-page .hbadge-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.branches-page .hbadge-icon.blue { background: var(--blue-l); }
.branches-page .hbadge-icon.orange { background: rgba(245, 160, 32, .3); }
.branches-page .hbadge-icon svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; }
.branches-page .hbadge-title { font-size: 13px; font-weight: 700; color: #fff; }
.branches-page .hbadge-sub { font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 1px; }

.branches-page .region-nav { background: #fff; border-bottom: 2px solid var(--border); position: sticky; top: 64px; z-index: 90; }
.branches-page .region-nav-in { padding: 0 5%; display: flex; overflow-x: auto; }
.branches-page .rtab { padding: 16px 28px; font-size: 13.5px; font-weight: 700; color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; display: flex; align-items: center; gap: 8px; }
.branches-page .rtab svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.branches-page .rtab.active { color: var(--blue); border-bottom-color: var(--orange); }
.branches-page .rtab-count { background: var(--blue-pale); color: var(--blue); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 100px; }
.branches-page .rtab.active .rtab-count { background: var(--orange-pale); color: #8b5400; }

.branches-page .main-layout { padding: 60px 1.5% 80px; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.branches-page .map-wrap { position: static; grid-column: 1 / -1; width: 100%; max-width: 100%; }
.branches-page .map-card { background: var(--off); border: 1.5px solid var(--border); border-radius: 16px; padding: 18px; text-align: center; }
.branches-page .map-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.branches-page .map-sub { font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.branches-page .map-stage { position: relative; isolation: isolate; }
.branches-page .map-real-wrap { position: relative; z-index: 1; width: 100%; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #f6fbff 0%, #edf5fb 100%); border: 1px solid var(--border); }
.branches-page .map-real-wrap iframe { display: block; width: 100%; height: 600px; border: 0; }
.branches-page .branch-leaflet-map { width: 100%; height: 600px; }
.branches-page .map-real-note { margin-top: 12px; font-size: 12px; line-height: 1.55; color: var(--gray); }
.branches-page .branch-map-pin { background: transparent; border: 0; }
.branches-page .branch-map-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3), 0 6px 18px rgba(0, 0, 0, .18); }
.branches-page .branch-map-pin.primary span { background: var(--blue); }
.branches-page .branch-map-pin.orange span { background: var(--orange); }
.branches-page .leaflet-popup-content-wrapper { border-radius: 12px; }
.branches-page .leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.45; }
.branches-page .map-svg-wrap { position: relative; z-index: 1; width: 100%; }
.branches-page .map-zoom-controls { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.branches-page .map-zoom-btn { min-width: 42px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.branches-page .map-zoom-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }
.branches-page .map-zoom-btn.is-reset { min-width: 62px; font-size: 12px; }
.branches-page .map-zoom-viewport { position: relative; overflow: hidden; height: 400px; border-radius: 14px; background: linear-gradient(180deg, #f6fbff 0%, #edf5fb 100%); display: flex; align-items: center; justify-content: center; }
.branches-page .map-zoom-viewport.is-draggable { cursor: grab; }
.branches-page .map-zoom-viewport.is-dragging { cursor: grabbing; user-select: none; }
.branches-page .map-zoom-surface { position: relative; width: 100%; height: 100%; transform-origin: center center; transition: transform .22s ease; }
.branches-page .map-zoom-viewport.is-dragging .map-zoom-surface { transition: none; }
.branches-page .cm-map-base { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(26, 95, 168, .08)); }
.branches-page .map-overlay { position: absolute; inset: 0; pointer-events: none; }
.branches-page .map-marker { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; color: var(--blue); pointer-events: auto; cursor: pointer; }
.branches-page .map-marker-primary { color: var(--blue); }
.branches-page .map-marker-orange { color: var(--orange); }
.branches-page .marker-pulse { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: currentColor; opacity: .18; transform: translate(-50%, -50%); }
.branches-page .marker-core { position: relative; width: 12px; height: 12px; border-radius: 50%; background: currentColor; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); flex-shrink: 0; }
.branches-page .map-marker-small .marker-pulse { width: 22px; height: 22px; left: 8px; top: 8px; }
.branches-page .map-marker-small .marker-core { width: 10px; height: 10px; border-width: 2px; }
.branches-page .marker-label { display: flex; flex-direction: column; align-items: flex-start; font-size: 10px; font-weight: 700; line-height: 1.15; color: var(--dark); text-shadow: 0 1px 0 rgba(255, 255, 255, .85); }
.branches-page .marker-label small { font-size: 9px; font-weight: 500; color: var(--gray); }
.branches-page .map-info-panel { position: absolute; top: 18px; right: 18px; z-index: 1200; width: min(360px, calc(100% - 36px)); background: rgba(255, 255, 255, .96); border: 1px solid rgba(26, 95, 168, .14); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 24px 50px rgba(15, 61, 114, .18); text-align: left; backdrop-filter: blur(10px); }
.branches-page .map-info-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 20px; line-height: 1; cursor: pointer; }
.branches-page .map-info-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 12px; border-radius: 999px; background: var(--orange-pale); color: #9b6208; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 12px; }
.branches-page .map-info-title { font-size: 22px; line-height: 1.1; color: var(--dark); margin-bottom: 4px; }
.branches-page .map-info-meta { font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.branches-page .map-info-list { display: grid; gap: 10px; }
.branches-page .map-info-row { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid rgba(26, 95, 168, .08); }
.branches-page .map-info-row span { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #92a0b2; }
.branches-page .map-info-row strong { font-size: 13px; line-height: 1.45; color: var(--dark); }
.branches-page .map-info-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 16px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; text-decoration: none; }
.branches-page .map-info-link:hover { background: var(--blue-l); transform: translateY(-1px); }
.branches-page .map-legend { display: flex; justify-content: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.branches-page .map-leg-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--gray); }
.branches-page .map-leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.branches-page .map-leg-dot.primary { background: var(--blue); }
.branches-page .map-leg-dot.orange { background: var(--orange); }
.branches-page .map-leg-dot.muted { background: #ccc; width: 8px; height: 8px; }

.branches-page .region-name,
.branches-page .mini-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.branches-page .find-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.12; }
.branches-page .find-title span { color: var(--blue); }
.branches-page .find-copy { font-size: 14.5px; color: var(--gray); line-height: 1.65; }
.branches-page .btn-itineraire,
.branches-page .btn-orange-s,
.branches-page .btn-outline-ws,
.branches-page .call-now { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: all .2s; }
.branches-page .btn-itineraire { background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.branches-page .btn-itineraire:hover { background: var(--blue-l); transform: translateY(-1px); }
.branches-page .btn-itineraire svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2; }

.branches-page .find-section { background: var(--off); padding: 72px 5%; }
.branches-page .find-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.branches-page .find-ways { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.branches-page .find-way { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; transition: border-color .2s; }
.branches-page .find-way:hover { border-color: var(--blue); }
.branches-page .fw-icon { width: 44px; height: 44px; background: var(--blue-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.branches-page .fw-icon svg { width: 21px; height: 21px; stroke: var(--blue); fill: none; stroke-width: 1.9; }
.branches-page .fw-title { font-size: 14.5px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.branches-page .fw-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }
.branches-page .fw-desc strong { color: var(--blue); }
.branches-page .find-side-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; }
.branches-page .find-side-icon { width: 60px; height: 60px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.branches-page .find-side-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.branches-page .find-side-copy { font-size: 13.5px; color: var(--gray); line-height: 1.6; margin-bottom: 24px; }
.branches-page .hours-box { background: var(--off); border-radius: 10px; padding: 16px; text-align: left; margin-bottom: 16px; }
.branches-page .hours-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 10px; }
.branches-page .hours-line { font-size: 13px; color: var(--dark); display: flex; justify-content: space-between; margin-bottom: 6px; }
.branches-page .hours-line.closed { color: #e74c3c; margin-bottom: 0; }
.branches-page .call-now { display: block; background: var(--blue); color: #fff; padding: 13px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.branches-page .call-now:hover { background: var(--blue-l); }

.branches-page .solo-band { background: var(--blue); padding: 64px 5%; }
.branches-page .solo-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.branches-page .solo-content h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.branches-page .solo-content h2 span { color: var(--orange); }
.branches-page .solo-content p { font-size: 15px; color: rgba(255, 255, 255, .68); line-height: 1.65; max-width: 420px; }
.branches-page .solo-btns { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.branches-page .btn-orange-s { background: var(--orange); color: #fff; padding: 13px 26px; border-radius: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; text-align: center; }
.branches-page .btn-orange-s:hover { background: var(--orange-l); transform: translateY(-2px); }
.branches-page .btn-outline-ws { border: 2px solid rgba(255, 255, 255, .4); color: #fff; padding: 13px 26px; border-radius: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; text-align: center; }
.branches-page .btn-outline-ws:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

@media (max-width: 1024px) {
  .branches-page .branches-hero-inner,
  .branches-page .main-layout,
  .branches-page .find-in {
    grid-template-columns: 1fr;
  }

  .branches-page .solo-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .branches-page .map-wrap { position: static; width: 100%; }
}

@media (max-width: 768px) {
  .branches-page .map-info-panel { top: 14px; right: 14px; width: min(320px, calc(100% - 28px)); }
}

@media (max-width: 640px) {
  .branches-page .branches-hero { padding: 54px 5% 48px; }
  .branches-page .hero-stats,
  .branches-page .map-legend { gap: 14px; }
  .branches-page .region-nav-in { padding: 0 16px; }
  .branches-page .main-layout,
  .branches-page .find-section,
  .branches-page .solo-band { padding-left: 16px; padding-right: 16px; }
  .branches-page .map-card,
  .branches-page .find-side-card { padding-left: 18px; padding-right: 18px; }
  .branches-page .map-info-panel { top: 12px; right: 12px; width: calc(100% - 24px); padding: 16px 16px 14px; }
}
