:root {
  --bg: var(--background);
  --surface: var(--surface-profile-light);
  --fg: var(--foreground);
  --muted: var(--muted-65-to-67);
  --line: var(--line-22);
}

html[data-theme="dark"] {
  --surface: var(--surface-warm-dark);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

.place-page {
  margin: 0 auto;
  max-width: var(--page-max-width);
  min-height: 100vh;
  padding: var(--page-gutter);
}

.place-header {
  text-transform: uppercase;
}

.place-header > a,
.place-header nav a,
.profile-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  display: inline-flex;
  padding: 0.66rem 0.82rem;
  text-decoration: none;
  width: fit-content;
}

.place-header > a:hover,
.place-header nav a:hover,
.profile-actions a:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.profile-actions .profile-social-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: center;
  padding: 0.35rem;
}

.profile-actions .profile-directions-link {
  align-items: center;
  display: inline-grid;
  height: 2.4rem;
  justify-content: center;
  padding: 0.62rem;
  width: 2.4rem;
}

.profile-directions-link img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

html[data-theme="dark"] .profile-directions-link img {
  filter: invert(1);
}

.profile-directions-link:hover img,
.profile-directions-link:focus-visible img {
  filter: invert(1);
}

html[data-theme="dark"] .profile-directions-link:hover img,
html[data-theme="dark"] .profile-directions-link:focus-visible img {
  filter: none;
}

.profile-actions .profile-social-link:hover,
.profile-actions .profile-social-link:focus-visible {
  background: transparent;
  color: var(--fg);
}

.profile-social-link img {
  display: block;
  height: 1rem;
  object-fit: contain;
  width: 1rem;
}

html[data-theme="dark"] .profile-social-link img {
  filter: invert(1);
}

.profile-social-link:hover img,
.profile-social-link:focus-visible img {
  filter: invert(1);
}

html[data-theme="dark"] .profile-social-link:hover img,
html[data-theme="dark"] .profile-social-link:focus-visible img {
  filter: none;
}

.place-header p {
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .place-header > a,
  .place-header > p,
  .place-header > nav {
    display: none;
  }

  .place-header {
    grid-template-columns: 1fr;
  }
}

.loading {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-top: 6rem;
}

.profile-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.2rem clamp(2rem, 7vw, 9rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  padding: clamp(70px, 12vh, 150px) 0 clamp(36px, 6vw, 72px);
  position: relative;
}

.favorite-toggle {
  --favorite-padding: 0.5rem;
  --favorite-size: 2.4rem;
  right: 0;
  top: clamp(28px, 4vw, 54px);
}

.profile-kicker,
.profile-meta,
.profile-section h2,
.enhanced-panel p,
.profile-hours dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-kicker {
  color: var(--muted);
  margin: 0 0 1rem;
}

.profile-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.7rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.76;
  margin: 0;
  max-width: 11ch;
  text-transform: uppercase;
}

.profile-summary {
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  grid-column: 1;
  line-height: 1.45;
  margin: 1.6rem 0 0;
  max-width: 42rem;
}

.profile-meta {
  align-self: end;
  color: var(--muted);
  grid-column: 2;
  grid-row: 1 / span 2;
  line-height: 1.7;
  margin: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  grid-column: 1;
  margin-top: 0.65rem;
}

.profile-hero.is-enhanced {
  --line: rgba(241, 231, 216, 0.28);
  --muted: rgba(241, 231, 216, 0.68);
  background: var(--color-ink);
  color: var(--color-cream);
  border: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  margin-top: clamp(2.5rem, 6vw, 6.5rem);
  padding: clamp(2rem, 6vw, 6rem);
}

html[data-theme="dark"] .profile-hero.is-enhanced {
  --line: rgba(17, 17, 17, 0.24);
  --muted: rgba(17, 17, 17, 0.66);
  background: var(--color-cream);
  color: var(--color-ink);
}

.profile-hero.is-enhanced .profile-hero-main {
  min-width: 0;
}

.profile-hero.is-enhanced h1 {
  font-size: clamp(5.5rem, 11vw, 11rem);
  max-width: 8.5ch;
}

.profile-hero.is-enhanced .profile-summary {
  margin-bottom: 0;
}

.profile-hero.is-enhanced .favorite-toggle {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.profile-hero.is-enhanced .favorite-toggle img,
.profile-hero.is-enhanced .profile-social-link img,
.profile-hero.is-enhanced .profile-directions-link img {
  filter: invert(1);
}

.profile-hero.is-enhanced .favorite-toggle:hover,
.profile-hero.is-enhanced .favorite-toggle:focus-visible,
.profile-hero.is-enhanced .profile-actions a:not(.profile-social-link):hover,
.profile-hero.is-enhanced
  .profile-actions
  a:not(.profile-social-link):focus-visible {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-ink);
}

.profile-hero.is-enhanced .favorite-toggle:hover img,
.profile-hero.is-enhanced .favorite-toggle:focus-visible img,
.profile-hero.is-enhanced .profile-directions-link:hover img,
.profile-hero.is-enhanced .profile-directions-link:focus-visible img {
  filter: none;
}

