


.az-branchmap { position: relative; }
.az-branchmap__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.az-branchmap__heading { max-width: 60ch; }
.az-branchmap__eyebrow {
  display: inline-block;
  font-size: var(--text-xs, 12px);
  font-weight: var(--w-bold, 750);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red, #d89a38);
  margin-bottom: 8px;
}
.az-branchmap__title {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}
.az-branchmap__lead {
  margin: 10px 0 0;
  color: var(--anzelha-text-secondary, #6b6660);
  font-size: var(--text-md, 16.5px);
  line-height: var(--leading-normal, 1.5);
}
.az-branchmap__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--r-chip, 999px);
  font-weight: var(--w-bold, 750);
  font-size: var(--text-md, 16.5px);
  letter-spacing: .01em;
  color: var(--red, #d89a38);
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface, rgba(255, 255, 255, .72));
  border: 1px solid var(--az-line, rgba(20, 18, 14, .09));
  box-shadow: var(--shadow-1, 0 4px 14px rgba(30, 24, 16, .05));
  -webkit-backdrop-filter: blur(var(--az-blur-md, 12px));
  backdrop-filter: blur(var(--az-blur-md, 12px));
  transition: transform var(--motion-fast, 160ms) var(--motion-ease, ease),
              box-shadow var(--motion-fast, 160ms) var(--motion-ease, ease);
}
.az-branchmap__phone .anzelha-icon { width: 18px; height: 18px; }
.az-branchmap__phone:hover { transform: translateY(-1px); box-shadow: var(--shadow-2, 0 8px 24px rgba(30, 24, 16, .08)); }


.az-branchmap__stage {
  position: relative;
  height: clamp(440px, 42vw, 540px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 30% 15%, #efece6 0%, #e7e3dc 55%, #ded9d0 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 2px 6px rgba(30, 24, 16, .06),
    0 26px 60px -28px rgba(30, 24, 16, .38);
}
.az-branchmap__stage::after {

  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(20, 18, 14, .06);
  pointer-events: none;
  z-index: 5;
}


.az-branchmap__canvas { position: absolute; inset: 0; z-index: 1; background: transparent; }
.az-branchmap__canvas.leaflet-container { font: inherit; }


.az-branchmap__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  width: 100%;
  height: 100%;
}


.az-marker { background: none; border: 0; }
.branch-marker {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: max-content;
  min-width: 168px;
  max-width: 210px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 9px;
  border-radius: 19px;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(43, 43, 40, .92), rgba(20, 20, 18, .86));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 14px 30px -12px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  transition: transform var(--motion-fast, 160ms) var(--motion-ease, ease),
              box-shadow var(--motion-fast, 160ms) var(--motion-ease, ease);
}

.branch-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 17px;
  height: 17px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, rgba(28, 28, 25, .9), rgba(20, 20, 18, .86));
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-bottom-right-radius: 4px;
}
.branch-marker:hover,
.az-marker:focus-visible .branch-marker,
.branch-marker:focus-visible { transform: translate(-50%, -100%) translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 38px -12px rgba(0, 0, 0, .6); }


.branch-marker--flip { transform: translate(-50%, 0); margin-top: 9px; margin-bottom: 0; }
.branch-marker--flip::after {
  top: -8px;
  bottom: auto;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .16);
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-top-left-radius: 4px;
  border-bottom-right-radius: 0;
  background: linear-gradient(315deg, rgba(28, 28, 25, .9), rgba(20, 20, 18, .86));
}
.branch-marker--flip:hover,
.az-marker:focus-visible .branch-marker--flip,
.branch-marker--flip:focus-visible { transform: translate(-50%, 0) translateY(3px); }

.az-marker:focus-visible,
.leaflet-marker-icon:focus { outline: none; }
.az-marker:focus-visible .branch-marker,
.branch-marker:focus-visible { outline: 2px solid var(--red, #d89a38); outline-offset: 3px; }

.branch-marker__signal {
  position: relative;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #8e8e93;
}
.branch-marker__content { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.branch-marker__content strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.branch-marker__content small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, .74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.branch-marker__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .1);
}
.branch-marker__arrow .anzelha-icon { width: 14px; height: 14px; }


.branch-marker--open .branch-marker__signal {
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, .16), 0 0 12px rgba(52, 199, 89, .5);
}
.branch-marker--soon .branch-marker__signal {
  background: #ffd60a;
  box-shadow: 0 0 0 4px rgba(255, 214, 10, .16), 0 0 12px rgba(255, 214, 10, .45);
}


