﻿/* Branches modal */

@keyframes branchViewIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.branches-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.branches-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.branches-modal.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition-delay: 0s;
}

.branches-modal[hidden] {
  display: none;
}

.branches-modal-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--modal-backdrop-bg);
  -webkit-backdrop-filter: var(--modal-backdrop-filter);
  backdrop-filter: var(--modal-backdrop-filter);
  border: 0;
  box-shadow: var(--modal-backdrop-inset-shadow);
  opacity: 1;
  transition: opacity 0.24s ease;
}

.branches-modal-backdrop::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--modal-backdrop-gradient);
  pointer-events: none;
}

.branches-modal.is-closing .branches-modal-backdrop {
  opacity: 0;
}

.branches-dialog {
  will-change: opacity, transform;
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  max-height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(var(--rgb-white), 0.94), rgba(var(--rgb-white), 0.78)),
    var(--modal-surface-bg);
  border: 1px solid var(--modal-border-color);
  border-radius: var(--modal-radius);
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(24px) saturate(160%);
  animation: modalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.branches-dialog.is-view-transitioning {
  overflow: hidden;
  transform-origin: bottom center;
  will-change: height, transform;
}

.branches-modal.is-closing .branches-dialog {
  animation: modalOut 0.24s ease both;
}

.branches-sheet-grabber {
  display: none;
}

.branches-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(var(--rgb-text), 0.07);
}

.branches-kicker,
.branch-detail-city,
.branch-city {
  color: var(--color-accent);
  font-size: var(--font-size-2xs);
  font-weight: 600;
}

.branches-dialog-header h2 {
  margin: 4px 0 0;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
}

.branches-close {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(var(--rgb-white), 0.62);
  border: 1px solid var(--ios-widget-border);
  border-radius: var(--header-action-radius);
  cursor: pointer;
}

.branches-close span::before,
.branches-close span::after {
  position: absolute;
  top: 18px;
  right: 9px;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
}

.branches-close span::before {
  transform: rotate(45deg);
}

.branches-close span::after {
  transform: rotate(-45deg);
}

.branches-dialog-header {
  position: relative;
  direction: ltr;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "close spacer brand";
  align-items: center;
  min-height: 78px;
  padding: 14px 24px 18px;
  gap: 18px;
  background: rgba(var(--rgb-white), 0.9);
  border-bottom: 0;
}

.branches-dialog-header::before,
.branches-dialog-header::after {
  position: absolute;
  bottom: 0;
  height: 5px;
  content: "";
}

.branches-dialog-header::before {
  right: 0;
  left: calc(67% + 0px);
  background: var(--color-accent);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 8px 0);
}

.branches-dialog-header::after {
  right: calc(33% - 3px);
  left: 0;
  background: var(--color-primary);
  clip-path: polygon(0 100%, calc(100% - 8px) 100%, 100% 0, 0 0);
}

.branches-dialog-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  text-decoration: none;
}

.branches-dialog-brand img {
  display: block;
  width: clamp(178px, 22vw, 200px);
  height: auto;
  object-fit: contain;
}

.branches-dialog-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.branches-close {
  grid-area: close;
  justify-self: start;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-circle);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.branches-close:hover,
.branches-close:focus-visible {
  background: rgba(var(--rgb-primary), 0.06);
  transform: scale(1.03);
}

.branches-close span::before,
.branches-close span::after {
  top: 50%;
  right: auto;
  left: 50%;
  width: 25px;
  height: 3px;
  background: var(--color-primary-dark);
}

.branches-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.branches-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.branches-dialog-body {
  max-height: calc(min(720px, 100dvh - 48px) - 84px);
  overflow: auto;
  padding: 14px;
}

.branches-view.is-active {
  animation: branchViewIn 0.2s ease both;
}

.branches-view[hidden] {
  display: none;
}

.branches-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 33%, 350px);
  align-items: stretch;
  min-height: clamp(320px, 39vh, 390px);
  gap: clamp(14px, 1.7vw, 22px);
  direction: ltr;
}

.branches-list-spacer {
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
}

