#branch-locator-container {
  font-family:
    "futura-pt",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
}

.filter-select,
.filter-select option {
  font-family:
    "futura-pt",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
}

/* -- Layout -- */

.branch-locator-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .branch-locator-wrapper {
    grid-template-columns: 1fr;
  }
}

/* -- Filters -- */

.branch-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 0 1 200px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #545c5b;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 290px;
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333333;
  background-color: #fff;
  transition: border-color 0.2s ease;
  cursor: pointer;
  font-family: "futura-pt", sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus,
.filter-select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-color: #54585a;
}

.filter-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

/* -- Reset button -- */

.reset-filters-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none;
  color: #666;
  font-size: 13px !important;
  cursor: pointer;
  padding-bottom: 10px !important;
  transition: all 0.2s ease;
  font-family: "futura-pt", sans-serif;
}

@media (max-width: 800px) {
  .reset-filters-btn {
    padding: 0 !important;
  }
}

.reset-filters-btn:hover {
  color: #000;
  background: #f0f0f0;
}

.reset-filters-btn svg {
  width: 14px;
  height: 14px;
}

.reset-filters-btn span {
  text-transform: lowercase;
}

/* -- Map -- */

#branch-locator-map {
  height: 600px;
  border: none;
  overflow: hidden;
}

@media (max-width: 1024px) {
  #branch-locator-map {
    height: 350px !important;
    order: -1;
  }
}

/* -- List panel -- */

#branch-locator-list {
  min-height: 400px;
  background: #fff;
  overflow-y: auto;
  max-height: 600px;
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 16px;
  background: #f9f9f9;
}

/*-- Group header -- */

.group-header {
  background-color: rgb(252, 208, 107);
  padding: 32px;
  font-weight: 900;
  font-size: 24px;
  line-height: 0.8 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
  display: block;
  width: 100%;
  margin: 0;
  border: none;
  color: #545c5b;
}

/* ── Branch row -- */

.branch-row {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.branch-row:hover {
  background-color: #f8f8f8;
}

.branch-row.active {
  background-color: #e8e8e8;
  cursor: default;
}

.branch-header {
  padding: 32px;
  transition: opacity 0.2s ease;
}

.branch-row.active .branch-header {
  display: none;
}

.branch-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branch-name {
  margin: 0;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #545c5b;
  line-height: 0.8 !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {
  .group-header,
  .branch-name {
    font-size: 16px !important;
  }
}

.branch-address-preview {
  font-size: 16px;
  color: #545c5b;
  font-weight: 400;
  line-height: 1.4;
}

/* -- Branch details (expand/collapse) -- */

.branch-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #e8e8e8;
}

.branch-details.active {
  max-height: 2000px;
}

.branch-info {
  padding: 14px 25px 25px 32px;
}

/* -- CTA -- */

.branch-cta-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meet-branch-button {
  display: inline-block;
  background-color: white;
  color: #595c5b;
  padding: 12px 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  align-self: flex-start;
}

.branch-footnote {
  font-size: 11px;
  color: #595c5b;
  font-style: italic;
}

/* -- Loading state -- */

.branch-locator-loading {
  text-align: center;
  padding: 60px 20px;
  color: #595c5b;
}

.branch-locator-loading::after {
  content: "Loading branches…";
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

/* -- Scrollbar -- */

#branch-locator-list::-webkit-scrollbar {
  width: 8px;
}

#branch-locator-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#branch-locator-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#branch-locator-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* -- HQ fallback block -- */

.hq-message-block {
  padding: 20px 25px;
  margin-bottom: 25px;
}

.hq-message-block p {
  margin: 0;
  font-size: 14px;
  color: #595c5b;
  line-height: 1.8;
  font-family: "futura-pt", sans-serif;
}

.hq-message-block a {
  color: #595c5b;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.hq-message-block a:hover {
  text-decoration: underline;
}

/* -- Team members -- */

.team-member-row {
  margin-bottom: 25px;
  padding-bottom: 20px;
}

.team-member-row:last-of-type {
  border-bottom: none;
  margin-bottom: 30px;
}

.member-info,
.member-contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.member-contact-item a {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.member-label {
  flex: 0 0 120px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.167;
  letter-spacing: 0.035em;
  color: #595c5b;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-value {
  flex: 1;
  font-size: 16px !important;
  font-weight: 400;
  color: #595c5b;
}

.contact-label {
  flex: 0 0 120px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.167;
  letter-spacing: 0.035em;
  color: #595c5b;
}

.member-contact-item a {
  flex: 1;
  color: #595c5b;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.member-contact-item a:hover {
  color: #595c5b;
  text-decoration: underline;
}

/* -- Branch details header -- */

.branch-details-header {
  padding: 20px 32px;
}

.branch-details-header .branch-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branch-details-header .branch-name {
  margin: 0;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #545c5b;
  line-height: 0.8 !important;
  letter-spacing: -0.02em !important;
}

.branch-details-header .branch-address-preview {
  font-size: 16px;
  color: #595c5b;
  font-weight: 400;
  line-height: 1.1;
}

/* -- Mobile -- */

@media (max-width: 768px) {
  #branch-locator-container {
    padding: 0;
  }

  .branch-filters {
    gap: 15px;
  }

  .filter-group {
    flex: 1 1 100%;
  }

  .branch-header {
    padding: 15px 20px;
  }

  .branch-name {
    font-size: 14px;
  }

  .branch-address-preview {
    font-size: 12px;
  }

  .branch-info {
    padding: 20px;
  }

  .group-header {
    padding: 15px 20px;
    font-size: 18px;
  }

  .meet-branch-button {
    width: 100%;
  }

  #branch-locator-list {
    max-height: none;
  }
}

/* -- Accessibility -- */

.branch-row:focus-visible {
  outline: 2px solid #333;
  outline-offset: -2px;
}

.filter-select:focus-visible,
.meet-branch-button:focus-visible,
.reset-filters-btn:focus-visible {
  outline: 2px solid #595c5b;
  outline-offset: 2px;
}

/* -- Reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  .branch-row,
  .branch-details,
  .filter-select,
  .meet-branch-button,
  .reset-filters-btn {
    transition: none;
  }
}