.branch-marker--closed .branch-marker__signal {
  background: #ff453a;
  box-shadow: 0 0 0 5px rgba(255, 69, 58, .16), 0 0 18px rgba(255, 69, 58, .45);
}
.branch-marker--closed .branch-marker__signal::before,
.branch-marker--closed .branch-marker__signal::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 69, 58, .55);
  border-radius: 999px;
  animation: az-branch-pulse 2s ease-out infinite;
}
.branch-marker--closed .branch-marker__signal::after { animation-delay: 1s; }
@keyframes az-branch-pulse {
  0%   { transform: scale(.65); opacity: .8; }
  75%, 100% { transform: scale(1.9); opacity: 0; }
}


.leaflet-marker-icon.is-active { z-index: 650 !important; }
.branch-marker.is-active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 22px 44px -12px rgba(0, 0, 0, .62); }


.az-branchmap__controls {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.az-branchmap__controls > * { pointer-events: auto; }
.az-branchmap__controls--tl { left: 18px; top: 18px; right: 92px; flex-wrap: wrap; align-items: flex-start; }
.az-branchmap__controls--tr { right: 18px; top: 18px; flex-direction: column; }


.az-branchmap__glass {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 8px 22px -8px rgba(30, 24, 16, .3);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: #2b2620;
  color-scheme: light;
}


.az-branchmap__search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--r-chip, 999px);
  min-width: 210px;
  max-width: 260px;
  flex: 1 1 210px;
}
.az-branchmap__search .anzelha-icon { width: 18px; height: 18px; opacity: .5; flex: 0 0 auto; }
.az-branchmap__search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: #2b2620;
  -webkit-text-fill-color: #2b2620;
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
}
.az-branchmap__search input::placeholder { color: rgba(43, 38, 32, .5); -webkit-text-fill-color: rgba(43, 38, 32, .5); opacity: 1; }

[data-theme="dark"] .az-branchmap__search input {
  background: transparent !important;
  color: #2b2620 !important;
  -webkit-text-fill-color: #2b2620 !important;
  border: 0 !important;
}
[data-theme="dark"] .az-branchmap__search input::placeholder { color: rgba(43, 38, 32, .5) !important; -webkit-text-fill-color: rgba(43, 38, 32, .5) !important; }


.az-branchmap__filter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 4px;
  border-radius: var(--r-chip, 999px);
}
.az-branchmap__filter button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: var(--w-semibold, 650);
  color: rgba(43, 38, 32, .62);
  padding: 0 15px;
  height: 38px;
  border-radius: var(--r-chip, 999px);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--motion-fast, 160ms) var(--motion-ease, ease),
              background var(--motion-fast, 160ms) var(--motion-ease, ease);
}
.az-branchmap__filter button:hover { color: #2b2620; }
.az-branchmap__filter button[aria-pressed="true"] {
  color: #fff;
  background: var(--red, #d89a38);
  box-shadow: 0 4px 12px -3px rgba(195, 121, 28, .5);
}


.az-branchmap__round {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  color: #2b2620;
  transition: transform var(--motion-fast, 160ms) var(--motion-ease, ease),
              background var(--motion-fast, 160ms) var(--motion-ease, ease);
}
.az-branchmap__round .anzelha-icon { width: 20px; height: 20px; }
.az-branchmap__round:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .9); }
.az-branchmap__round:active { transform: translateY(0) scale(.96); }
.az-branchmap__round.is-busy { opacity: .6; pointer-events: none; }

