/* Twin Cities Sauna & Steam — site stylesheet
   Design language: light, bold-geometric "local listings" style —
   white/pale-blue surfaces, near-black navy text, one coral accent. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root{
  --ink: #111828;           /* primary text, headings, dark buttons */
  --ink-soft: #586071;      /* secondary text */
  --muted: #8B909A;         /* tertiary / meta text */
  --coral: #FC5761;         /* the one accent: CTAs, badges, links, icons */
  --coral-dark: #E6414B;
  --navy: #222E5B;          /* secondary accent (cold-side, alt badges) */

  --paper: #FFFFFF;         /* card / raised surface background */
  --tint: #F4F7FB;          /* page-section background */
  --line: #E1E6F1;          /* borders, hairlines */
  --line-soft: #EDF1F8;

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(17, 24, 40, 0.04);
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--coral);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand{
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1{ font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h2{ font-size: clamp(1.3rem, 1.1vw + 1rem, 1.6rem); }
h3{ font-size: 1.1rem; font-weight: 700; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: var(--ink); text-decoration: none; }
a:hover{ color: var(--coral); }
a:focus-visible{ outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

em{ color: var(--coral); font-style: normal; font-weight: 700; }

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

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

button, input, select{ font-family: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible{
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---------- Header ---------- */

header.site{
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand{
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.brand:hover{ color: var(--ink); }

.brand-mark{ color: var(--coral); }

.primary{
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.primary a{
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.primary a:hover{ color: var(--ink); }
.primary a.active{ color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: .92rem;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-dark{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover{ background: #232C42; color: #fff; }

.btn-coral{
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-coral:hover{ background: var(--coral-dark); color: #fff; }

.btn-outline{
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn-outline:hover{ border-color: var(--ink); }

/* ---------- Hero (culture page) ---------- */

.hero{ padding: 64px 0 56px; }

.hero .wrap{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}

.lede{
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

.lede-wide{ max-width: none; }

.hero-actions{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cycle-diagram{ margin: 0; text-align: center; }

.cycle-diagram figcaption{
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Category grid (culture page) ---------- */

.on-raised{
  background: var(--tint);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{ margin-bottom: 30px; max-width: 60ch; }
.section-head h2{ margin-bottom: .3em; }
.section-head p{ margin-bottom: 0; }

.cat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.cat-tile{
  background: var(--paper);
  padding: 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, transform .15s ease;
}

.cat-tile:hover{ border-color: var(--coral); transform: translateY(-2px); }
.cat-tile:hover .name{ color: var(--coral); }

.cat-tile .count{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral);
}

.cat-tile .name{
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  transition: color .15s ease;
}

.cat-tile .desc{
  color: var(--ink-soft);
  font-size: .86rem;
  margin: 0;
}

/* ---------- Generic content sections ---------- */

section{ padding: 64px 0; }
section.tight, section.page-intro{ padding: 44px 0 28px; }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.article{ max-width: 70ch; }
.article h2{ margin-top: 1.5em; }

.byline{
  font-size: .8rem;
  color: var(--coral);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.disclosure{
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: .86rem;
  color: var(--ink-soft);
}

.disclosure strong{ color: var(--ink); font-weight: 700; }

/* ---------- Listing detail pages ---------- */

.breadcrumb{
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--coral); }

.detail-media{
  position: relative;
  height: 320px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.detail-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-media .media-icon{ color: var(--navy); opacity: .35; }
.detail-media .media-icon svg{ width: 64px; height: 64px; }

/* ================= Directory ================= */

.directory-shell{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Filter rail ---------- */

.filter-rail{
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
}

.filter-group{ display: flex; flex-direction: column; gap: 10px; }

.filter-group-label{
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 700;
}

#search-box{
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: .92rem;
  border-radius: var(--radius-btn);
}
#search-box::placeholder{ color: var(--muted); }
#search-box:focus{ outline: none; border-color: var(--coral); }
#search-box:focus-visible{ box-shadow: none; border-color: var(--coral); }

.check-row{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .87rem;
  color: var(--ink);
  cursor: pointer;
  padding: 3px 0;
}

.check-row input[type="checkbox"]{
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex: none;
  background: var(--paper);
}
.check-row input[type="checkbox"]::before{
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--coral);
  transform: scale(0);
  transition: transform .1s ease;
}
.check-row input[type="checkbox"]:checked{ border-color: var(--coral); }
.check-row input[type="checkbox"]:checked::before{ transform: scale(1); }
.check-row input[type="checkbox"]:focus-visible{ box-shadow: var(--focus-ring); }

.cat-list{ display: flex; flex-direction: column; gap: 2px; }

.cat-row{
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 8px;
  cursor: pointer;
  border-radius: 8px;
}

.cat-row:hover{ background: var(--paper); color: var(--ink); }
.cat-row.active{ background: var(--ink); color: #fff; }
.cat-row.active .n{ color: #C7CEE3; }
.cat-row .n{ color: var(--muted); font-size: .82rem; }

#sort-select{
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: .88rem;
}
#sort-select:focus-visible{ box-shadow: var(--focus-ring); }

.rail-reset{
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.rail-reset:hover{ color: var(--coral); text-decoration-color: var(--coral); }

.filter-toggle{ display: none; }

/* ---------- Result meta ---------- */

#result-count{
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 500;
  margin: 0 0 20px;
}

/* ---------- Listing cards ---------- */

#listing-container{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.listing-row{
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.listing-row:hover{ border-color: var(--coral); transform: translateY(-3px); }
.listing-row:hover .listing-name{ color: var(--coral); }

.card-media{
  position: relative;
  height: 128px;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.media-icon{ color: var(--navy); opacity: .35; }
.media-icon svg{ width: 46px; height: 46px; }

.card-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.cat-badge svg{ width: 13px; height: 13px; color: var(--coral); }

.photo-credit{
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(17, 24, 40, .55);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  line-height: 1.3;
}
.photo-credit:hover{ background: rgba(17, 24, 40, .75); text-decoration: underline; }

.listing-main{ padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.listing-name{
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  transition: color .12s ease;
}
.listing-name a{ color: inherit; text-decoration: none; }
.listing-name a:hover, .listing-name a:focus-visible{ text-decoration: underline; }

.listing-area{
  color: var(--muted);
  font-size: .84rem;
  margin: 0 0 10px;
}

.listing-desc{
  color: var(--ink-soft);
  font-size: .87rem;
  margin: 0 0 14px;
}

.stat-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.stat{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--line-soft);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.stat.brass{ color: var(--coral-dark); background: #FDEAEC; }
.stat .k{ color: inherit; font-weight: 600; }

.flag-note{
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FFF4E8;
  border-left: 3px solid #E08A2E;
  font-size: .8rem;
  color: #7A4E12;
}

.card-divider{ border-top: 1px solid var(--line); margin: 2px 0 14px; }

.listing-side{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rating{
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating .star{ color: var(--coral); margin-right: 2px; }
.rating-count{ font-weight: 500; color: var(--muted); margin-left: 2px; }
.rating-none{ color: var(--muted); font-weight: 500; font-size: .82rem; }

.toggle-group{ display: flex; gap: 6px; flex-wrap: wrap; }

.toggle-btn{
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.toggle-btn:hover{ border-color: var(--coral); color: var(--ink); }
.toggle-btn.on{ border-color: var(--coral); color: #fff; background: var(--coral); }

/* ---------- Empty state ---------- */

.empty-state{
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ================= Modal (detail view) ================= */

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 40, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  animation: fadeIn .2s ease forwards;
}

@keyframes fadeIn{ to{ opacity: 1; } }

@media (prefers-reduced-motion: reduce){
  .modal-backdrop{ animation: none; opacity: 1; }
}

.modal{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(17, 24, 40, 0.18);
}

.modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.modal-close:hover{ color: var(--coral); border-color: var(--coral); }

.modal-media{
  position: relative;
  height: 220px;
  margin: -36px -36px 24px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-media .media-icon svg{ width: 56px; height: 56px; }

.modal-type{
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: #FDEAEC;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.modal h3{ font-size: 1.5rem; margin-bottom: 4px; }
.modal .listing-area{ margin-bottom: 18px; }

.modal-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 22px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-stat dt{ font-size: .74rem; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.modal-stat dd{ margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }

.modal-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.modal-checkin-note{
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ================= Footer ================= */

footer.site{
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding: 56px 0;
  margin-top: 40px;
}

footer.site .brand{ color: var(--ink); }

.foot-grid{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.foot-links{ display: flex; flex-direction: column; gap: 10px; }
.foot-links a{ color: var(--ink-soft); font-size: .88rem; font-weight: 500; }
.foot-links a:hover{ color: var(--coral); }

/* ---------- Responsive ---------- */

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .cycle-diagram{ max-width: 300px; margin: 0 auto; }
  .two-col{ grid-template-columns: 1fr; gap: 30px; }

  .directory-shell{ grid-template-columns: 1fr; gap: 0; }

  .filter-rail{
    position: static;
    display: none;
    margin-bottom: 20px;
  }
  .filter-rail.open{ display: flex; }

  .filter-toggle{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    color: var(--ink);
    padding: 11px 18px;
    border-radius: var(--radius-btn);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
  }

  #listing-container{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .nav-row{ padding: 14px 16px; }
  .primary{ gap: 16px; }
  section{ padding: 44px 0; }
  .modal{ padding: 26px 20px; }
  .modal-stats{ grid-template-columns: 1fr; }
}
