@font-face {
  font-family: "Cane's DM Sans";
  src: url("/assets/reference/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cane's DM Sans";
  src: url("/assets/reference/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berthold City";
  src: url("/assets/reference/Berthold-City-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --locator-red: #d71c2e;
  --locator-red-dark: #940513;
  --locator-charcoal: #32393d;
  --locator-ink: #242424;
  --locator-muted: #484b53;
  --locator-border: #bcc1d3;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.locator-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--locator-ink);
  background: #fff;
  font-family: "Cane's DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.locator-desktop-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 75px;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 3px 3px rgba(0, 0, 0, .2);
}

.locator-desktop-logo { position: relative; display: block; width: 155px; height: 75px; margin-right: 26px; }
.locator-desktop-logo img { position: absolute; top: -26px; left: 10px; display: block; width: 132px; height: 132px; object-fit: contain; }

.locator-desktop-header nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.45vw, 45px);
  white-space: nowrap;
}

.locator-desktop-header nav a { font-size: 14px; font-weight: 700; }
.locator-desktop-header nav a:hover { color: var(--locator-red); }

.locator-order-button {
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  background: var(--locator-red);
  font-size: 14px;
  font-weight: 700;
}
.locator-order-button:hover { background: var(--locator-red-dark); }
.locator-mobile-header { display: none; }

.locator-main { width: 100%; margin-top: 75px; }
.locator-section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 75px);
  min-height: 570px;
  border-bottom: 1px solid var(--locator-border);
}

.locator-search-bar {
  position: relative;
  z-index: 3;
  width: 40%;
  min-width: 405px;
  padding: 25px;
  color: #fff;
  background: var(--locator-charcoal);
}