.branches-location-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  justify-items: center;
  align-content: start;
  min-height: 100%;
  padding: clamp(14px, 1.6vw, 20px) clamp(10px, 1.2vw, 14px) 0;
  overflow: hidden;
  color: var(--color-primary);
  text-align: center;
  direction: rtl;
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--rgb-white), 0.92), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 48%, #eef4fb 100%);
  border: 1px solid rgba(var(--rgb-primary), 0.08);
  border-radius: calc(var(--modal-radius) - 4px);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.9), 0 16px 34px rgba(var(--rgb-primary), 0.08);
  isolation: isolate;
}

.branches-location-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 4.7vw, 62px);
  height: clamp(52px, 4.7vw, 62px);
  margin-bottom: 6px;
  color: var(--color-primary);
  background: rgba(var(--rgb-white), 0.82);
  border: 1px solid rgba(var(--rgb-primary), 0.08);
  border-radius: var(--radius-circle);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.92), 0 14px 28px rgba(var(--rgb-primary), 0.14);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

.branches-location-icon svg,
.branches-city-pill svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.branches-location-icon .top-location-icon-custom {
  width: 34px;
  height: 43px;
  fill: initial;
  stroke: none;
}

.branches-location-kicker {
  position: relative;
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1;
}

.branches-location-kicker::after {
  width: 38px;
  height: 3px;
  content: "";
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.branches-location-panel h3 {
  max-width: 13rem;
  margin: 0 0 7px;
  color: var(--color-primary);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
}

.branches-location-panel p {
  max-width: 14.5rem;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.65;
}

.branches-city-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 36px;
  padding: 0 12px;
  gap: 9px;
  color: var(--color-primary);
  background: rgba(var(--rgb-white), 0.74);
  border: 1px solid rgba(var(--rgb-primary), 0.1);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.88), 0 12px 24px rgba(var(--rgb-primary), 0.07);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.branches-city-pill strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.branches-location-visual {
  align-self: end;
  display: block;
  width: min(126%, 292px);
  max-width: none;
  height: auto;
  margin-top: clamp(8px, 1.4vw, 14px);
  margin-bottom: -3px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.branches-grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  direction: rtl;
}

.branch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 39%);
  grid-template-areas: "content media" "divider media" "actions media";
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 16px);
  width: 100%;
  min-height: 154px;
  padding: 8px;
  color: var(--color-text);
  text-align: initial;
  direction: ltr;
  background: rgba(var(--rgb-white), 0.92);
  border: 1px solid rgba(var(--rgb-primary), 0.06);
  border-radius: 5px;
  box-shadow: 0 16px 38px rgba(var(--rgb-primary), 0.08), inset 0 1px 0 rgba(var(--rgb-white), 0.92);
  backdrop-filter: blur(16px) saturate(142%);
  -webkit-backdrop-filter: blur(16px) saturate(142%);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.branch-card:hover,
.branch-card:focus-visible {
  border-color: rgba(var(--rgb-accent), 0.22);
  box-shadow: 0 20px 44px rgba(var(--rgb-primary), 0.12), inset 0 1px 0 rgba(var(--rgb-white), 0.96);
  transform: translateY(-2px);
}

.branch-card:focus-visible,
.branches-close:focus-visible,
.branches-back:focus-visible {
  outline: 2px solid rgba(var(--rgb-accent), 0.32);
  outline-offset: 3px;
}

.branch-card-media {
  position: relative;
  grid-area: media;
  display: block;
  min-height: clamp(136px, 15vw, 154px);
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(var(--rgb-primary), 0.1);
}

.branch-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.branch-card-content {
  grid-area: content;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding-inline: 2px;
  text-align: right;
  direction: rtl;
}

.branch-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.branch-card-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  color: var(--color-white);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-accent), #c91c2c);
  border-radius: 6px;
  box-shadow: 0 10px 18px rgba(var(--rgb-accent), 0.18);
}

.branch-city-chip,
.branch-card-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.branch-city-chip svg,
.branch-card-quick svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.branch-card-content strong {
  color: var(--color-primary);
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  line-height: var(--line-height-tight);
}

.branch-address {
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.5;
}

.branch-city-chip {
  min-width: 92px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: rgba(var(--rgb-white), 0.68);
  border: 1px solid rgba(var(--rgb-primary), 0.12);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.84);
}

.branch-card-quick {
  min-width: 92px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: rgba(var(--rgb-white), 0.72);
  border: 1px solid rgba(var(--rgb-accent), 0.36);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.84);
}

