/* Locations navigation and page layouts */
/* The Blaine storefront is panoramic. Fit it inside its own cover area so the
   entire building is visible, including on phones. */
body[data-scene="blaine"] .site-background {
  background-image: radial-gradient(ellipse at top, #302318, #100d0a 70%);
}

body[data-scene="blaine"] .hero.page-hero:has(.blaine-hero-cover) {
  padding: 0 0 clamp(34px, 5vw, 64px);
}

body[data-scene="blaine"] .hero.page-hero:has(.blaine-hero-cover)::before {
  display: none;
}

.blaine-hero-cover {
  position: relative;
  background: #15110e;
}

.blaine-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 620px);
  object-fit: contain;
  object-position: center;
}

body[data-scene="blaine"] .hero.page-hero:has(.blaine-hero-cover) > .wrap {
  padding-top: clamp(25px, 4vw, 48px);
}

header .locations-tab:is(.locations-section-active, [aria-current="page"]),
footer .locations-tab[aria-current="page"] {
  color: #ffa373;
}

header .locations-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.locations-new {
  padding: 2px 4px;
  border-radius: 3px;
  background: #f18249;
  color: #130e0c;
  font: 700 .56rem/1.05 Roboto, sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

header .locations-tab:focus-visible,
footer .locations-tab:focus-visible,
.locations-main a:focus-visible {
  outline: 2px solid #ffad7f;
  outline-offset: 4px;
  border-radius: 3px;
}

:is(html[data-shop-location="blaine"], body[data-shop-location="blaine"]) [data-maplewood-only] {
  display: none !important;
}

.location-context {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #473329;
  background: #191410;
  color: #ded1c6;
  font: .86rem/1.3 Roboto, sans-serif;
}

.location-context-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 37px;
  padding-block: 5px;
}

.location-context strong {
  color: #ffd5ba;
}

.location-context .location-context-status {
  padding: 3px 8px;
  font-size: .68rem;
}

.location-context .location-context-status[hidden] {
  display: none;
}

:is(html[data-shop-location="blaine"], body[data-shop-location="blaine"])
  .brand-transition-lockup :is(.brand-mark-legacy, .brand-handoff, .brand-transition-note) {
  display: none;
}

:is(html[data-shop-location="blaine"], body[data-shop-location="blaine"])
  .nav-logo.brand-transition-lockup {
  --mark: 91px;
  padding: 4px 14px 7px;
}

.switch-location {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vh, 30px);
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #ce774a;
  border-radius: 999px;
  background: #1c1511;
  color: #fff2e8;
  font-family: Oswald, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px #0007;
}

.switch-location:hover {
  border-color: #ffa373;
  background: #312219;
}

.switch-location:focus-visible {
  outline: 2px solid #ffad7f;
  outline-offset: 4px;
}

.switch-location-icon {
  color: #ffad7f;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
}

.switch-location-label {
  display: grid;
  gap: 3px;
  line-height: 1.1;
  text-align: left;
}

.switch-location-label > span {
  color: #dec2ae;
  font: 600 .64rem/1.1 Roboto, sans-serif;
  letter-spacing: .04em;
}

body:has(elevenlabs-convai) .switch-location {
  bottom: 152px;
}

body:has(#cookieConsent) .switch-location {
  bottom: 152px;
}

html.dz-ai-open .switch-location {
  visibility: hidden;
}

/* The switch link lives in the "Viewing <shop>" bar under the header instead
   of floating over page content (it covered the hero copy on phones). A page
   that still has it at the end of <body> gets it moved here by the picker
   script; without JS such a page keeps the floating link above. */
.location-context-inner {
  flex-wrap: wrap;
  row-gap: 0;
  min-height: 44px;
  padding-block: 0;
}

.location-context-inner > p {
  margin: 0;
}

