:root {
  --branch-charcoal: #11120f;
  --branch-surface: #1a1b16;
  --branch-gold: #e5bf61;
  --branch-offwhite: #f4f0e5;
  --branch-muted: #b9b097;
  --branch-line: rgba(243, 239, 223, .16);
}

.branches-intro,
.branch-finder {
  background: var(--branch-charcoal);
  color: var(--branch-offwhite);
}

.branches-intro {
  padding: clamp(52px, 8vw, 108px) 0 34px;
}

.branches-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.branches-intro .eyebrow,
.branch-finder .eyebrow {
  color: var(--branch-gold);
}

.branches-intro h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: var(--branch-offwhite);
}

.intro-copy {
  max-width: 690px;
  margin: 0;
  color: var(--branch-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.branches-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.branches-stats div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--branch-line);
  background: var(--branch-surface);
  display: grid;
  align-content: end;
}

.branches-stats dt {
  color: var(--branch-gold);
  font: 700 clamp(35px, 4vw, 52px)/1 brand, Arial, sans-serif;
}

.branches-stats dd {
  margin: 9px 0 0;
  color: var(--branch-muted);
  font-size: 15px;
}

.branch-finder {
  min-height: 100vh;
  padding: 28px 0 86px;
}

.finder-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(260px, .58fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--branch-line);
  background: rgba(29, 29, 24, .95);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.finder-heading h2 {
  margin: 8px 0 0;
  color: var(--branch-offwhite);
  font-size: clamp(26px, 3vw, 38px);
}

.search-row {
  align-self: center;
}

.branch-finder .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.branch-finder .search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(223, 189, 105, .38);
  background: #0f0f0d;
}

.branch-finder .search-wrap:focus-within {
  border-color: var(--branch-gold);
  box-shadow: 0 0 0 3px rgba(223, 189, 105, .16);
}

.branch-finder .search-wrap svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--branch-gold);
}

.branch-finder input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--branch-offwhite);
  font: inherit;
}

.branch-finder input[type="search"]::placeholder {
  color: rgba(243, 239, 223, .55);
}

.branch-finder input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.branch-finder #clear-search {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  color: var(--branch-offwhite);
  background: rgba(243, 239, 223, .1);
  font-size: 26px;
  line-height: 1;
}

.branch-finder .filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid var(--branch-line);
  color: var(--branch-offwhite);
  background: transparent;
}

.filter-chip:hover {
  border-color: rgba(223, 189, 105, .58);
}

.filter-chip[aria-pressed="true"] {
  color: var(--branch-charcoal);
  border-color: var(--branch-gold);
  background: var(--branch-gold);
  font-weight: 700;
}

.filter-chip small {
  min-width: 24px;
  padding: 2px 7px;
  color: inherit;
  border: 1px solid currentColor;
  opacity: .78;
  text-align: center;
  font-size: 13px;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 28px 0 24px;
  color: var(--branch-muted);
}

.results-bar p {
  margin: 0;
  color: var(--branch-offwhite);
  font-weight: 700;
}

.branch-region + .branch-region {
  margin-top: 46px;
}

.region-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--branch-line);
}

.region-heading h2 {
  margin: 0;
  color: var(--branch-offwhite);
  font-size: clamp(24px, 2.6vw, 34px);
}

.region-heading span {
  color: var(--branch-gold);
  font-size: 15px;
  white-space: nowrap;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.branch-card {
  min-width: 0;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--branch-line);
  background: var(--branch-surface);
}

.branch-card:hover {
  border-color: rgba(223, 189, 105, .44);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.branch-card h3 {
  margin: 0 0 14px;
  color: var(--branch-offwhite);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.25;
}

.card-number {
  padding-top: 4px;
  color: rgba(223, 189, 105, .64);
  font: 700 13px Arial, sans-serif;
}

.branch-address {
  display: flex;
  gap: 9px;
  min-height: 54px;
  margin: 0 0 16px;
  color: var(--branch-muted);
  line-height: 1.55;
}

.branch-address svg {
  width: 18px;
  min-width: 18px;
  margin-top: 4px;
  color: var(--branch-gold);
}

.branch-hours {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--branch-line);
  color: var(--branch-muted);
  font-size: 15px;
}