html[data-theme="dark"] .profile-hero.is-enhanced .favorite-toggle {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

html[data-theme="dark"] .profile-hero.is-enhanced .favorite-toggle img,
html[data-theme="dark"] .profile-hero.is-enhanced .profile-social-link img,
html[data-theme="dark"] .profile-hero.is-enhanced .profile-directions-link img {
  filter: none;
}

html[data-theme="dark"] .profile-hero.is-enhanced .favorite-toggle:hover,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .favorite-toggle:focus-visible,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .profile-actions
  a:not(.profile-social-link):hover,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .profile-actions
  a:not(.profile-social-link):focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-cream);
}

html[data-theme="dark"] .profile-hero.is-enhanced .favorite-toggle:hover img,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .favorite-toggle:focus-visible
  img,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .profile-directions-link:hover
  img,
html[data-theme="dark"]
  .profile-hero.is-enhanced
  .profile-directions-link:focus-visible
  img {
  filter: invert(1);
}

.profile-visit-card {
  align-self: stretch;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 0 0 clamp(1.25rem, 4vw, 4rem);
}

.profile-visit-card > p,
.profile-visit-card > strong,
.profile-visit-card > span {
  margin: 0;
}

.profile-visit-card > p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-visit-card > strong {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 1rem;
}

.profile-visit-card > span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.profile-enhanced-actions {
  align-items: center;
  margin-top: 1.6rem;
}

.profile-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(34px, 6vw, 80px) 0;
}

.profile-section {
  border-top: 2px solid var(--fg);
  padding-top: 1rem;
}

.profile-section h2 {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.profile-section p {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 38rem;
}

.profile-section ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-section li {
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  padding-bottom: 0.7rem;
}

.profile-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-amenities .amenity {
  align-items: center;
  border: 0;
  display: inline-grid;
  font-family: var(--font-mono);
  height: 1.15rem;
  padding: 0;
  place-items: center;
  position: relative;
  width: 1.15rem;
}

.profile-amenities .amenity::after {
  background: var(--fg);
  color: var(--bg);
  content: attr(aria-label);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  left: 50%;
  letter-spacing: 0.05em;
  line-height: 1;
  opacity: 0;
  padding: 0.36rem 0.42rem;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: calc(100% + 0.45rem);
  transform: translate(-50%, -0.2rem);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  white-space: nowrap;
  z-index: 20;
}

.profile-amenities .amenity:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-amenities .amenity img {
  height: 1.15rem;
  object-fit: contain;
  width: 1.15rem;
}

.profile-amenities .amenity-fallback {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.07em;
}
.profile-amenities .amenity-fallback-21-plus {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.75;
}

html[data-theme="dark"] .profile-amenities .amenity img {
  filter: invert(1);
}

.profile-hours {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.profile-hours div {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.55rem;
}

.profile-hours dt,
.profile-hours dd {
  margin: 0;
}
.profile-hours dd {
  font-size: 0.92rem;
  text-align: right;
}

.enhanced-page-content {
  padding: clamp(3rem, 7vw, 8rem) 0;
}

.enhanced-story {
  display: grid;
  gap: clamp(2rem, 6vw, 8rem);
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  padding-bottom: clamp(3rem, 7vw, 8rem);
}

.enhanced-story > div:first-child > p,
.profile-gallery-section > p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.enhanced-story h2 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.8;
  margin: 0.8rem 0 0;
  text-transform: uppercase;
}

.enhanced-story > div:last-child {
  align-self: end;
}

.enhanced-story .profile-summary {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.5;
  margin: 0;
  max-width: 43rem;
}

.enhanced-story .detail-list {
  margin-top: 2rem;
  max-width: 43rem;
}

.enhanced-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enhanced-facts .profile-section {
  border-top: 0;
  min-height: 12rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.enhanced-facts .profile-section + .profile-section {
  border-left: 1px solid var(--line);
}

.enhanced-facts .profile-section h2 {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.88;
  text-transform: uppercase;
}

.profile-gallery {
  display: grid;
  gap: 0.8rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-gallery-section {
  margin-top: clamp(3rem, 7vw, 8rem);
}

.profile-gallery-section > p {
  margin-bottom: 1rem;
}

.profile-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 720px) {
  .place-page {
    padding: 15px;
  }
  .profile-hero {
    display: block;
    padding: 58px 0 32px;
  }
  .profile-hero.is-enhanced {
    display: block;
    margin-top: 2rem;
    padding: 4.5rem 1.15rem 1.15rem;
  }
  .profile-hero.is-enhanced h1 {
    font-size: clamp(4.5rem, 20vw, 6.7rem);
  }
  .profile-visit-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 2.3rem;
    padding: 1.15rem 0 0;
  }
  .profile-enhanced-actions {
    margin-top: 1.3rem;
  }
  .profile-hero h1 {
    font-size: clamp(4.5rem, 20vw, 6.7rem);
  }
  .profile-summary {
    margin-top: 1.3rem;
  }
  .profile-meta {
    margin-top: 1.35rem;
  }
  .profile-actions {
    margin-top: 1.2rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }
  .enhanced-page-content {
    padding: 3.5rem 0;
  }
  .enhanced-story {
    grid-template-columns: 1fr;
    padding-bottom: 3.5rem;
  }
  .enhanced-story h2 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }
  .enhanced-facts {
    grid-template-columns: 1fr;
  }
  .enhanced-facts .profile-section {
    min-height: 0;
  }
  .enhanced-facts .profile-section + .profile-section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .profile-gallery {
    grid-template-columns: 1fr;
  }
}
