/* Location landing page — scoped additions on V2 longform */

/* No contents rail on location pages — use full longform width */
@media (min-width: 1024px) {
  body.page-template-template-location-php {
    --longform-wrap-max: 1280px;
  }

  body.page-template-template-location-php .longform__body > section {
    --longform-side: max(var(--gutter), (100vw - var(--longform-wrap-max)) / 2);
    padding-left: var(--longform-side);
    padding-right: var(--longform-side);
  }
}

.location-template .longform__body > section .reveal {
  max-width: var(--longform-wrap-max, 1280px);
  margin-inline: auto;
}

.location-template .longform__body > section {
  padding-top: clamp(56px, 8vh, 88px);
  padding-bottom: clamp(56px, 8vh, 88px);
}

/* Section rhythm: cream → white → grey → white → grey → cream → white (then dark CTA) */

.location-template .longform__body > section.location-gallery-section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

/* Hero status badge */
.location-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
}
.location-status__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 210, 108, 0.55);
  color: var(--gold, #ffd26c);
  background: rgba(0, 0, 0, 0.22);
}
.location-status__badge--now_open {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.location-hero .hero__bg {
  background-position: var(--hero-focal, center center);
}

.location-intro .split__media {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  background: var(--olive-dark, #3d4235);
}

.location-intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

@media (max-width: 700px) {
  .location-intro .split__media {
    min-height: 0;
  }
}

/* Match hero bullet size to hero subtitle */
.location-hero .hero__ticks li {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Intro — single full-width copy block */
.location-intro__copy {
  max-width: none;
  margin-top: clamp(18px, 3vh, 28px);
}

.location-intro__copy p {
  max-width: none;
}

/* Intro split removed — legacy rules kept harmless */
.location-template .split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-intro__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 4px);
  object-fit: cover;
}

/* Services */
.location-services {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .location-services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .location-services {
    grid-template-columns: repeat(3, 1fr);
  }
}
.location-service h3,
.location-service__desc,
.location-service__link a {
  color: #fff;
}
.location-service__desc {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}
.location-service__link {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.location-service__link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-service__link a:hover,
.location-service__link a:focus {
  color: #fff;
}

/* Location details */
.location-details__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(24px, 4vh, 36px);
}
@media (min-width: 900px) {
  .location-details__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
  }
}
.location-details__meta {
  margin: clamp(20px, 3vh, 28px) 0 0;
  padding: 0;
}
.location-details__row {
  display: grid;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(69, 72, 59, 0.12);
}
@media (min-width: 520px) {
  .location-details__row {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
  }
}
.location-details__row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-mid, #767a4c);
}
.location-details__row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}
.location-details__row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-details__block {
  margin-top: clamp(24px, 3vh, 32px);
}

.location-details__block .prose h3,
.location-details__block .prose h4 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--olive, #45483b);
}

.location-details__block .prose h3:not(:first-child),
.location-details__block .prose h4:not(:first-child) {
  margin-top: 1.5em;
}
.location-details__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 4px);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Privacy-conscious map */
.location-map {
  margin-top: clamp(20px, 3vh, 28px);
  border: 1px solid rgba(69, 72, 59, 0.14);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.location-map__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--grey, #eceae4);
}
.location-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.location-gallery-section {
  padding-inline: 0;
}

.location-gallery {
  display: flex;
  gap: 16px;
  margin-top: clamp(24px, 4vh, 40px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.location-gallery::-webkit-scrollbar {
  display: none;
}

.location-gallery__item,
.location-gallery__item--main {
  position: relative;
  flex: 0 0 calc((100% - 16px) / 2.15);
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius, 14px);
  background: var(--grey, #eceae4);
  aspect-ratio: 4 / 3;
  min-height: 0;
  scroll-snap-align: start;
}

.location-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

@media (max-width: 699px) {
  .location-gallery__item,
  .location-gallery__item--main {
    flex-basis: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-gallery {
    scroll-behavior: auto;
  }
}

.location-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}

/* Facilities */
.location-facilities__intro {
  margin-top: clamp(18px, 3vh, 28px);
  max-width: 46em;
}

.location-facilities__grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(28px, 4vh, 40px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .location-facilities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .location-facilities__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.location-facility {
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid rgba(69, 72, 59, 0.12);
  border-radius: var(--radius, 4px);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.location-facility:hover {
  border-color: rgba(255, 210, 108, 0.55);
  transform: translateY(-2px);
}

.location-facility__icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  object-fit: contain;
  opacity: 0.65;
}

.location-facility__mark {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--gold, #ffd26c);
}

.location-facility__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.location-facility__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--olive-mid, #767a4c);
}

/* Team */
.location-team__intro {
  margin: clamp(16px, 2vh, 24px) 0 0;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--olive-mid, #767a4c);
}

.location-team__grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  margin-top: clamp(28px, 4vh, 40px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.location-team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 3vw, 28px) clamp(20px, 2.5vw, 24px);
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(69, 72, 59, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-team-card:hover,
.location-team-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  outline: none;
}

.location-team-card__photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #ece8e0;
}

.location-team-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-team-card__name {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--olive-dark, #2f3128);
}

.location-team-card__role {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--olive-mid, #767a4c);
}

.location-team-card__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: var(--olive-mid, #767a4c);
}

/* Gallery legacy block below replaced above */
.location-gallery-section.gallery {
  content-visibility: visible;
}

/* Full-width prose on location pages */
body.page-template-template-location-php .longform .prose,
body.page-template-template-location-php .longform .prose ul,
body.page-template-template-location-php main.location-template .longform .prose,
body.page-template-template-location-php main.location-template .longform .prose ul {
  max-width: none;
}

.location-template .card {
  padding: clamp(28px, 3.5vw, 36px);
}

/* Longform wrapper — sections carry their own backgrounds; no cream bleed */
body.page-template-template-location-php .longform {
  background: transparent;
  padding-bottom: 0;
}

/* FAQs use the homepage accordion: narrow column, olive-mid question, gold plus. */
body.page-template-template-location-php .location-faqs .faq-home {
  max-width: 820px !important;
  margin-inline: auto;
}

/* Final CTA — extra breathing room on location pages */
body.page-template-template-location-php .close {
  padding: clamp(96px, 15vh, 140px) var(--nav-gutter, 24px);
}

body.page-template-template-location-php .close__inner {
  max-width: min(880px, 100%);
}

body.page-template-template-location-php .close .section-copy {
  max-width: 42em;
}
body.page-template-template-location-php.delamere-v2-parallax {
  padding-bottom: 0 !important;
}
body.page-template-template-location-php.delamere-v2-parallax .delamere-mobile-sticky-cta {
  display: none !important;
}
