/* tokens: site-design-tokens.css */

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  min-width: 0;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--font-ui);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: relative;
  z-index: 2;
  color: var(--navy);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.62), transparent 24rem),
    linear-gradient(180deg, #fffaf3 0%, #f7f1e8 100%);
  border-bottom: 1px solid rgba(17, 24, 61, 0.14);
  box-shadow: 0 8px 26px rgba(17, 24, 61, 0.06);
}

.trial-header-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(12px, 1.8vw, 18px) 0 clamp(16px, 2.4vw, 24px);
}

.site-header .top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(12px, 1.8vw, 18px);
}

.site-header .top-bar > .back-nav-button {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.site-header .top-bar > .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.site-header .top-bar > .market-link,
.site-header .top-bar > .market-switcher,
.site-header .top-bar > .market-header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: var(--navy);
  text-decoration: none;
}

.brand-text {
  display: inline-block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: 0;
  line-height: 1;
}

.market-link {
  position: static;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: rgba(17, 24, 61, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.market-link:hover,
.market-link:focus-visible {
  color: var(--navy);
}

.market-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(17, 24, 61, 0.28);
  outline-offset: 4px;
}

.hero-inner {
  display: grid;
  min-width: 0;
  place-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-page-title, clamp(1.85rem, 3vw, 2.75rem));
  font-weight: 400;
  line-height: var(--leading-display, 1.12);
  letter-spacing: 0;
  color: var(--navy);
  text-shadow: 0 8px 22px rgba(17, 24, 61, 0.08);
}

.market-intro {
  margin: 12px 0 0;
  max-width: 38rem;
  color: rgba(17, 24, 61, 0.72);
  font-family: var(--font-ui);
  font-size: var(--text-body, 1rem);
  font-weight: 500;
  line-height: var(--leading-body, 1.5);
}

.office-cta-section {
  padding: clamp(14px, 2.2vw, 22px) clamp(20px, 5vw, 64px) 0;
  background: var(--cream);
}

.office-cta-section.detail-office-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 16px) 0 clamp(14px, 2vw, 22px);
  background: transparent;
}

.office-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.2vw, 24px);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.8vw, 28px);
  border: 1px solid rgba(185, 160, 120, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(245, 236, 222, 0.96)),
    var(--linen);
  box-shadow: 0 10px 28px rgba(17, 24, 61, 0.07);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.office-cta-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(185, 160, 120, 0.45);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.72);
}

.office-cta-icon svg {
  width: 22px;
  height: 22px;
}

.detail-office-cta .office-cta {
  width: 100%;
}