.location-context .switch-location {
  position: static;
  z-index: auto;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 0 6px 0 14px;
  border: 0;
  border-left: 1px solid #473329;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #ffb78f;
  font: 600 .86rem/1 Roboto, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* The chat sheet only covers the page on phones; keep the docked link visible. */
html.dz-ai-open .location-context .switch-location {
  visibility: visible;
}

/* Phones: a short "Switch" label keeps the bar on one line; if it still wraps
   (Blaine's Coming Soon pill at 320px), there is no divider left hanging. */
@media (max-width: 440px) {
  .location-context-inner {
    column-gap: 6px;
  }

  .location-context .switch-location {
    padding-left: 8px;
    border-left: 0;
  }

  .location-context .switch-location-more {
    display: none;
  }
}

.location-context .switch-location:hover {
  background: none;
  color: #ffd5ba;
}

.location-context .switch-location:hover .switch-location-label > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-context .switch-location:focus-visible {
  outline: 2px solid #ffad7f;
  outline-offset: -3px;
  border-radius: 4px;
}

.location-context .switch-location-icon {
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

.location-context .switch-location-label strong {
  display: none;
}

.location-context .switch-location-label > span {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

@media (min-width: 1025px) and (max-width: 1240px) {
  header:has(.brand-transition-lockup) .nav {
    column-gap: 10px;
  }

  header:has(.brand-transition-lockup) :is(.nav-left, .nav-right) {
    gap: 10px;
    padding-inline: 4px;
  }

  html:not([data-shop-location="blaine"]) header .nav-logo.brand-transition-lockup {
    --mark: clamp(54px, calc(9.3vw - 41px), 74px);
    gap: 8px;
    padding-inline: 6px;
  }

  header .brand-transition-lockup .brand-handoff {
    min-width: 45px;
  }

  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service] {
    flex-shrink: 0;
    padding-inline: 9px;
    letter-spacing: .06em;
  }
}

@media (max-width: 768px) {
  header .mobile-top-nav:has(.locations-tab) {
    flex-wrap: wrap;
    column-gap: clamp(9px, 2.2vw, 18px);
    row-gap: 0;
    padding-block: 4px;
  }

  header .mobile-top-nav .locations-tab {
    padding-block: 9px;
  }

  .mobile-bottom-bar [data-schedule-service] > span {
    max-width: 100%;
    text-wrap: balance;
  }

  .switch-location {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(79px + env(safe-area-inset-bottom, 0px));
    min-height: 54px;
  }

  body:has(elevenlabs-convai) .switch-location {
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
  }

  body:has(#cookieConsent) .switch-location {
    bottom: calc(185px + env(safe-area-inset-bottom, 0px));
  }
}

.schedule-shop-address {
  margin-block: 1px 10px;
  font-weight: 600;
}

.tekmetric-booking-modal.has-booking-location {
  --booking-location-height: 60px;
}

.booking-location-banner {
  position: absolute;
  z-index: 10000;
  inset: 0 0 auto;
  display: grid;
  align-content: center;
  height: var(--booking-location-height);
  padding: 7px 14px;
  background: #23170f;
  border-bottom: 2px solid #e46b2c;
  color: #fff0e4;
  font: .93rem/1.3 Roboto, sans-serif;
  text-align: center;
}

.booking-location-banner > span {
  margin-top: 3px;
  color: #f0cdb8;
  font-size: .79rem;
}

.has-booking-location #tekmetricBookingIframe {
  top: var(--booking-location-height);
  height: calc(100% - var(--booking-location-height));
}

@media (max-width: 640px) {
  .tekmetric-booking-modal.has-booking-location {
    --booking-location-height: calc(60px + env(safe-area-inset-top, 0px));
  }

  .booking-location-banner {
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
  }

  .has-booking-location #tekmetricBookingIframe {
    height: calc(100svh - var(--booking-location-height));
  }
}

.locations-main {
  --locations-muted: #cfbfb2;
  --locations-line: #403229;
  --locations-panel: #1c1713;
  position: relative;
  background: radial-gradient(ellipse at 90% 0%, #251912, transparent 54%), #100d0b;
  color: #f4ece4;
  padding-bottom: clamp(40px, 7vw, 90px);
}

.locations-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.locations-intro {
  padding-block: clamp(34px, 6vw, 72px) clamp(24px, 4vw, 38px);
}

.locations-title,
.locations-main h2 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
}

.locations-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: .015em;
}

.locations-main h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 600;
}

.locations-lead {
  max-width: 58ch;
  color: var(--locations-muted);
  margin-top: 15px;
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.55;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--locations-line);
  border-radius: 12px;
  background: var(--locations-panel);
}

.shop-card-media {
  aspect-ratio: 2.5;
  overflow: hidden;
  border-bottom: 1px solid var(--locations-line);
}

.shop-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.shop-card-photo-maplewood {
  object-position: center 47%;
}

.shop-card-photo:not(.shop-card-photo-maplewood) {
  object-position: center 33%;
}

.shop-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: clamp(18px, 3vw, 28px);
}

.shop-card-heading {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.shop-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #5f422f;
  border-radius: 999px;
  padding: 4px 11px;
  color: #ffbb95;
  background: #322217;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-status::before {
  content: "";
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.shop-status-open {
  color: #b5e3c0;
  background: #1c2c21;
  border-color: #3c5945;
}

.shop-address {
  color: #f4ece4;
  font-style: normal;
  line-height: 1.45;
}

.shop-note {
  color: var(--locations-muted);
  line-height: 1.55;
}

.shop-note a {
  color: #ffb78f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-card-content .location-actions {
  margin-top: auto;
  padding-top: 3px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.locations-main .location-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  text-align: center;
}

.shop-card .location-actions .btn {
  padding-inline: 16px;
  font-size: .9rem;
  letter-spacing: .1em;
}

.locations-main .location-actions .btn-primary {
  background: #e46b2c;
  border-color: #e46b2c;
  color: #13100e;
}

.locations-main .location-actions .btn-primary:hover {
  background: #ff915c;
  border-color: #ff915c;
}

.locations-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #ffb78f;
  font-size: .94rem;
}

