:root {
  --site-header-height: 66px;
  --teal: #0d9488;
  --teal-strong: #0f766e;
  --teal-soft: #ccfbf1;
  --blue-soft: #dbeafe;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --surface: #ffffff;
  --background: #f8fafc;
  --shadow: 0 18px 44px rgba(15, 118, 110, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.sauna-disable-scroll-animation {
  scroll-behavior: auto;
}

@keyframes sauna-page-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0.96;
    transform: translateX(-18%);
  }
}

@keyframes sauna-page-slide-in {
  from {
    opacity: 0.98;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.sauna-page-transition-push::view-transition-old(root) {
    animation: sauna-page-slide-out 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.sauna-page-transition-push::view-transition-new(root) {
    animation: sauna-page-slide-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
  }
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo-stack {
  display: flex;
  flex-direction: column;
}

.site-logo-icon {
  flex: 0 0 auto;
}

.site-logo-top {
  color: #0d9488;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
}

.site-logo-bottom {
  color: #1f2937;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
}

.site-logo-typography {
  align-items: baseline;
  gap: 0.4rem;
}

.site-logo-i {
  color: #4b5563;
  font-size: 1.25rem;
  font-weight: 300;
}

.site-logo-love {
  color: #0d9488;
  font-size: 1.25rem;
  font-weight: 300;
}

.site-logo-sauna {
  color: #1f2937;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal-strong);
}

.site-brand:hover .site-logo-top,
.site-brand:hover .site-logo-bottom,
.site-brand:hover .site-logo-love,
.site-brand:hover .site-logo-sauna {
  color: var(--teal-strong);
}

.home-page {
  min-height: calc(100vh - 66px);
  background:
    linear-gradient(135deg, rgba(204, 251, 241, 0.74), rgba(255, 255, 255, 0.92) 42%, rgba(219, 234, 254, 0.72));
}

.home-hero {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem 3rem;
  text-align: center;
}

.home-hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 7vw, 5.35rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.search-form {
  margin-bottom: 1.4rem;
}

.search-control {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  min-height: 62px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 4.6rem 0.9rem 1.45rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  outline: none;
}

.search-input:focus,
.compact-search-input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.search-button {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #ffffff;
  background: var(--teal);
  transform: translateY(-50%);
}

.search-button:hover,
.compact-search-button:hover {
  background: var(--teal-strong);
}

.quick-search {
  margin-bottom: 2.1rem;
}

.quick-search p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-row.centered {
  justify-content: center;
}

.filter-groups {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.8rem;
}

.filter-menu {
  position: relative;
  grid-column: 1 / -1;
  justify-self: start;
}

.filter-menu[open] {
  width: 100%;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  box-shadow: none;
}

.filter-toggle::-webkit-details-marker {
  display: none;
}

.filter-toggle:hover {
  color: #111827;
}

.filter-chevron-up,
.filter-label-open,
.filter-menu[open] .filter-chevron-down,
.filter-menu[open] .filter-label-closed {
  display: none;
}

.filter-menu[open] .filter-chevron-up,
.filter-menu[open] .filter-label-open {
  display: inline-flex;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.75rem;
}

.filter-menu .filter-groups {
  margin-top: 0.65rem;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.use-case-filter-row {
  grid-column: 1 / -1;
}

.filter-group {
  display: grid;
  gap: 0.45rem;
}

.filter-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: #374151;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: #2dd4bf;
  color: var(--teal-strong);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.13);
}

.filter-pill.active {
  background: var(--teal);
  color: #ffffff;
}

.filter-pill.secondary {
  min-height: 36px;
  border-width: 1px;
  padding: 0.42rem 0.82rem;
  background: #ffffff;
  font-size: 0.84rem;
}

.filter-pill.secondary.active {
  background: #334155;
  border-color: #334155;
  color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 auto;
}

.hero-stats div,
.metric-card,
.experience-panel,
.amenities-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.hero-stats div {
  padding: 1rem;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  color: var(--teal-strong);
  font-size: 1.22rem;
  font-weight: 900;
}

.featured-section {
  padding-bottom: 4rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading.compact {
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.1;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.featured-card,
.sauna-list-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-card:hover,
.sauna-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.sauna-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;
  color: rgba(13, 148, 136, 0.34);
}

.sauna-art-fallback {
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.56), rgba(191, 219, 254, 0.64)),
    radial-gradient(circle at 24% 24%, #ffffff, transparent 32%);
}

.sauna-card-image,
.sauna-list-image,
.detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.featured-card-body .tag-row {
  margin-top: auto;
}

.featured-card h3,
.sauna-list-card h2 {
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

.listing-area {
  margin: 0 0 0.45rem;
  color: var(--teal-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.listing-address {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.listing-description {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.center-action {
  margin-top: 2rem;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.22);
}

.button-primary:hover {
  background: var(--teal-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal-strong);
}

.directory-page,
.detail-page {
  min-height: calc(100vh - var(--site-header-height));
  background: #f9fafb;
}

.directory-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.directory-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.directory-heading .eyebrow,
.detail-header .eyebrow {
  margin-bottom: 0.15rem;
}

.directory-heading h1 {
  margin: 0;
  font-size: 1.3rem;
}

.back-button:hover {
  background: #f1f5f9;
}

.compact-search {
  position: relative;
}

.compact-search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 3.3rem 0.65rem 1rem;
  outline: none;
}

.compact-search-button {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: var(--teal);
  transform: translateY(-50%);
}

.directory-header .filter-menu {
  grid-column: 1 / -1;
}

.directory-view-switch {
  display: none;
}

.view-switch-button {
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.view-switch-button:first-child {
  border-radius: 999px 0 0 999px;
}

.view-switch-button:last-child {
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.view-switch-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.sauna-list-panel {
  padding: 1.25rem 1.5rem;
}

.directory-count {
  margin: 0 0 1rem;
  color: var(--muted);
}

.sauna-list {
  display: grid;
  gap: 1rem;
}

.sauna-list-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  min-height: 168px;
  border: 1px solid var(--line);
  padding: 0.8rem;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sauna-list-card:hover {
  border-color: #99f6e4;
}

.sauna-list-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2), var(--shadow);
}

.sauna-list-card:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.36);
  outline-offset: 2px;
}

.sauna-title-link {
  color: inherit;
  text-decoration: none;
}

.sauna-title-link:hover,
.sauna-title-link:focus-visible {
  color: var(--teal-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.sauna-list-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  border-radius: 6px;
  color: rgba(13, 148, 136, 0.34);
}

.sauna-list-content {
  min-width: 0;
  padding: 0.18rem 0.1rem 0.18rem 0;
}

.listing-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.location-line svg {
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

.location-note {
  display: block;
  margin-top: 0.18rem;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 900;
}

.map-panel {
  position: sticky;
  top: calc(var(--site-header-height) + 1rem);
  min-height: calc(100vh - var(--site-header-height) - 2rem);
  height: calc(100vh - var(--site-header-height) - 2rem);
  padding: 1.25rem 1.5rem 1.25rem 0;
}

.directory-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e7f0eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.directory-map-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
}

.directory-map-unavailable::after {
  content: "Map unavailable";
  color: var(--muted);
  font-weight: 800;
}

.map-empty-state {
  position: absolute;
  inset: 1.25rem 1.5rem 1.25rem 0;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.map-empty-state h2,
.map-empty-state p {
  margin: 0;
}

.map-empty-state p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.sauna-map-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.2);
  transition: transform 160ms ease;
}

.sauna-map-marker-dot {
  display: block;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.sauna-map-marker.active {
  background: rgba(251, 191, 36, 0.28);
  transform: scale(1.08);
}

.sauna-map-marker.active .sauna-map-marker-dot {
  width: 24px;
  height: 24px;
  background: #f59e0b;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
}

.leaflet-tile {
  max-width: none;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-control-container .leaflet-top {
  top: 0;
}

.leaflet-control-container .leaflet-right {
  right: 0;
}

.leaflet-control-container .leaflet-bottom {
  bottom: 0;
}

.leaflet-control-container .leaflet-left {
  left: 0;
}

.leaflet-control {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
}

.leaflet-control-zoom a:first-child {
  border-radius: 6px 6px 0 0;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
  border-radius: 0 0 6px 6px;
}

.leaflet-control-attribution {
  margin: 0;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.68rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: left;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  transform: rotate(45deg);
}

.map-popup {
  padding: 0.85rem;
}

.map-popup p {
  margin: 0 0 0.25rem;
  color: var(--teal-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-popup h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.15;
}

.map-popup-note {
  margin: -0.2rem 0 0.6rem;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 900;
}

.map-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.map-popup-tags span {
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.map-popup a {
  color: var(--teal-strong);
  font-weight: 900;
  text-decoration: none;
}

.map-place-sheet {
  display: none;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  background: #ffffff;
}

.detail-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  color: rgba(13, 148, 136, 0.34);
}

.detail-visual.sauna-art-fallback {
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.62), rgba(191, 219, 254, 0.66)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.88), transparent 28%);
}

.detail-carousel {
  margin-bottom: 1.5rem;
}

.detail-carousel-stage {
  position: relative;
  overflow: hidden;
  height: 492px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  touch-action: pan-y;
}

.detail-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.detail-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.85rem 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.74));
  font-size: 0.9rem;
  font-weight: 750;
}