.locator-search-bar h1,
.locator-empty h2,
.locator-legend h2 {
  margin: 0;
  font-family: "Berthold City", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.locator-search-bar h1 { margin-bottom: 27px; font-size: 54px; line-height: 1.18; }
.locator-search-label { display: block; margin-bottom: 15px; font-size: 14px; }
.locator-search-label sup { font-size: .55em; }
.locator-search-field { position: relative; }

.locator-search-input {
  width: 100%;
  padding: 0 42px 8px 0;
  border: 0;
  border-bottom: 1px solid #fff;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 22px;
}
.locator-search-input::placeholder { color: rgba(255, 255, 255, .72); }
.locator-search-input:focus { border-bottom-color: #ffc72a; }

.locator-geolocate {
  position: absolute;
  top: -2px;
  right: 0;
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 0;
  color: #fff;
  background: transparent;
}
.locator-geolocate:hover { color: #ffc72a; }
.locator-error { min-height: 0; margin: 0; color: #ffc72a; font-size: 13px; font-weight: 700; }
.locator-error:not(:empty) { padding-top: 9px; }

.locator-suggestions {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 25px;
  left: 25px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .3);
}
.locator-suggestions:empty { display: none; }
.locator-suggestion { display: block; width: 100%; padding: 10px 13px; border: 0; border-bottom: 1px solid #e0e0e0; color: var(--locator-ink); background: #fff; text-align: left; font-size: 13px; }
.locator-suggestion:hover { color: #fff; background: var(--locator-red); }

.locator-locations-container { position: absolute; inset: 0; }
.locator-results {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  width: 40%;
  height: calc(100% - 225px);
  min-width: 405px;
  background: #f6f6f6;
}

.locator-result-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 10px; list-style: none; counter-reset: locator-result; }
.locator-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 159px;
  padding: 15px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  color: var(--locator-ink);
  background: #fff;
  box-shadow: inset 0 0 0 .5px var(--locator-muted);
  cursor: pointer;
  counter-increment: locator-result;
  text-align: left;
}
.locator-result-card:hover { background: #f4f4fa; }
.locator-result-card.is-selected { box-shadow: inset 0 0 0 2px var(--locator-ink); }
.locator-result-card::before { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 50%; content: counter(locator-result); color: #fff; background: var(--locator-red); font-size: 14px; font-weight: 700; }
.locator-card-header { position: absolute; top: 16px; right: 15px; left: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-left: 31px; }
.locator-card-name { max-width: calc(100% - 72px); margin: 0; font-family: "Berthold City", Impact, sans-serif; font-size: 18px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.locator-card-distance { margin: 0; color: var(--locator-red); font-size: 14px; font-weight: 700; white-space: nowrap; }
.locator-card-details { margin-top: 39px; font-size: 14px; line-height: 1.25; }
.locator-card-details p { margin: 0 0 5px; }
.locator-status { font-weight: 700; }
.locator-card-actions { display: flex; gap: 6px; margin-top: auto; }
.locator-card-actions a { flex: 1; padding: 10px 8px; border: 2px solid var(--locator-red); border-radius: 6px; color: var(--locator-red); font-size: 13px; font-weight: 700; text-align: center; }
.locator-card-actions a:first-child { color: #fff; background: var(--locator-red); }
.locator-card-actions a:hover { border-color: var(--locator-red-dark); color: #fff; background: var(--locator-red-dark); }

.locator-empty { max-width: 370px; padding: 40px; }
.locator-empty-slashes { display: block; margin-bottom: 12px; color: #ffc72a; font-size: 15px; font-weight: 700; letter-spacing: -2px; }
.locator-empty h2 { margin-bottom: 10px; font-size: 31px; line-height: 1; }
.locator-empty p { margin: 0; font-size: 14px; font-weight: 700; }
.locator-results.has-results .locator-empty { display: none; }

.locator-map-wrapper { position: absolute; top: 0; right: 0; width: 60%; height: 100%; background: #e5e3df; }
.locator-map { width: 100%; height: 100%; }
.locator-map-placeholder { position: absolute; inset: 0; z-index: 0; background: #e5e3df; transition: opacity .2s ease; }
.locator-map.is-ready + .locator-map-placeholder { opacity: 0; pointer-events: none; }

.locator-legend { position: absolute; z-index: 4; top: 20px; left: 20px; width: 130px; padding: 10px; border-radius: 5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); font-size: 14px; }
.locator-legend h2 { margin-bottom: 10px; font-size: 14px; line-height: 1; }
.locator-legend div { display: flex; align-items: center; margin-bottom: 5px; }
.locator-legend div:last-child { margin-bottom: 0; }
.locator-legend-dot { width: 14px; height: 14px; margin-right: 7px; border-radius: 50%; }
.locator-legend-dot.is-open { background: var(--locator-red); }
.locator-legend-dot.is-closed { background: var(--locator-muted); }
.locator-legend-dot.is-soon { background: #ffc72a; }

.locator-marker { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--locator-red); font-family: "Cane's DM Sans", Arial, sans-serif; font-size: 14px; font-weight: 700; }
.locator-marker.is-closed { background: var(--locator-muted); }
.locator-marker.is-coming-soon { color: var(--locator-ink); background: #ffc72a; }
.locator-marker.is-selected { outline: 3px solid var(--locator-ink); outline-offset: 2px; }
.locator-mobile-toggle { display: none; }

@media (min-width: 62em) {
  .locator-section { height: calc(100vh - 128px); }
  .locator-search-bar { width: 40vw; height: 306px; }
  .locator-results { top: 316px; width: 40vw; height: auto; }
  .locator-map-wrapper { width: 60vw; }
}

@media (max-width: 61.99em) {
  .locator-desktop-header { display: none; }
  .locator-mobile-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 6px 32px; background: #fff; box-shadow: 0 4px 7px rgba(0,0,0,.5); }
.locator-mobile-logo { position: relative; display: block; width: 100px; height: 100px; margin-top: 0; }
.locator-mobile-logo img { display: block; width: 100px; height: 100px; object-fit: contain; }
  .locator-mobile-map-trigger { display: grid; place-items: center; width: 37px; height: 45px; padding: 0; border: 0; color: var(--locator-red); background: transparent; }
  .locator-main { margin-top: 0; }
  .locator-section { height: calc(100svh - 128px); min-height: 630px; }
  .locator-search-bar { width: 100%; min-width: 0; padding: 8px 15px 12px; }
  .locator-search-bar h1 { margin-bottom: 8px; font-size: 25px; line-height: 1; }
  .locator-search-label { margin-bottom: 8px; font-size: 12px; }
  .locator-search-input { padding-bottom: 8px; font-size: 13px; }
  .locator-geolocate { top: -5px; right: -4px; transform: scale(.73); }
  .locator-suggestions { top: calc(100% + 2px); right: 15px; left: 15px; }
  .locator-locations-container { top: 129px; }
  .locator-results { width: 100%; min-width: 0; height: 100%; }
  .locator-map-wrapper { width: 100%; height: 100%; }
  .locator-section.is-map-open .locator-results { display: none; }
  .locator-section:not(.is-map-open) .locator-map-wrapper { display: none; }
  .locator-result-list { gap: 0; padding: 0; }
  .locator-result-card { min-height: 172px; border-radius: 0; box-shadow: inset 0 -1px #ccc; }
  .locator-result-card.is-selected { box-shadow: inset 0 -1px #ccc; }
  .locator-empty { padding: 26px 25px; }
  .locator-empty h2 { font-size: 23px; }
  .locator-map-wrapper { position: absolute; inset: 0; }
  .locator-legend { top: 10px; left: 10px; transform: scale(.92); transform-origin: top left; }
  .locator-mobile-toggle { position: absolute; z-index: 10; right: 0; bottom: 0; left: 0; display: block; height: 0; }
  .locator-mobile-toggle button { position: absolute; right: 0; bottom: 10px; left: 0; width: fit-content; margin: 0 auto; padding: 10px 18px; border: 0; border-radius: 4px; color: var(--locator-ink); background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.25); font-size: 14px; }
  .locator-section.is-map-open .locator-mobile-toggle button { font-size: 0; }
  .locator-section.is-map-open .locator-mobile-toggle button::before { content: "List"; font-size: 14px; }
}

@media (max-width: 360px) {
  .locator-mobile-header { padding-right: 20px; padding-left: 20px; }
  .locator-card-actions a { font-size: 12px; }
}

/* Content that follows the locator matches the reference search page. */
.locations-highlights {
  padding: 48px clamp(25px, 8vw, 128px) 80px;
  background: #fff;
}

.locations-eyebrow {
  width: 52px;
  margin: 0 auto 14px;
  overflow: hidden;
  color: #ffc72a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -2px;
  white-space: nowrap;
}

.locations-highlights > h2,
.locations-gear h2,
.locations-footer h2 {
  margin: 0;
  font-family: "Berthold City", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.locations-highlights > h2 {
  margin-bottom: 42px;
  color: #242424;
  font-size: clamp(36px, 3.35vw, 54px);
  line-height: 1.1;
  text-align: center;
}

.locations-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1054px;
  margin: 0 auto;
}

.locations-highlight-card {
  display: block;
  color: #242424;
}

.locations-highlight-image {
  position: relative;
  display: block;
  aspect-ratio: .823;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.locations-highlight-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locations-category {
  display: inline-block;
  margin-top: -34px;
  margin-left: 15px;
  position: relative;
  padding: 3px 12px;
  border: 1px solid #ffc72a;
  border-radius: 16px;
  color: #fff;
  background: rgba(36, 36, 36, .8);
  font-size: 12px;
  line-height: 18px;
}

.locations-highlight-card strong,
.locations-highlight-card small {
  display: block;
}

.locations-highlight-card strong {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.3;
}

.locations-highlight-card small {
  margin-top: 4px;
  font-size: 14px;
}

.locations-gear {
  position: relative;
  min-height: min(50vw, 720px);
  overflow: hidden;
  background: #f6f2ec;
}

.locations-gear > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locations-gear::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .6) 34%, rgba(255, 255, 255, 0) 63%);
}

.locations-gear-content {
  position: relative;
  z-index: 1;
  width: min(48%, 690px);
  padding: clamp(60px, 11vw, 180px) 0 clamp(60px, 11vw, 180px) clamp(48px, 5.6vw, 80px);
}

.locations-gear h2 {
  font-size: clamp(38px, 4.15vw, 64px);
  line-height: 1.22;
}

.locations-gear a {
  display: inline-block;
  margin-top: 38px;
  padding: 15px 25px;
  border: 2px solid var(--locator-red);
  border-radius: 12px;
  color: var(--locator-red);
  font-size: 16px;
  font-weight: 700;
}

.locations-gear a:hover { color: #fff; background: var(--locator-red-dark); border-color: var(--locator-red-dark); }

.locations-footer {
  padding: 80px clamp(48px, 5.6vw, 80px) 28px;
  color: #fff;
  background: #242424;
}

.locations-footer-main {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
}

.locations-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-right: 36px;
  border-right: 1px solid #484b53;
}

.locations-footer-brand img { width: 132px; height: 94px; object-fit: contain; }
.locations-socials { display: flex; gap: 22px; font-size: 21px; line-height: 1; }

.locations-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.locations-footer-links section { display: flex; flex-direction: column; gap: 14px; }
.locations-footer-links h2,
.locations-footer-toggle { margin-bottom: 8px; font-family: "Cane's DM Sans", Arial, sans-serif; font-size: 16px; text-transform: none; }
.locations-footer-toggle { padding: 0; border: 0; color: #fff; background: transparent; font-weight: 700; text-align: left; }
.locations-footer-links a { color: #fff; font-size: 14px; line-height: 1.25; }
.locations-footer a:hover { text-decoration: underline; }

.locations-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 80px auto 26px;
}

.locations-footer-promos section {
  position: relative;
  display: flex;
  min-height: 182px;
  padding: 30px 40% 26px 40px;
  overflow: hidden;
  background: #32393d;
}

.locations-footer-promos h2 { font-size: 24px; line-height: 1; }
.locations-footer-promos p { margin: 18px 0; font-size: 13px; line-height: 1.4; }
.locations-footer-promos a { display: block; padding: 12px; border: 2px solid #fff; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.locations-footer-promos img { position: absolute; right: 16px; bottom: 8px; width: 34%; height: calc(100% - 16px); object-fit: contain; }

.locations-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.locations-footer-legal a { color: #d5d5dc; font-size: 11px; }

@media (max-width: 61.99em) {
  .locator-section { height: calc(100svh - 128px); min-height: 0; }
  .locator-search-bar { flex: 0 0 161px; }
  .locator-locations-container { top: 161px; bottom: 0; height: auto; }
  .locator-section:not(.is-map-open) .locator-map-wrapper { display: none; }
  .locator-section.is-map-open .locator-map-wrapper { display: block; }
  .locator-section.is-map-open .locator-results { display: none; }

  .locations-highlights { padding: 34px 32px 62px; }
  .locations-eyebrow { margin-left: 8px; margin-bottom: 12px; }
  .locations-highlights > h2 { margin-bottom: 40px; font-size: 31px; text-align: left; }
  .locations-highlight-grid { display: block; }
  .locations-highlight-card { margin-bottom: 44px; }
  .locations-highlight-image { aspect-ratio: .823; }
  .locations-highlight-card strong { font-size: 18px; }

  .locations-gear { min-height: 690px; }
  .locations-gear > img { top: 0; height: 310px; object-position: 58% 50%; }
  .locations-gear::after { background: linear-gradient(180deg, rgba(255,255,255,.33) 0 310px, #fff 310px); }
  .locations-gear-content { width: 100%; padding: 36px 25px; padding-top: 300px; }
  .locations-gear h2 { font-size: 48px; line-height: 1.28; }
  .locations-gear a { margin-top: 28px; padding: 0; border: 0; border-radius: 0; font-size: 16px; }

  .locations-footer { padding: 70px 25px 76px; }
  .locations-footer-main { display: block; }
  .locations-footer-brand { align-items: center; padding: 0 0 50px; border: 0; }
  .locations-footer-brand img { width: 150px; height: 150px; margin-top: -28px; margin-bottom: -28px; }
  .locations-socials { display: none; }
  .locations-footer-links { display: block; }
  .locations-footer-links section { position: relative; display: none; padding: 24px 20px; border-top: 1px solid #484b53; }
  .locations-footer-links section:first-child,
  .locations-footer-links section:nth-child(2),
  .locations-footer-links section:nth-child(3),
  .locations-footer-links section:nth-child(4),
  .locations-footer-links section:nth-child(5) { display: block; min-height: 68px; }
  .locations-footer-links section h2,
  .locations-footer-toggle { margin: 0; font-size: 18px; }
  .locations-footer-toggle { width: 100%; }
  .locations-footer-toggle::after { position: absolute; right: 18px; content: '+'; }
  .locations-footer-links section a { display: none; }
  .locations-footer-links section:last-child { border-bottom: 1px solid #484b53; }
  .locations-footer-links section.is-open a { display: block; margin-top: 14px; }
  .locations-footer-links section.is-open .locations-footer-toggle::after { content: '-'; }

  .locations-footer-promos { display: block; margin: 48px 0 42px; }
  .locations-footer-promos section { min-height: 210px; margin-bottom: 26px; padding: 28px 25px; }
  .locations-footer-promos h2 { font-size: 24px; }
  .locations-footer-promos p { max-width: 100%; font-size: 14px; }
  .locations-footer-promos img { display: none; }
  .locations-footer-promos a { font-size: 14px; }
  .locations-footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 25px; }
  .locations-footer-legal a { font-size: 12px; }
}