.office-cta-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.office-cta h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.9vw, 1.62rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.office-cta p {
  max-width: 640px;
  margin: 0;
  color: rgba(101, 112, 133, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.office-cta-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(17, 24, 61, 0.5);
  border-radius: 12px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.88);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.office-cta-link:hover,
.office-cta-link:focus-visible {
  border-color: rgba(17, 24, 61, 0.68);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(17, 24, 61, 0.12);
}

.office-cta-link:focus-visible {
  outline: 3px solid rgba(17, 24, 61, 0.24);
  outline-offset: 4px;
}

.locations-section {
  padding: clamp(22px, 4vw, 42px) clamp(20px, 5vw, 64px) clamp(58px, 9vw, 104px);
  background: var(--cream);
}

.trial-state {
  grid-column: 1 / -1;
  justify-self: stretch;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(17, 24, 61, 0.12);
  border-radius: 18px;
  color: var(--muted);
  background: var(--linen);
  box-shadow: 0 12px 32px rgba(17, 24, 61, 0.07);
  font-weight: 800;
  text-align: center;
}

.trial-loading-grid {
  align-items: start;
}

.trial-card-skeleton {
  overflow: hidden;
  min-height: 426px;
  border: 1px solid rgba(17, 24, 61, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, #192452, #10183d 62%, #0b1232);
  box-shadow: 0 18px 44px rgba(17, 24, 61, 0.2);
  pointer-events: none;
}

.trial-card-skeleton .card-header {
  min-height: 74px;
}

.trial-skeleton-title,
.trial-skeleton-line,
.trial-skeleton-button {
  display: block;
  border-radius: 6px;
}

.trial-skeleton-title {
  width: min(48%, 210px);
  height: 30px;
  background: rgba(247, 241, 232, 0.18);
}

.trial-skeleton-media {
  background: linear-gradient(135deg, rgba(228, 218, 202, 0.72), rgba(247, 241, 232, 0.92));
}

.trial-skeleton-body {
  align-content: center;
}

.trial-skeleton-line,
.trial-skeleton-button {
  height: 16px;
  background: rgba(247, 241, 232, 0.14);
}

.trial-skeleton-line.is-short {
  width: 62%;
}

.trial-skeleton-button {
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border-radius: 999px;
}

.regions-list {
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.region-group {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.region-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.region-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 24, 61, 0.2), rgba(185, 160, 120, 0.4), rgba(17, 24, 61, 0.05));
}

.region-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: var(--text-section, clamp(1.35rem, 2vw, 1.85rem));
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.location-card {
  --hub-photo-position: center 40%;
  --hub-photo-filter: saturate(0.94) contrast(1.04) brightness(1.02) sepia(0.06);
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(17, 24, 61, 0.28);
  border-radius: 18px;
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 12%, rgba(92, 116, 192, 0.17), transparent 18rem),
    linear-gradient(145deg, #1a2554 0%, #11183d 58%, #0b1232 100%);
  box-shadow: 0 18px 44px rgba(17, 24, 61, 0.2);
  transform-origin: center center;
  transition:
    border-color 280ms var(--ease-premium, cubic-bezier(0.22, 0.61, 0.36, 1)),
    box-shadow 280ms var(--ease-premium, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform 280ms var(--ease-premium, cubic-bezier(0.22, 0.61, 0.36, 1)),
    background 280ms var(--ease-premium, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.location-card.has-detail-route {
  cursor: pointer;
  touch-action: pan-y;
}

.location-card.has-details:focus-within {
  outline: 3px solid rgba(247, 241, 232, 0.42);
  outline-offset: 5px;
}

.location-card.has-detail-route:active:not(:has(.card-interactive:active)) {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(17, 24, 61, 0.18);
}

.card-detail-link {
  position: static;
  color: inherit;
  text-decoration: none;
}

/* Stretched hit area across the card; interactive controls sit above this layer. */
.location-card.has-detail-route .card-detail-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-detail-link:focus-visible {
  outline: 0;
}

.location-card.is-coming-soon {
  background:
    linear-gradient(145deg, rgba(28, 38, 82, 0.98), rgba(14, 22, 57, 0.98)),
    var(--navy);
  box-shadow: 0 13px 34px rgba(17, 24, 61, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .location-card.has-detail-route:hover,
  .location-card.has-detail-route:focus-within {
    z-index: 2;
    border-color: rgba(247, 241, 232, 0.38);
    box-shadow:
      0 18px 40px rgba(2, 8, 32, 0.28),
      0 6px 16px rgba(2, 8, 32, 0.16);
    transform: scale(1.04);
    background:
      radial-gradient(circle at 90% 12%, rgba(102, 126, 198, 0.2), transparent 18rem),
      linear-gradient(145deg, #1d2a5c 0%, #131a42 58%, #0d1436 100%);
  }

  .location-card.has-detail-route:hover .location-name-arrow,
  .location-card.has-detail-route:focus-within .location-name-arrow {
    transform: translateX(3px);
    opacity: 1;
  }

  .location-card.has-detail-route:hover .card-image,
  .location-card.has-detail-route:focus-within .card-image {
    transform: scale(1.08);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 16px 24px;
  background: rgba(5, 10, 31, 0.2);
  box-shadow: inset 0 -1px 0 rgba(247, 241, 232, 0.12);
}

.card-header-titles {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.location-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28em 0.4em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
}

.card-place-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(247, 241, 232, 0.7);
  font-family: var(--font-ui);
  font-size: var(--text-label, 0.72rem);
  font-weight: 700;
  letter-spacing: var(--tracking-label, 0.07em);
  text-transform: uppercase;
}

.card-place-pin {
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 14px;
  flex: 0 0 auto;
  color: rgba(247, 241, 232, 0.78);
}

.card-place-pin svg {
  width: 11px;
  height: 14px;
}

.location-name-arrow {
  display: inline-block;
  flex: 0 0 auto;
  color: rgba(247, 241, 232, 0.72);
  font-family: var(--font-ui);
  font-size: 0.55em;
  font-weight: 700;
  line-height: 1;
  opacity: 0.78;
  transform: translateX(0);
  transition: transform 220ms ease, opacity 220ms ease;
}

.card-media {
  position: relative;
  /* Keep z-index:auto so carousel controls are not trapped under the stretched link. */
  z-index: auto;
  overflow: hidden;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  touch-action: pan-y;
  border-top: 1px solid rgba(247, 241, 232, 0.08);
  border-bottom: 1px solid rgba(247, 241, 232, 0.12);
  background: #0c1332;
}

.card-track {
  position: relative;
  height: 100%;
}

.card-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
}

.card-slide.is-active {
  opacity: 1;
}

.media-wrap,
.media-fallback,
.card-image {
  width: 100%;
  height: 100%;
}

.card-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: var(--hub-photo-position, center 40%);
  filter: var(--hub-photo-filter);
  transform: scale(1.03);
  transform-origin: center center;
  transition: transform 280ms var(--ease-premium, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.card-slide.is-portrait {
  overflow: hidden;
  background: #0c1332;
}

.card-slide.is-portrait .media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Hub cards: always cover-crop — no portrait letterbox strip */
.card-slide.is-portrait .card-gallery-bg {
  display: none;
}

.card-slide.is-portrait::after {
  content: none;
}

.card-slide.is-portrait .card-gallery-fg,
.card-slide.is-portrait .card-image.card-gallery-fg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: var(--hub-photo-position, center 40%);
  filter: var(--hub-photo-filter);
  transform: scale(1.03);
  transform-origin: center center;
  background: transparent;
}

.location-card.no-card-media .card-body {
  padding-top: 8px;
}

.media-fallback {
  display: block;
  min-height: inherit;
  padding: 24px;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(135deg, rgba(247, 241, 232, 0.98), rgba(213, 202, 184, 0.9) 55%, rgba(17, 24, 61, 0.18));
}

.media-fallback[hidden] {
  display: none;
}

.branded-placeholder {
  display: grid;
  place-items: center;
  color: rgba(17, 24, 61, 0.22);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  text-align: center;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(247, 241, 232, 0.18), rgba(247, 241, 232, 0.46));
  pointer-events: none;
}

.opening-label-overlay {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(247, 241, 232, 0.42);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(17, 24, 61, 0.72);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  pointer-events: none;
}

.card-body .opening-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(247, 241, 232, 0.28);
  border-radius: 999px;
  color: rgba(247, 241, 232, 0.9);
  background: rgba(247, 241, 232, 0.08);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.location-card.is-coming-soon .card-body .opening-label,
.card-body .opening-label-fallback {
  color: rgba(255, 224, 170, 0.95);
  border-color: rgba(255, 214, 140, 0.34);
  background: rgba(255, 214, 140, 0.12);
}

.neutral-status-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(17, 24, 61, 0.78);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, rgba(247, 241, 232, 0.24), rgba(247, 241, 232, 0.62));
  pointer-events: none;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(17, 24, 61, 0.1) 0%,
      rgba(17, 24, 61, 0.02) 72%,
      rgba(255, 253, 248, 0.18) 86%,
      rgba(255, 253, 248, 0.55) 100%
    );
}

/* Soften the cream wash over navy card bodies so the photo still settles into the shell. */
.card-media:has(.card-slide.is-portrait.is-active)::after {
  background:
    linear-gradient(
      180deg,
      rgba(17, 24, 61, 0.1) 0%,
      rgba(17, 24, 61, 0.02) 72%,
      rgba(255, 253, 248, 0.16) 86%,
      rgba(255, 253, 248, 0.5) 100%
    );
}

.card-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(247, 241, 232, 0.94);
  box-shadow: 0 8px 24px rgba(17, 24, 61, 0.18);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* The global button shimmer marks every button as position: relative. Keep
   carousel controls anchored over the photo while retaining the shimmer. */
.card-control.button-sheen {
  position: absolute;
}

.card-control:not(.is-hidden) {
  display: grid;
}

.card-control.is-hidden,
.card-dots.is-hidden {
  display: none;
}

.card-control:hover,
.card-control:focus-visible {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 11px 28px rgba(17, 24, 61, 0.24);
  transform: translateY(-50%) scale(1.05);
}

.card-control:focus-visible,
.card-dot:focus-visible {
  outline: 3px solid rgba(247, 241, 232, 0.82);
  outline-offset: 3px;
}

.card-control span {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 0.72;
}

.card-control-prev {
  left: 14px;
}

.card-control-next {
  right: 14px;
}

.card-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 2px;
  pointer-events: auto;
}