.branch-card-divider {
  grid-area: divider;
  display: block;
  align-self: center;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(to left, rgba(var(--rgb-primary), 0.16) 0 5px, transparent 5px 10px);
}

.branch-card-actions {
  grid-area: actions;
  display: grid;
  align-content: start;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.branch-hours {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  gap: 8px;
  color: var(--color-primary);
  text-align: center;
  white-space: nowrap;
  background: rgba(var(--rgb-primary), 0.045);
  border-radius: 0px;
  box-shadow: none;
}

.branch-hours svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  fill: currentColor;
  stroke: none;
}

.branch-hours span {
  color: var(--color-primary);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  line-height: 1;
}

.branch-hours strong {
  color: var(--color-consultation);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  line-height: 1.35;
}

.branch-card-actions {
  min-width: 0;
  max-width: 100%;
}

.branch-card .branch-hours {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  white-space: normal;
  overflow: hidden;
  padding-inline: 8px;
}

.branch-card .branch-hours span,
.branch-card .branch-hours strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.branch-detail-pin .top-location-icon-custom {
  width: 42px;
  height: 52px;
  fill: initial;
  stroke: initial;
  filter: drop-shadow(0 10px 14px rgba(var(--rgb-primary), 0.18));
}

.branches-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 18px;
  padding: 0 12px;
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(var(--rgb-white), 0.64);
  border: 1px solid var(--ios-widget-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.56);
  cursor: pointer;
}

.branches-back span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(135deg);
}

.branch-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
}

.branch-detail-content {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px);
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 18% 12%, rgba(var(--rgb-white), 0.92), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 48%, #eef4fb 100%);
  border: 1px solid rgba(var(--rgb-primary), 0.08);
  border-radius: var(--modal-radius);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.9), 0 16px 34px rgba(var(--rgb-primary), 0.08);
}

.branch-detail-content::before {
  position: absolute;
  inset: -24px -16px auto auto;
  width: 160px;
  aspect-ratio: 1;
  content: "";
  opacity: 0.14;
  background: radial-gradient(circle, rgba(var(--rgb-primary), 0.8) 0 1.8px, transparent 2.4px) 0 0 / 14px 14px;
  border-radius: var(--radius-circle);
  pointer-events: none;
}

.branch-detail-pin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  color: var(--color-primary);
  background: rgba(var(--rgb-primary), 0.08);
  border-radius: var(--radius-circle);
}

.branch-detail-pin svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.branch-detail-content h3 {
  margin: 6px 0 8px;
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: var(--line-height-tight);
}

.branch-detail-content p {
  max-width: 20rem;
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.75;
}

.branch-detail-separator {
  width: min(100%, 310px);
  height: 1px;
  margin: 18px 0;
  background: rgba(var(--rgb-primary), 0.1);
}

.branch-detail-actions {
  display: grid;
  width: min(100%, 340px);
  gap: 10px;
}

.branch-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  gap: 10px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.branch-detail-action svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.branch-detail-action-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), #e53040 58%, #c91c2c);
  border: 1px solid rgba(var(--rgb-white), 0.18);
  box-shadow: 0 16px 28px rgba(var(--rgb-accent), 0.24), inset 0 1px 0 rgba(var(--rgb-white), 0.24);
}

.branch-detail-action-map {
  color: var(--color-primary);
  background: rgba(var(--rgb-white), 0.78);
  border: 1px solid rgba(var(--rgb-primary), 0.58);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.88);
}

.branch-detail-action:hover,
.branch-detail-action:focus-visible {
  transform: translateY(-1px);
}

.branch-detail-hours {
  width: min(100%, 340px);
  margin-top: 12px;
}

.branch-detail-layout,
.branch-detail-content,
.branch-detail-actions,
.branch-detail-action,
.branch-detail-hours,
.branch-hours {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.branch-detail-content {
  width: 100%;
  align-content: start;
}

.branch-detail-content h3,
.branch-detail-content p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.branch-detail-actions,
.branch-detail-hours {
  width: min(100%, 320px);
}

.branch-detail-action {
  width: 100%;
}

.branch-detail-hours {
  flex-wrap: wrap;
  white-space: normal;
  overflow: hidden;
}

.branch-detail-hours span,
.branch-detail-hours strong {
  min-width: 0;
}

.branch-map {
  min-height: var(--modal-map-height);
  overflow: hidden;
  background: rgba(var(--rgb-white), 0.64);
  border: 1px solid var(--ios-widget-border);
  border-radius: 0px;
  box-shadow: var(--ios-widget-shadow);
  backdrop-filter: blur(14px) saturate(145%);
}

.branch-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--modal-map-height);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .top-location-icon-custom,
    .branches-dialog,
    .branches-view.is-active,
    .branches-modal.is-closing .branches-dialog {
      animation: none;
    }
}

