/* Directory pages: cards with chips, filter bar, studio sections. White, orange, black. */

.stars {
  --r: 0;
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  vertical-align: -0.1em;
  background: linear-gradient(90deg, var(--orange) calc(var(--r) / 5 * 100%), #d9d3cc calc(var(--r) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stars::before { content: "★★★★★"; }
.rating b { font-variant-numeric: tabular-nums; }
.rating-lg { font-size: 1.15rem; }
.rating-lg .stars { font-size: 1.3rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.55rem 0 0.2rem; }
.tags-lg { gap: 0.45rem; margin: 0.4rem 0 0.6rem; }
.tag {
  display: inline-block;
  font-size: 0.74rem;
  line-height: 1.2;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.tags-lg .tag { font-size: 0.86rem; padding: 0.32rem 0.7rem; }
.tag-spec { border-color: var(--orange); background: #fff4ec; color: #7a2e04; }
.tag-feat { border-color: var(--black); background: #fff; color: var(--black); }
.tag-more { border-style: dashed; color: var(--muted); }
a.tag-link:hover { background: var(--orange); color: var(--black); }

.card-city, .card-cat { margin: 0.1rem 0; font-size: 0.9rem; }
.open-status { margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 600; }
.open-status.is-open { color: #1a6b2e; }
.open-status.is-closed { color: var(--muted); }
.open-status::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; margin-right: 0.35rem; }

/* page head with featured image */
.head-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: center; }
.featured { margin: 0; }
.featured img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--black); }
.studio-featured { margin-bottom: 1rem; }
.studio-featured img { aspect-ratio: 16 / 9; object-fit: cover; max-height: 420px; }

/* filter bar */
.filter-bar {
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: #fff;
  padding: 1rem;
  margin: 0 0 1rem;
}
.filter-bar[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 0.75rem; }
.f-field { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; font-weight: 600; min-width: 11rem; }
.f-search { flex: 1 1 16rem; }
.f-field input, .f-field select { font-size: 1rem; font-weight: 400; }
.filter-toggles { gap: 1.2rem; }
.toggle { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.95rem; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--orange); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.fchip {
  font: inherit;
  font-size: 0.84rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.fchip.tag-spec { border-color: var(--orange); background: #fff4ec; color: #7a2e04; }
.fchip.tag-feat { border-color: var(--black); }
.fchip .fcount { color: var(--muted); font-size: 0.75rem; margin-left: 0.15rem; }
.fchip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--black); }
.fchip[aria-pressed="true"] .fcount { color: var(--black); }
.fchip:focus-visible, .toggle input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.filter-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.92rem; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--orange-deep); text-decoration: underline; cursor: pointer; }
.no-results { padding: 1.2rem; border: 1px dashed var(--line); text-align: center; }
.studio-card[hidden] { display: none; }

/* studio page */
.studio-main { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0 0.5rem; }
.btn-ghost { background: #fff; color: var(--black); }
.btn-small { padding: 0.5rem 0.8rem; font-size: 0.92rem; }
.social-links a { margin-right: 0.7rem; }
.summary { font-size: 1.05rem; max-width: 46rem; margin-top: 1rem; }
.section-block { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.section-block h2 { margin-bottom: 0.7rem; }
.section-block h3 { margin: 1rem 0 0.2rem; font-size: 1.02rem; }
.note { color: var(--muted); font-size: 0.84rem; margin: 0.4rem 0 0; }
.site-quote { margin: 0.4rem 0 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 4px solid var(--orange); color: var(--ink); }
.hours-table { width: 100%; max-width: 30rem; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { font-weight: 600; width: 9rem; }
.hours-table tr.is-today { background: #fff4ec; box-shadow: inset 4px 0 0 var(--orange); }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 700; }
.hours-table tr.is-closed td { color: var(--muted); }
.hours-extra { margin-bottom: 0.4rem; }
.open-status-line { font-weight: 700; margin: 0 0 0.6rem; }
.open-status-line.is-open { color: #1a6b2e; }
.open-status-line.is-closed { color: var(--muted); }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.2rem 1.5rem; }
.amenity ul { margin: 0.2rem 0 0.5rem; padding-left: 1.1rem; }
.review-summary { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.review-score { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.review-score b { font-family: Georgia, serif; font-size: 3rem; line-height: 1; font-weight: 500; }
.rating-bars { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; max-width: 28rem; }
.rating-bars li { display: grid; grid-template-columns: 4rem 1fr 3rem; gap: 0.6rem; align-items: center; font-size: 0.88rem; margin: 0.25rem 0; }
.bar { display: block; height: 0.65rem; background: #ece7e1; }
.bar span { display: block; height: 100%; background: var(--orange); }
.bar-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.map { width: 100%; max-width: 100%; height: 320px; border: 1px solid var(--line); display: block; margin-top: 0.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 2rem; }
.plain-list { list-style: none; margin: 0.3rem 0; padding: 0; }
.plain-list li { margin: 0.25rem 0; }
.card-grid-small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 0.5rem; }
.related-links { margin-top: 1.2rem; }
.studio-aside { position: sticky; top: 88px; }

@media (max-width: 860px) {
  .head-split { grid-template-columns: 1fr; }
  .studio-aside { position: static; }
  .f-field { min-width: 0; flex: 1 1 9rem; }
}

.review-summary + .tags, .review-summary ~ p .btn { margin-top: 0.4rem; }
#reviews > p:not(.note) { margin-top: 1rem; }

/* Long city pages: skip rendering off-screen cards until they scroll into view. */
.studio-card { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.studio-card[hidden] { display: none; }