.carousel-control {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.54);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control:hover {
  background: rgba(15, 23, 42, 0.72);
}

.detail-carousel[data-at-start="true"] .carousel-control-prev,
.detail-carousel[data-at-end="true"] .carousel-control-next {
  opacity: 0.36;
  cursor: default;
  pointer-events: none;
}

.carousel-control-prev {
  left: 0.9rem;
}

.carousel-control-next {
  right: 0.9rem;
}

.carousel-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  min-width: 56px;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.54);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.carousel-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.carousel-thumbnail {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.carousel-thumbnail.active {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.carousel-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-title-block {
  margin-bottom: 1.5rem;
}

.detail-title-block h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
}

.experience-panel,
.amenities-panel {
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.experience-panel h2,
.amenities-panel h2 {
  margin: 0 0 0.65rem;
}

.experience-panel p {
  margin: 0;
  color: #374151;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1rem;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.metric-card p {
  margin: 0;
  font-weight: 850;
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #374151;
}

.amenity-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "•";
  font-weight: 900;
}

.detail-actions {
  display: flex;
  gap: 0.85rem;
}

.detail-cta {
  flex: 1;
  border-radius: 8px;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .featured-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .directory-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .directory-view-switch {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .view-switch-button {
    flex: 1;
  }

  .directory-layout {
    display: block;
    height: auto;
    min-height: 0;
  }

  .sauna-list-panel {
    overflow: visible;
  }

  .sauna-list-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .sauna-list-media {
    flex: 0 0 auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
    border-radius: 0;
  }

  .sauna-list-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
  }

  .sauna-list-content .tag-row {
    margin-top: auto;
  }

  .map-panel {
    display: none;
  }

  .directory-page.show-map .sauna-list-panel {
    display: none;
  }

  .directory-page.show-map .map-panel {
    display: block;
  }

  .map-panel {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    padding: 1rem;
  }

  .directory-map {
    height: 420px;
    min-height: 420px;
  }

  .map-place-sheet {
    position: absolute;
    right: 1rem;
    bottom: 1.85rem;
    left: 1rem;
    z-index: 500;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .map-place-sheet.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .map-place-sheet-close {
    position: absolute;
    top: -0.7rem;
    right: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    cursor: pointer;
  }

  .map-place-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.8rem;
    height: 164px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.72rem;
    overflow: hidden;
    background: #ffffff;
    color: inherit;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
    text-decoration: none;
  }

  .map-place-card-media {
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: var(--teal-soft);
  }

  .map-place-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
  }

  .map-place-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding-right: 1.35rem;
  }

  .map-place-card .listing-area {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .map-place-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.15;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .map-place-description {
    flex: 1;
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .map-place-card .tag-row {
    gap: 0.35rem;
    max-height: 24px;
    overflow: hidden;
  }

  .map-place-card .tag {
    min-height: 24px;
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
  }

  .map-empty-state {
    inset: 1rem;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: auto;
    padding: 0.8rem 0;
  }

  .site-logo {
    gap: 0.55rem;
  }

  .site-logo svg {
    width: 34px;
    height: 34px;
  }

  .site-logo-top {
    font-size: 0.88rem;
  }

  .site-logo-bottom {
    font-size: 1.08rem;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .home-hero {
    padding-top: 2.6rem;
  }

  .hero-stats,
  .amenity-list {
    grid-template-columns: 1fr;
  }

  .search-input {
    min-height: 58px;
    font-size: 1rem;
  }

  .directory-header,
  .detail-header {
    padding-inline: 1rem;
  }

  .detail-visual {
    height: 250px;
  }

  .detail-slide img {
    height: 100%;
  }

  .detail-carousel-stage {
    height: 320px;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
  }

  .detail-actions {
    flex-direction: column;
  }
}
