body.easy-location-dialog-open {
  overflow: hidden;
}

/* Keep the homepage comparison inside its grid track at compact desktop widths. */
.results-section .before-after {
  width: 100%;
  max-width: 100%;
  min-height: clamp(240px, 30vw, 430px);
}

.header-actions .location-trigger,
.mobile-nav-actions button,
.hero-phone[data-easy-location-open],
.mobile-sticky-actions button {
  font: inherit;
}

.header-actions .location-trigger {
  background: transparent;
}

.hero-phone[data-easy-location-open] {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 0;
}

.multi-location-section {
  background: var(--deep);
  color: #fff;
}

.multi-location-section .section-title.split > p {
  color: rgba(255, 255, 255, .68);
}

.location-card-grid,
.location-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.location-card,
.location-directory-card {
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 44px;
  position: relative;
}

.location-card--mint,
.location-directory-card:nth-child(2) {
  background: #d9f0eb;
}

.location-number {
  color: rgba(1, 116, 116, .22);
  font: 600 72px/1 var(--display);
  position: absolute;
  right: 36px;
  top: 28px;
}

.location-card h3,
.location-directory-card h2 {
  font-size: clamp(34px, 3.5vw, 48px);
  max-width: 470px;
}

.location-card address,
.location-directory-card address,
.location-detail address {
  color: var(--muted);
  font-style: normal;
  margin-top: 28px;
}

.location-hours {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.location-hours--pending {
  font-style: italic;
}

.location-phone {
  color: var(--deep);
  display: inline-block;
  font: 700 23px var(--display);
  margin: 22px 0 28px;
}

.location-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.location-social {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
}

.location-social a {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--deep);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.location-social svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 20px;
}

.location-social a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-top {
  grid-template-columns: 1.25fr .7fr .7fr 1.55fr;
}

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

.footer-locations .footer-contact {
  min-width: 0;
}

.footer-locations .footer-contact > a,
.footer-locations .footer-contact > p {
  display: block;
  line-height: 1.65;
  margin: 0 0 10px;
}

.footer-locations .location-social {
  border-color: rgba(255, 255, 255, .16);
  margin-top: 16px;
  padding-top: 14px;
}

.footer-locations .location-social a {
  color: #8ce6c5;
  height: 38px;
  width: 38px;
}

.location-index-hero,
.location-detail-hero {
  align-items: center;
  background: linear-gradient(90deg, rgba(1, 79, 79, .96), rgba(1, 116, 116, .72)), url("../../easy-dental-wordpress/public/hero.webp") center 42% / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: 650px;
  padding: 110px max(24px, calc(50vw - 720px));
}

.location-detail-hero--wny {
  background-position: 62% center;
}

.location-index-hero > div,
.location-detail-hero > div {
  max-width: 850px;
}

.location-index-hero p:not(.eyebrow),
.location-detail-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, .76);
  font-size: 19px;
  max-width: 700px;
}

.location-detail-hero > div > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.location-hero-phone {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.location-detail {
  align-items: start;
  display: grid;
  gap: clamp(55px, 8vw, 110px);
  grid-template-columns: .88fr 1.12fr;
}

.location-detail > article {
  background: #fff;
  padding: 38px;
}

.location-detail > div > p:not(.eyebrow),
.location-directory .section-title > p {
  color: var(--muted);
}

.location-service-list {
  display: grid;
  gap: 0 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0;
  padding: 0;
}

.location-service-list li {
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 0;
}

.location-note {
  border-left: 3px solid var(--mint);
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0 5px 18px;
}

.location-switch {
  color: var(--muted);
  font-size: 14px;
}

.location-switch a {
  color: var(--deep);
  font-weight: 800;
}

.location-faq {
  background: var(--porcelain);
  display: grid;
  gap: clamp(45px, 8vw, 110px);
  grid-template-columns: .8fr 1.2fr;
}

.location-faq details {
  border-bottom: 1px solid var(--line);
}

.location-faq summary {
  cursor: pointer;
  font: 600 21px var(--display);
  padding: 22px 0;
}

.location-faq details p {
  color: var(--muted);
  margin-top: 0;
  padding: 0 0 24px;
}

.easy-location-backdrop {
  background: rgba(4, 28, 27, .84);
  display: grid;
  inset: 0;
  padding: 30px;
  place-items: center;
  position: fixed;
  z-index: 10000;
}

.easy-location-backdrop[hidden],
.easy-location-step[hidden] {
  display: none !important;
}

.easy-location-dialog {
  background: var(--ivory);
  border-radius: 28px;
  box-shadow: 0 35px 100px rgba(0, 28, 28, .5);
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 55px;
  position: relative;
  width: min(780px, 100%);
}

.easy-location-close {
  background: #d9f0eb;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 31px;
  height: 48px;
  line-height: 1;
  position: absolute;
  right: 22px;
  top: 22px;
  width: 48px;
}

.easy-location-dialog h2 {
  font-size: clamp(44px, 6vw, 68px);
}

.easy-location-dialog > div > p:not(.eyebrow) {
  color: var(--muted);
}

.easy-location-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.easy-location-options button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px 22px;
  text-align: left;
}

.easy-location-options strong,
.easy-location-options small {
  display: block;
}

.easy-location-options strong {
  font: 600 22px var(--display);
}

.easy-location-options small {
  color: var(--muted);
  font-size: 12px;
}

.easy-location-options b {
  font-size: 28px;
}

.easy-location-back {
  background: transparent;
  border: 0;
  color: var(--deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 28px;
  padding: 0;
}

.easy-location-address {
  background: #d9f0eb;
  border-radius: 20px;
  margin: 25px 0 18px;
  padding: 25px 28px;
}

.easy-location-address p {
  margin: 2px 0;
}

.easy-location-address .easy-location-hours {
  border-top: 1px solid rgba(1, 116, 116, .22);
  font-size: 13px;
  margin-top: 12px;
  padding-top: 10px;
}

.easy-location-actions {
  display: grid;
  gap: 10px;
}

.easy-location-actions > a {
  width: 100%;
}

.easy-location-schedule-note {
  background: #fff3cd;
  color: #654e00;
  font-size: 13px;
  margin: 0;
  padding: 14px 16px;
}

.mobile-sticky-actions button {
  background: #fff;
  border: 0;
  color: var(--deep);
  cursor: pointer;
  font-weight: 800;
}

.mobile-sticky-actions button:last-child {
  background: var(--deep);
  color: #fff;
}

@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-identity,
  .footer-locations {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .location-card-grid,
  .location-directory-grid,
  .location-detail,
  .location-faq,
  .footer-locations {
    grid-template-columns: 1fr;
  }

  .location-card,
  .location-directory-card {
    min-height: 520px;
    padding: 34px 25px;
  }

  .location-detail-hero,
  .location-index-hero {
    min-height: 560px;
    padding: 95px 22px;
  }

  .location-detail > article {
    padding: 30px 24px;
  }

  .location-service-list,
  .easy-location-options {
    grid-template-columns: 1fr;
  }

  .easy-location-backdrop {
    padding: 12px;
  }

  .easy-location-dialog {
    border-radius: 22px;
    padding: 50px 22px 26px;
  }

  .easy-location-close {
    right: 14px;
    top: 14px;
  }
}

@media (max-width: 480px) {
  .location-card-actions .primary-button,
  .location-card-actions .secondary-button {
    width: 100%;
  }

  .easy-location-dialog h2 {
    font-size: 42px;
  }
}