.branch-hours summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--branch-offwhite);
  cursor: pointer;
  list-style: none;
}

.branch-hours summary::-webkit-details-marker {
  display: none;
}

.branch-hours summary::after {
  content: '+';
  color: var(--branch-gold);
  font: 22px Arial, sans-serif;
}

.branch-hours[open] summary::after {
  content: '−';
}

.branch-hours ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.65;
}

.branch-hours li + li {
  margin-top: 6px;
}

.branch-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
}

.waze-link,
.phone-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(223, 189, 105, .42);
  color: var(--branch-offwhite);
  text-decoration: none;
  font-weight: 700;
}

.waze-link {
  color: var(--branch-charcoal);
  border-color: var(--branch-gold);
  background: var(--branch-gold);
}

.waze-link:hover {
  background: #edcd7a;
}

.waze-link img {
  width: 30px;
  height: 25px;
  object-fit: contain;
}

.phone-link:hover {
  background: rgba(243, 239, 223, .08);
}

.phone-link svg {
  width: 18px;
  height: 18px;
}

.soon-card {
  min-height: 205px;
  border-style: dashed;
  background: #181814;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--branch-charcoal);
  background: var(--branch-gold);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.soon-note {
  margin: auto 0 0;
  color: var(--branch-muted);
  font-size: 15px;
}

.branch-empty {
  margin-top: 26px;
  padding: 58px 20px;
  border: 1px solid var(--branch-line);
  background: var(--branch-surface);
  text-align: center;
}

.branch-empty > span {
  display: block;
  color: var(--branch-gold);
  font-size: 58px;
}

.branch-empty h2 {
  margin: 8px 0 10px;
  color: var(--branch-offwhite);
}

.branch-empty p,
.hours-note {
  color: var(--branch-muted);
}

.branch-empty .button {
  margin-top: 8px;
}

.hours-note {
  margin: 30px 0 0;
  font-size: 15px;
}

@media (max-width: 980px) {
  .branches-intro-grid,
  .finder-panel {
    grid-template-columns: 1fr;
  }

  .branches-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .branches-intro {
    padding-top: 42px;
  }

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

  .branches-stats div {
    min-height: 104px;
  }

  .finder-panel {
    position: static;
    padding: 16px;
  }

  .branch-finder {
    padding-bottom: 56px;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 9px);
    justify-content: space-between;
    padding-inline: 12px;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .branch-card {
    min-height: 0;
    padding: 19px;
  }

  .branch-actions {
    grid-template-columns: 1fr;
  }
}

/* Match the approved v36 layout, typography and gold controls. */
.branches-page{max-width:1200px;margin:40px auto 70px;padding:0 25px}.branches-back{display:inline-block}.branches-page .container{width:100%;margin:auto}.branches-intro{padding-top:0}.branches-intro h1{font-size:55px;font-weight:400;margin:25px 0}.branches-page h2,.branches-page h3{font-weight:400}.branches-page svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.branches-page .eyebrow{font-size:18px}.branches-page button{font:inherit}.branches-stats dt{font-weight:400}.branches-stats dd{font-size:17px}.finder-panel{position:static;box-shadow:none;backdrop-filter:none}.filter-chip,.branch-card{border-color:#a58e493f}.branch-finder input{font-size:20px}.branch-empty .button{padding:12px 24px;background:var(--branch-gold);color:var(--branch-charcoal)}.branches-page [hidden]{display:none!important}.branches-page input:focus-visible,.branches-page summary:focus-visible{outline:2px solid #e5bf61;outline-offset:4px}@media(max-width:680px){.branches-page{margin:20px auto 40px;padding:0 18px}.branches-intro h1{font-size:38px}.branches-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.branches-stats div{min-height:100px;padding:12px 8px}.branches-stats dt{font-size:34px}.branches-stats dd{font-size:14px}.branch-finder input{font-size:18px}}