.card-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.card-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.62);
  transform: translate(-50%, -50%);
}

.card-dot.is-active::before {
  width: 22px;
  background: var(--cream);
}

.card-body {
  position: relative;
  /* Keep z-index:auto so the trial CTA is not trapped under the stretched link. */
  z-index: auto;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.6vw, 24px);
  color: var(--cream);
  background: transparent;
}

@media (min-width: 760px) {
  .card-body:not(.trial-skeleton-body) {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 38%);
    align-items: center;
    column-gap: 20px;
  }

  .card-body:not(.trial-skeleton-body) .price-list {
    margin: 0;
  }

  .card-body:not(.trial-skeleton-body) > .trial-button,
  .card-body:not(.trial-skeleton-body) > .coming-soon-button {
    width: 100%;
    min-height: 56px;
    align-self: center;
  }
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.price-row {
  display: grid;
  gap: 2px;
  justify-content: start;
  padding: 0;
  border-top: none;
  color: rgba(247, 241, 232, 0.76);
}

.price-row + .price-row {
  padding-left: 14px;
  border-left: 1px solid rgba(247, 241, 232, 0.2);
}

.price-row dt {
  color: rgba(247, 241, 232, 0.68);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-row dd {
  margin: 0;
  text-align: left;
  color: var(--cream);
}

.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.85vw, 1.55rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.price-suffix {
  display: block;
  margin-top: 1px;
  color: rgba(247, 241, 232, 0.62);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trial-button,
.coming-soon-button {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 20px;
  min-width: 0;
  border: 1px solid rgba(247, 241, 232, 0.78);
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.trial-button {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(2, 8, 32, 0.24);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  isolation: isolate;
}

.trial-button.primary-sheen::after {
  z-index: -1;
}

.trial-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #fffdf8 0%, #f7f1e8 52%, #e8decf 100%);
  opacity: 0;
  transform: scaleX(0.86);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 320ms ease;
}

.trial-button::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -42%;
  z-index: -1;
  width: 34%;
  background: linear-gradient(115deg, transparent, rgba(17, 24, 61, 0.14), transparent);
  opacity: 0;
  transform: translateX(0) skewX(-18deg);
  transition: opacity 180ms ease, transform 620ms ease;
}

.trial-button:hover,
.trial-button:focus-visible {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(2, 8, 32, 0.32);
  transform: translateY(-2px);
}

.trial-button:hover::before,
.trial-button:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.trial-button:hover::after,
.trial-button:focus-visible::after {
  opacity: 1;
  transform: translateX(430%) skewX(-18deg);
}

.trial-button:active {
  box-shadow: 0 7px 16px rgba(17, 24, 61, 0.2);
  transform: translateY(0);
}

.trial-button:focus-visible {
  outline: 3px solid rgba(247, 241, 232, 0.72);
  outline-offset: 4px;
}

.coming-soon-button,
.coming-soon-button.is-disabled {
  color: rgba(247, 241, 232, 0.88);
  border: 1px solid rgba(247, 241, 232, 0.28);
  background: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* Absorb clicks on disabled CTAs so the stretched card link is not activated. */
.location-card .coming-soon-button,
.location-card .coming-soon-button.is-disabled {
  pointer-events: auto;
  cursor: default;
}

.coming-soon-button:hover,
.coming-soon-button:focus-visible,
.coming-soon-button.is-disabled:hover,
.coming-soon-button.is-disabled:focus-visible {
  color: rgba(247, 241, 232, 0.88);
  border-color: rgba(247, 241, 232, 0.28);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.modal-media.is-empty-media,
.media-fallback.gallery-empty-state {
  display: grid;
  place-items: center;
  min-height: clamp(180px, 28vw, 280px);
  color: rgba(247, 241, 232, 0.78);
  text-align: center;
  background: rgba(247, 241, 232, 0.08);
}

.media-fallback.gallery-empty-state p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
}

.details-button {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: fit-content;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 241, 232, 0.46);
  border-radius: 0;
  color: var(--cream);
  background: transparent;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.location-card.has-details:hover .details-button,
.location-card.has-details:focus-within .details-button {
  border-color: var(--cream);
  opacity: 1;
  transform: translateX(3px);
}

body.modal-open {
  overflow: hidden;
}

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

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 61, 0.56);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(1120px, 100%);
  max-height: min(92vh, 860px);
  border: 1px solid rgba(247, 241, 232, 0.38);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(2, 8, 32, 0.34);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 241, 232, 0.54);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(17, 24, 61, 0.66);
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--navy);
  background: var(--cream);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(247, 241, 232, 0.7);
  outline-offset: 4px;
}