.az-branchmap__zoom { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; }
.az-branchmap__zoom .az-branchmap__round { border-radius: 0; width: 46px; height: 44px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
.az-branchmap__zoom .az-branchmap__round + .az-branchmap__round { border-top: 1px solid rgba(20, 18, 14, .1); }


.az-branchmap__legend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--r-chip, 999px);
  font-size: 13px;
  font-weight: var(--w-semibold, 650);
  color: #2b2620;
}
.az-branchmap__legend span { display: inline-flex; align-items: center; gap: 7px; }
.az-branchmap__legend i { width: 10px; height: 10px; border-radius: 999px; }
.az-branchmap__legend .is-open i { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .18); }
.az-branchmap__legend .is-closed i { position: relative; background: #ff453a; box-shadow: 0 0 0 3px rgba(255, 69, 58, .18); }


.az-branchmap__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.az-branchmap__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-card, 16px);
  background: var(--surface, rgba(255, 255, 255, .6));
  border: 1px solid var(--az-line, rgba(20, 18, 14, .09));
}
.az-branchmap__list b { font-size: 15px; }
.az-branchmap__list small { color: var(--anzelha-text-secondary, #6b6660); font-size: 13px; }
.az-branchmap__list a { color: var(--red, #d89a38); font-weight: var(--w-semibold, 650); text-decoration: none; font-size: 13.5px; }

.az-has-branchmap .az-branchmap__list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


.az-branchmap__canvas .leaflet-control-zoom,
.az-branchmap__canvas .leaflet-control-layers { display: none; }
.az-branchmap__canvas .leaflet-control-attribution {
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(43, 38, 32, .7);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 0 8px 0 0;
}
.az-branchmap__canvas .leaflet-control-attribution a { color: var(--red, #d89a38); }
.az-branchmap__canvas .leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 4px 6px;
  box-shadow: 0 16px 40px -14px rgba(30, 24, 16, .4);
}
.az-branchmap__canvas .leaflet-popup-content { margin: 12px 14px; font: inherit; }
.az-branchmap__popup b { display: block; font-size: 15px; margin-bottom: 3px; }
.az-branchmap__popup small { display: block; color: #6b6660; font-size: 12.5px; line-height: 1.4; white-space: pre-line; }
.az-branchmap__popup a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--red, #d89a38);
  font-weight: var(--w-semibold, 650);
  text-decoration: none;
  font-size: 13px;
}


[data-theme="dark"] .az-branchmap__phone {
  background: rgba(28, 30, 32, .7);
  border-color: rgba(255, 255, 255, .12);
  color: var(--red, var(--dark-accent, #14C4CF));
}
[data-theme="dark"] .az-branchmap__stage {
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 70px -30px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .az-branchmap__list li { background: var(--dark-input, #121416); border-color: rgba(255, 255, 255, .1); }



@media (max-width: 1023px) {
  .az-branchmap__stage { height: clamp(420px, 52vw, 500px); }
  .branch-marker { min-width: 150px; max-width: 188px; padding: 11px 13px; gap: 10px; border-radius: 18px; }
  .branch-marker__content strong { font-size: 14px; }
}
@media (max-width: 767px) {
  .az-branchmap__head { gap: 12px; }
  .az-branchmap__phone { padding: 10px 16px; font-size: 15px; }
  .az-branchmap__stage { height: 360px; border-radius: 24px; }
  .az-branchmap__controls--tl { left: 12px; top: 12px; right: 74px; gap: 8px; }
  .az-branchmap__controls--tr { right: 12px; top: 12px; }
  .az-branchmap__search { height: 44px; min-width: 0; flex-basis: 100%; max-width: none; }
  .az-branchmap__filter { height: 44px; }
  .az-branchmap__round { width: 44px; height: 44px; }
  .az-branchmap__legend { right: 12px; bottom: 12px; padding: 8px 12px; gap: 12px; font-size: 12px; }
  .branch-marker { min-width: 132px; max-width: 168px; }
  .branch-marker__content small { max-width: 108px; }
  .az-branchmap__list { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  .branch-marker--closed .branch-marker__signal::before,
  .branch-marker--closed .branch-marker__signal::after { animation: none; }
  .branch-marker, .az-branchmap__phone, .az-branchmap__round, .az-branchmap__filter button { transition: none; }
}
