.ref-units-page {
  --unit-accent: var(--brand, #841536);
  --unit-dark: var(--brand-dark, #650c29);
  --unit-ink: var(--ink, #1b252f);
  --unit-muted: var(--muted, #5e6267);
  --unit-line: var(--line, #e8dbe0);
  --unit-wash: var(--wash, #f8eef2);
  width: 100%;
  background: #fff;
  color: var(--unit-ink);
  font-family: var(--body, sans-serif);
}

.ref-units-page [hidden] {
  display: none;
}

.ref-units-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px clamp(16px, 7.78vw, 112px) 40px;
}

.ref-units-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--unit-muted);
  font-size: 14px;
  line-height: 24px;
}

.ref-units-breadcrumb a:hover,
.ref-units-location-link:hover,
.ref-units-panel-directions a:hover,
.ref-units-phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ref-units-breadcrumb a span {
  display: none;
}

.ref-units-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-block: 20px 12px;
  text-align: center;
}

.ref-units-brow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--unit-wash);
  color: var(--unit-accent);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ref-units-hero h1 {
  color: var(--unit-accent);
  font: 500 32px/42px var(--body, sans-serif);
  letter-spacing: 0;
  text-wrap: balance;
}

.ref-units-hero > p:last-child {
  max-width: 62ch;
  color: var(--unit-muted);
  font-size: 16px;
  line-height: 24px;
}

.ref-units-search-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-block: 32px 40px;
}

.ref-units-search {
  display: flex;
  width: min(100%, 356px);
  height: 52px;
  align-items: center;
  gap: 9px;
  padding: 5px 5px 5px 19px;
  border: 1px solid var(--unit-line);
  border-radius: 99px;
}

.ref-units-search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 1.5px solid var(--unit-accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

.ref-units-search-icon::after {
  position: absolute;
  content: "";
  width: 6px;
  height: 1.5px;
  right: -5px;
  bottom: -2px;
  background: var(--unit-accent);
  transform: rotate(46deg);
}

.ref-units-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--unit-ink);
  font-size: 15px;
}

.ref-units-search input:focus {
  outline: 0;
}

.ref-units-search:focus-within {
  box-shadow: 0 0 0 2px var(--unit-line);
}

.ref-units-search button,
.ref-units-panel-toggle,
.ref-units-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding-inline: 18px;
  border: 1px solid var(--unit-dark);
  border-radius: 99px;
  background: var(--unit-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.ref-units-search button {
  min-width: 92px;
}

.ref-units-panel-toggle {
  align-self: center;
  border-color: transparent;
  background: transparent;
  color: var(--unit-accent);
}

.ref-units-panel-toggle:disabled {
  opacity: .45;
  cursor: default;
}

.ref-units-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--unit-line);
}

.ref-units-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: auto;
  scrollbar-width: thin;
}

.ref-units-filters select,
.ref-units-clear {
  min-height: 40px;
  padding: 6px 12px 6px 16px;
  border: 1px solid var(--unit-line);
  border-radius: 99px;
  background: #fff;
  color: var(--unit-ink);
  font-size: 15px;
}

.ref-units-clear {
  color: var(--unit-accent);
  white-space: nowrap;
}

.ref-units-sort {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  color: var(--unit-muted);
  font-size: 14px;
}

.ref-units-sort select {
  border: 0;
  background: #fff;
  color: var(--unit-ink);
}

.ref-units-count {
  margin-top: 15px;
  color: var(--unit-muted);
  font-size: 14px;
  line-height: 22px;
}

.ref-units-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  margin-top: 19px;
}

.ref-units-list {
  display: grid;
  gap: 16px;
}

.ref-units-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
  row-gap: 10px;
  padding: 20px;
  border: 1px solid var(--unit-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .18s ease;
}

.ref-units-card:hover,
.ref-units-card.is-selected {
  border-color: var(--unit-accent);
}

.ref-units-card-photo {
  width: 132px;
  height: 132px;
  grid-row: span 2;
  border-radius: 8px;
  object-fit: cover;
}

.ref-units-card h2 {
  color: var(--unit-ink);
  font: 650 20px/28px var(--body, sans-serif);
  letter-spacing: 0;
}

.ref-units-card-region {
  color: var(--unit-accent);
  font-size: 13px;
  font-weight: 650;
}

.ref-units-card-address {
  margin-top: 3px;
  color: var(--unit-muted);
  font-size: 14px;
  line-height: 20px;
}

.ref-units-location-link {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--unit-accent);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.ref-units-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  grid-column: 2;
}