@media (max-width: 760px) {
  .branches-modal {
      align-items: end;
      place-items: end stretch;
      padding: 0;
    }

  .branches-dialog {
      width: 100%;
      max-height: calc(100dvh - 18px);
      border-width: 1px 0 0;
      border-radius: var(--ios-sheet-radius) var(--ios-sheet-radius) 0 0;
      animation: mobileSheetIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

  .branches-modal.is-closing .branches-dialog {
      animation: mobileSheetOut 0.26s ease both;
    }

  .branches-sheet-grabber {
      display: block;
      width: 46px;
      height: 5px;
      margin: 10px auto 2px;
      background: var(--ios-grabber-bg);
      border-radius: var(--radius-pill);
    }

  .branches-dialog-header {
      min-height: 68px;
      padding: 10px 16px 15px;
      align-items: center;
    }

  .branches-dialog-header::before,
    .branches-dialog-header::after {
      height: 4px;
    }

  .branches-dialog-header::before {
      left: calc(67% + 0px);
      clip-path: polygon(0 100%, 100% 100%, 100% 0, 7px 0);
    }

  .branches-dialog-header::after {
      right: calc(33% - 3px);
      clip-path: polygon(0 100%, calc(100% - 7px) 100%, 100% 0, 0 0);
    }

  .branches-dialog-brand img {
      width: clamp(152px, 43vw, 190px);
    }

  .branches-close {
      width: 42px;
      height: 42px;
    }

  .branches-close span::before,
    .branches-close span::after {
      width: 22px;
      height: 2.5px;
    }

  .branches-dialog-body {
      max-height: calc(100dvh - 102px);
      padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

  .branches-list-layout {
      grid-template-columns: 1fr;
      min-height: 0;
      gap: 0;
    }

  .branches-list-spacer {
      display: none;
    }

  .branches-grid,
    .branch-detail-layout {
      grid-template-columns: 1fr;
    }

  .branch-card {
      grid-template-columns: minmax(0, 1fr) 124px;
      grid-template-areas:
        "content media"
        "actions media";
      align-items: center;
      gap: 10px;
      min-height: 0;
      padding: 8px;
      border-radius: 5px;
    }

  .branch-card-media {
      min-height: 94px;
      border-radius: 5px;
    }

  .branch-card-media img {
      height: 100%;
      min-height: 0;
    }

  .branch-card-divider {
      display: none;
    }

  .branch-card-content {
      gap: 5px;
    }

  .branch-card-actions {
      min-width: 0;
      align-items: center;
      gap: 8px;
    }

  .branch-hours {
      white-space: normal;
      padding-inline: 8px;
      gap: 6px;
    }

  .branch-detail-content {
      padding: 16px 14px;
    }

  .branch-detail-actions,
    .branch-detail-hours {
      width: 100%;
    }

  .branch-detail-action {
      min-height: 44px;
    }
}

@media (max-width: 480px) {
  .branches-dialog-header h2,
    .branch-detail-content h3 {
      font-size: var(--font-size-lg);
    }

  .branches-dialog-body {
      padding-inline: 10px;
    }

  .branch-card {
      grid-template-columns: minmax(0, 1fr) 106px;
      gap: 8px;
    }

  .branch-card-media {
      min-height: 82px;
    }

  .branch-card-media img {
      height: 100%;
      min-height: 0;
    }

  .branch-card-content strong {
      font-size: var(--font-size-body);
    }

  .branch-card-meta,
    .branch-address,
    .branch-city-chip,
    .branch-card-quick,
    .branch-detail-action {
      font-size: var(--font-size-2xs);
    }

  .branch-status {
      min-height: 22px;
      padding-inline: 8px;
    }

  .branch-detail-content {
      padding-inline: 12px;
    }

  .branch-detail-actions,
    .branch-detail-hours {
      width: 100%;
    }

  .branch-map,
    .branch-map iframe {
      min-height: 250px;
    }
}