.modal-content {
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--linen);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 74px;
  padding: 16px 96px 14px 28px;
  color: var(--cream);
  background: var(--navy);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: var(--linen);
}

.modal-top-content {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: start;
  border-bottom: 1px solid rgba(17, 24, 61, 0.12);
}

.modal-info-panel {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: clamp(390px, 42vw, 470px);
  border-left: 1px solid rgba(17, 24, 61, 0.12);
  background: var(--linen);
}

.modal-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  min-height: clamp(430px, 45vw, 540px);
  touch-action: pan-y;
  background:
    linear-gradient(135deg, rgba(247, 241, 232, 0.98), rgba(228, 218, 202, 0.88)),
    #E4DACA;
}

.modal-track {
  position: relative;
  height: 100%;
}

.modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
}

.modal-slide.is-active {
  opacity: 1;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(247, 241, 232, 0.72);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(17, 24, 61, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.modal-control:hover,
.modal-control:focus-visible {
  background: var(--navy);
  transform: translateY(-50%) scale(1.04);
}

.modal-control:focus-visible,
.modal-dot:focus-visible {
  outline: 3px solid rgba(247, 241, 232, 0.82);
  outline-offset: 3px;
}

.modal-control span {
  font-size: 2.2rem;
  line-height: 0.72;
}

.modal-control-prev {
  left: 18px;
}

.modal-control-next {
  right: 18px;
}

.modal-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 61, 0.38);
  transform: translateX(-50%);
}