.ref-units-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 5px 13px;
  border: 1px solid var(--unit-line);
  border-radius: 99px;
  background: #fff;
  color: var(--unit-accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ref-units-action-primary {
  border-color: var(--unit-dark);
  background: var(--unit-dark);
  color: #fff;
}

.ref-units-action:hover {
  border-color: var(--unit-accent);
}

.ref-units-action-primary:hover,
.ref-units-search button:hover,
.ref-units-more:hover {
  background: var(--unit-accent);
}

.ref-units-phone {
  color: var(--unit-muted);
  font-size: 13px;
  white-space: nowrap;
}

.ref-units-more {
  display: flex;
  margin: 22px auto 0;
}

.ref-units-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--unit-line);
  border-radius: 16px;
  background: var(--unit-wash);
  scroll-margin-top: 118px;
}

.ref-units-panel-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--unit-line);
}

.ref-units-panel-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ref-units-panel-body {
  padding: 24px;
}

.ref-units-panel-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
  color: var(--unit-accent);
  font-size: 13px;
  font-weight: 700;
}

.ref-units-pin {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 60% 60% 60% 0;
  color: inherit;
  transform: rotate(-45deg) translateY(-1px);
}

.ref-units-pin::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.ref-units-panel h2,
.ref-units-faq h2,
.ref-units-franchise h2 {
  color: var(--unit-accent);
  font: 500 26px/34px var(--body, sans-serif);
  letter-spacing: 0;
}

.ref-units-panel p {
  color: var(--unit-muted);
}

.ref-units-hours,
.ref-units-panel-directions {
  margin-top: 10px;
}

.ref-units-panel-directions a {
  color: var(--unit-accent);
  font-weight: 650;
}

.ref-units-panel-empty {
  display: grid;
  min-height: 380px;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
}

.ref-units-empty {
  padding: 28px 16px;
  border: 1px dashed var(--unit-line);
  border-radius: 16px;
  color: var(--unit-muted);
  text-align: center;
}

.ref-units-faq {
  display: grid;
  gap: 10px;
  padding: 64px max(16px, calc((100% - 840px) / 2));
  background: #faf9f8;
}

.ref-units-faq h2 {
  margin-bottom: 16px;
  text-align: center;
}

.ref-units-faq details {
  border: 1px solid var(--unit-line);
  border-radius: 12px;
  background: #fff;
}

.ref-units-faq summary {
  padding: 14px 18px;
  color: var(--unit-dark);
  font-weight: 650;
  cursor: pointer;
}

.ref-units-faq details p {
  padding: 0 18px 16px;
  color: var(--unit-muted);
}

.ref-units-franchise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1360px;
  min-height: 300px;
  overflow: hidden;
  margin: 40px clamp(16px, 2.78vw, 40px) 60px;
  border-radius: 20px;
  background: var(--unit-dark);
  color: #fff;
}

.ref-units-franchise > div {
  align-self: center;
  padding: clamp(24px, 6vw, 80px);
}

.ref-units-franchise h2 {
  color: #fff;
}

.ref-units-franchise p {
  margin-block: 8px 16px;
}

.ref-units-franchise .ref-units-action {
  border-color: #fff;
}

.ref-units-franchise img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .ref-units-inner {
    padding: 16px 16px 40px;
  }

  .ref-units-breadcrumb a span {
    display: inline;
  }

  .ref-units-hero {
    margin-top: 24px;
    padding-block: 14px 6px;
  }

  .ref-units-hero h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .ref-units-search-row {
    flex-direction: column;
    gap: 12px;
    margin-block: 24px 32px;
  }

  .ref-units-search {
    width: 100%;
  }

  .ref-units-panel-toggle {
    height: 44px;
    padding-inline: 18px;
    background: var(--unit-dark);
    color: white;
  }

  .ref-units-controls {
    display: grid;
    gap: 10px;
  }

  .ref-units-sort {
    justify-self: end;
  }

  .ref-units-count {
    margin-top: 11px;
  }

  .ref-units-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ref-units-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 16px;
  }

  .ref-units-card-photo {
    width: 88px;
    height: 88px;
    grid-row: auto;
  }

  .ref-units-card h2 {
    font-size: 17px;
    line-height: 24px;
  }

  .ref-units-card-actions {
    grid-column: 1 / -1;
  }

  .ref-units-panel {
    position: static;
    display: none;
    min-height: 0;
    grid-row: 1;
  }

  .ref-units-panel-open .ref-units-panel {
    display: block;
  }

  .ref-units-panel-body {
    padding: 20px;
  }

  .ref-units-franchise {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ref-units-franchise img {
    max-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-units-card {
    transition: none;
  }
}