.locations-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .locations-container {
    width: calc(100% - 32px);
  }

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

  .shop-card-media {
    aspect-ratio: 2.15;
  }
}

@media (max-width: 380px) {
  .locations-main .location-actions .btn {
    flex-grow: 1;
  }
}

/* A small location disclosure with the site's existing navigation styling. */
.location-dropdown {
  position: relative;
  flex: none;
}

.location-dropdown[open] {
  z-index: 130;
}

.location-dropdown > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.location-dropdown > summary::-webkit-details-marker {
  display: none;
}

.location-dropdown > summary::marker {
  content: "";
}

.location-dropdown-caret {
  flex: none;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.location-dropdown[open] > summary .location-dropdown-caret {
  transform: translateY(1px) rotate(225deg);
}

.location-dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  display: grid;
  min-width: 210px;
  padding: 5px;
  border: 1px solid #473329;
  border-radius: 6px;
  background: #191410;
  color: #e9e4d9;
  box-shadow: 0 8px 21px #0008;
}

.location-dropdown:not([open]) > .location-dropdown-options {
  display: none;
}

.location-dropdown .location-dropdown-options > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 3px;
  color: #e9e4d9;
  font: 500 .9rem/1.2 Roboto, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.location-dropdown .location-dropdown-options > a[aria-current="true"] {
  color: #ffa373;
}

.location-dropdown .location-dropdown-options > a:hover,
.location-dropdown .location-dropdown-options > a:focus-visible {
  background: #312219;
  color: #ffd5ba;
}

.location-dropdown .location-dropdown-options > a:focus-visible {
  outline: 2px solid #ffad7f;
  outline-offset: -2px;
}

.location-dropdown-options > a > span {
  color: #ffb78f;
  font-size: .72rem;
}

.location-context:has(.location-dropdown[open]) {
  z-index: 102;
}

.location-dropdown-switch > .location-dropdown-options {
  right: 0;
  left: auto;
}

.mobile-nav .location-dropdown-options {
  position: static;
  margin-top: 4px;
  box-shadow: none;
}

@media (max-width: 768px) {
  header .mobile-top-nav .location-dropdown > summary {
    color: var(--ink2);
    font: 600 .7rem/1.2 Oswald, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  header .mobile-top-nav .location-dropdown > summary:hover,
  header .mobile-top-nav .location-dropdown[open] > summary {
    color: #ffa373;
  }
}

@media (max-width: 440px) {
  .location-context-inner {
    position: relative;
  }

  .location-context .location-dropdown-switch {
    position: static;
  }

  .location-context .location-dropdown-switch > .location-dropdown-options {
    top: 100%;
    right: 0;
  }
}

body[data-shop-location="maplewood"][data-scene="home"] {
  --scene-image: url("/_dz/locations-v1/maplewood.jpg");
}
@media (max-width: 768px) {
  body[data-shop-location="maplewood"][data-scene="home"] .site-background {
    background-position: center, center, 70% 42%;
  }
}

/* The longer booking label must never shrink below its text width, even
   while the site's original webfonts are still loading. */
@media (min-width: 1025px) {
  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service] {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: clamp(8px, .9vw, 13px);
    letter-spacing: .04em;
  }
  header:has(.brand-transition-lockup) .nav-right {
    gap: clamp(7px, 1.1vw, 20px);
  }
}
:is(html[data-shop-location="blaine"], body[data-shop-location="blaine"])
  .coupon:has(a[data-maplewood-only]) {
  display: none !important;
}

/* The original header uses center-packed navigation. Leave space for the
   existing Rewards, Coupons and Contact links when a fallback font is wider. */
@media (min-width: 1025px) {
  header:has(.brand-transition-lockup) .header-inner > .wrap {
    width: min(1360px, calc(100% - 48px));
  }
  header:has(.brand-transition-lockup) .nav-right {
    gap: clamp(6px, .65vw, 12px);
  }
  header:has(.brand-transition-lockup) .nav-right .nav-link,
  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service] {
    font-size: .80rem;
    letter-spacing: .025em;
  }
}
@media (min-width: 1025px) and (max-width: 1160px) {
  header:has(.brand-transition-lockup) .nav-right .nav-link,
  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service],
  header:has(.brand-transition-lockup) .nav-left .nav-link {
    font-size: .72rem;
    letter-spacing: .02em;
  }
  header:has(.brand-transition-lockup) .nav-left {
    gap: 8px;
  }
  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service] {
    padding-inline: 8px;
  }
}
@media (min-width: 1025px) and (max-width: 1080px) {
  header:has(.brand-transition-lockup) .nav-right {
    gap: 5px;
  }
  header:has(.brand-transition-lockup) .nav-right .nav-link,
  header:has(.brand-transition-lockup) .nav-right .nav-link-btn[data-schedule-service] {
    font-size: .70rem;
  }
}