.modal-dot {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.modal-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.62);
  transform: translate(-50%, -50%);
}

.modal-dot.is-active::before {
  width: 22px;
  background: var(--cream);
}

.flex-includes-section,
.pricing-section {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--linen);
}

.modal-section {
  display: grid;
  gap: 10px;
  padding: 14px clamp(18px, 2.1vw, 22px);
  border-bottom: 1px solid rgba(17, 24, 61, 0.12);
}

.modal-section:last-child {
  border-bottom: 0;
}

.pricing-section {
  gap: 14px;
}

.address-section {
  padding-top: clamp(18px, 2.2vw, 24px);
}

.modal-section h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.08;
}

.modal-price-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: none;
}

.modal-price-list .price-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 7px;
  padding-left: 0;
  border-top: 1px solid rgba(17, 24, 61, 0.12);
  border-left: none;
  color: var(--muted);
}

.modal-price-list .price-row dt {
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.modal-price-list .price-amount {
  display: inline;
  font-size: 1rem;
}

.modal-price-list .price-suffix {
  display: inline;
  margin-left: 4px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

.modal-trial-button {
  margin-top: 2px;
}

.modal-info-panel .trial-button {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 10px 20px rgba(17, 24, 61, 0.18);
}

.modal-info-panel .trial-button::before {
  background: linear-gradient(135deg, #11183d 0%, #1d2a66 48%, #17606b 100%);
}

.modal-info-panel .trial-button::after {
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.modal-info-panel .trial-button:hover,
.modal-info-panel .trial-button:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.modal-info-panel .trial-button:focus-visible {
  outline-color: rgba(17, 24, 61, 0.28);
}

.modal-info-panel .coming-soon-button {
  color: rgba(17, 24, 61, 0.72);
  border-color: rgba(17, 24, 61, 0.3);
  background: transparent;
}

.address-lines {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.3;
}

.address-map-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(17, 24, 61, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

.address-map-control .address-lines {
  flex: 1 1 auto;
  min-width: 0;
}

.map-icon-links {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.map-icon-link {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 61, 0.22);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.map-service-icon {
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: center / contain no-repeat;
}

.map-icon-apple .map-service-icon {
  mask-image: url("/assets/icons/apple-maps.svg");
}

.map-icon-google .map-service-icon {
  mask-image: url("/assets/icons/google-maps.svg");
}

.map-icon-link:hover,
.map-icon-link:focus-visible {
  border-color: rgba(17, 24, 61, 0.42);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.map-icon-link:focus-visible {
  outline: 3px solid rgba(17, 24, 61, 0.22);
  outline-offset: 4px;
}

.flex-includes-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flex-includes-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.34;
}

.flex-includes-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--navy);
  transform: translateY(-50%);
}

.floor-plan-link {
  border: 1px solid rgba(17, 24, 61, 0.14);
  border-radius: 16px;
}

.floor-plan-section {
  grid-column: 1 / -1;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 0;
  background: var(--linen);
}

.floor-plan-link {
  display: flex;
  justify-content: center;
  overflow: auto;
  width: 100%;
  padding: clamp(8px, 1.6vw, 14px);
  background: var(--white);
}

.floor-plan-link:focus-visible,
.floor-plan-action:focus-visible {
  outline: 3px solid rgba(17, 24, 61, 0.28);
  outline-offset: 4px;
}

.floor-plan-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  margin: 0 auto;
  background: var(--white);
  object-fit: contain;
}

.floor-plan-action {
  justify-self: start;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 4px;
}

.site-footer {
  padding: clamp(24px, 4vw, 36px) 20px;
  border-top: 1px solid rgba(247, 241, 232, 0.14);
  color: var(--cream);
  background: var(--navy);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.market-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.market-contact-actions a {
  display: inline-flex;
  min-width: 132px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(247, 241, 232, 0.48);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.market-contact-primary {
  color: var(--navy) !important;
  background: var(--cream);
}

.market-contact-secondary {
  color: var(--cream) !important;
  background: rgba(247, 241, 232, 0.08);
}

.market-contact-actions a:hover,
.market-contact-actions a:focus-visible {
  transform: translateY(-1px);
}

.site-footer a {
  color: var(--cream);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.site-footer a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(247, 241, 232, 0.55);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body[data-trial-market] .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    min-height: 0;
    padding: 0;
  }

  .trial-header-inner {
    width: min(100% - 28px, 1040px);
    padding-top: 10px;
    padding-bottom: 15px;
  }

  .site-header .top-bar {
    gap: clamp(6px, 2vw, 12px);
    margin-bottom: 12px;
  }

  .site-header .top-bar > .market-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
  }

  .hero-inner {
    min-height: 0;
    padding: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  .locations-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .office-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "link link";
    align-items: center;
    gap: 12px 14px;
  }

  .office-cta-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
  }

  .office-cta-copy {
    grid-area: copy;
  }

  .office-cta h2 {
    font-size: clamp(1.18rem, 5.5vw, 1.42rem);
  }

  .office-cta p {
    font-size: 0.8rem;
  }

  .office-cta-link {
    grid-area: link;
    width: 100%;
    min-height: 48px;
  }

  .card-header {
    align-items: flex-start;
  }

  .location-name {
    font-size: clamp(1.42rem, 7vw, 1.85rem);
  }

  .card-place-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  /* Keep floating Text Us from covering the primary trial CTA. */
  body.has-mobile-text-action .card-body > .trial-button,
  body.has-mobile-text-action .card-body > .coming-soon-button {
    width: calc(100% - 8px);
  }

  body.has-mobile-text-action .locations-section {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .office-cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .office-cta-section.detail-office-cta {
    width: min(100% - 24px, 1180px);
  }

  .regions-list {
    gap: 30px;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .region-header {
    gap: 12px;
  }

  .region-title {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .location-card {
    border-radius: 18px;
  }

  .card-media {
    height: 188px;
    min-height: 188px;
    max-height: 188px;
  }

  .card-header {
    min-height: 64px;
    padding: 14px 20px;
  }

  .card-control {
    width: 44px;
    height: 44px;
  }

  .card-control-prev {
    left: 10px;
  }

  .card-control-next {
    right: 10px;
  }

  .card-dots {
    right: 12px;
    bottom: 10px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .price-row dd {
    text-align: left;
  }

  .location-modal {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    min-height: 100svh;
    height: 100dvh;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .modal-close {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    min-height: 44px;
    padding: 9px 14px;
  }

  .modal-header {
    min-height: 72px;
    padding: 18px 86px 16px 20px;
  }

  .modal-body,
  .modal-top-content {
    grid-template-columns: 1fr;
  }

  .modal-top-content {
    border-bottom: 0;
  }

  .modal-info-panel {
    min-height: 0;
    border-left: 0;
  }

  .modal-media {
    min-height: 0;
    height: clamp(228px, 64vw, 340px);
  }

  .modal-control {
    width: 44px;
    height: 44px;
  }

  .modal-control-prev {
    left: 10px;
  }

  .modal-control-next {
    right: 10px;
  }

  .modal-dots {
    right: auto;
    bottom: 10px;
  }

  .modal-section {
    gap: 12px;
    padding: 18px;
  }

  .address-map-control {
    align-items: flex-start;
  }

  .modal-section h3 {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .flex-includes-list {
    gap: 8px;
  }

  .flex-includes-list li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .floor-plan-section {
    padding: 22px 18px 28px;
  }

  .floor-plan-image {
    max-height: none;
  }
}

@media (max-width: 430px) {
  .site-header .top-bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .site-header .top-bar > .brand {
    grid-column: 2;
    justify-self: center;
  }

  .site-header .top-bar > .market-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-card,
  .details-button,
  .trial-button,
  .card-slide {
    transition: none;
  }

  .location-card.has-detail-route:hover,
  .location-card.has-detail-route:focus-within,
  .location-card.has-detail-route:active:not(:has(.card-interactive:active)),
  .location-card.has-detail-route:hover .card-image,
  .location-card.has-detail-route:focus-within .card-image,
  .card-image {
    transform: none;
  }
  .market-contact-actions a {
    transition: none;
  }

  .market-contact-actions a:hover,
  .market-contact-actions a:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .trial-button::after {
    opacity: 0 !important;
    transform: none !important;
  }

  .trial-button::before {
    opacity: 0 !important;
    transform: none !important;
  }

  .location-card.has-details {
    transform: none !important;
  }

  .office-cta-link {
    transform: none !important;
  }
}
