.places-page { max-width: 1440px; margin: 0 auto; padding: calc(var(--tnav-h, 48px) + 28px) 20px 72px; }
.places-page > .crumbs { margin: 0 0 18px; }
.places-head { margin: 0 0 26px; }
.places-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.places-head h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--text); }
.places-sub { margin: 0; font-size: .98rem; color: var(--muted); }
.places-sub a { color: var(--text); font-weight: 600; }

.places-section { margin: 0 0 44px; scroll-margin-top: calc(var(--tnav-h, 48px) + 64px); }
.places-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.places-section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.places-all { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.places-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.places-note { font-size: .82rem; color: var(--muted); }

.places-tabs {
  position: sticky; top: var(--tnav-h, 48px); z-index: 20;
  display: flex; gap: 4px; margin: 0 -20px 26px; padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow-x: auto; scrollbar-width: none;
}
.places-tabs::-webkit-scrollbar { display: none; }
.places-tabs a {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
  font-size: .88rem; font-weight: 700; color: var(--muted); text-decoration: none;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  transition: background-color .15s ease, color .15s ease;
}
.places-tabs a:hover { color: var(--text); }
.places-tabs a[aria-current="true"] { background: var(--brand); color: #fff; }
.places-tabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.place-card {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--bg-soft, color-mix(in srgb, var(--text) 8%, var(--card))); color: #fff; text-decoration: none;
}
.place-card img, .place-card-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.place-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.1) 55%, transparent); }
.place-card-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.place-card-name { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.place-card-meta { font-size: .8rem; color: rgba(255,255,255,.85); }
.place-card:hover img, .place-card:focus-visible img { transform: scale(1.05); }
.place-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.place-states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .place-states { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .place-states { grid-template-columns: 1fr; } }
.place-state { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--card); }
.place-state-head { position: relative; display: block; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; background: color-mix(in srgb, var(--text) 10%, var(--card)); overflow: hidden; }
.place-state-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.place-state-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 65%); }
.place-state-head:hover img { transform: scale(1.04); }
.place-state-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.place-state-name { font-size: 1.2rem; font-weight: 800; }
.place-state-meta { font-size: .8rem; color: rgba(255,255,255,.85); }
.place-state-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.place-state-list a {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.place-state-list a .place-state-n { min-width: 0; color: inherit; font-weight: inherit; }
.place-state-list a .place-state-c { flex: none; white-space: nowrap; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.place-state-list a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.place-state-list .place-state-more { color: var(--brand); }

.places-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places-chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.places-chips a span { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.places-chips a:hover { border-color: var(--brand); }

.places-cities { padding: 0; background: transparent; }
.places-cities .cities-viewport { padding: 0; }
.places-cities .cities-viewport::after { display: none; }
.places-cities .cities-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px;
}
.places-cities .city-item { margin: 0; min-width: 0; }
.places-cities a.city-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #fff; background: var(--bg-soft, #222); text-decoration: none; }
.places-cities .city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.places-cities .city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15) 45%, transparent 70%); }
.places-cities .city-text { position: absolute; left: 16px; right: 48px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.places-cities .city-name { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 800; line-height: 1.1; color: #fff; }
.places-cities .city-meta { font-size: .8rem; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.places-cities .city-go {
  position: absolute; right: 14px; bottom: 16px; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.18);
  transition: transform .2s ease, background-color .2s ease;
}
.places-cities a.city-card:hover img { transform: scale(1.05); }
.places-cities a.city-card:hover .city-go { background: var(--brand); transform: translateX(2px); }

@media (max-width: 1100px) { .places-cities .cities-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .places-cities .cities-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .places-page { padding: calc(var(--tnav-h, 48px) + 18px) 14px 56px; }
  .places-tabs { margin: 0 -14px 20px; padding: 8px 14px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .place-card-name { font-size: 1rem; }
  .places-section { margin-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .place-card img, .place-state-head img, .places-cities .city-card img { transition: none; }
}

.place-grid--even { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .place-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.places-pager { margin: 6px 0 0; }
.places-chips.is-collapsed .places-chip-extra { display: none; }
.places-chips-toggle button {
  display: inline-flex; align-items: center; padding: 7px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .86rem 'Montserrat', sans-serif; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}
.places-chips-toggle button:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.places-chips-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 600px) {
  .places-section-head { flex-wrap: wrap; }
  }

.places-blurb { margin: 12px 0 0; max-width: 70ch; font-family: 'Source Sans Pro', sans-serif; font-size: 1rem; line-height: 1.6; color: var(--text); }
.places-head[data-place-path] .places-blurb { margin-top: 10px; max-width: 64ch; }
.places-blurb p { margin: 0 0 .6em; max-width: none; text-align: left; }
.places-blurb p:last-child { margin-bottom: 0; }
.places-stats { margin-top: 14px; font-weight: 600; font-size: .9rem; }
.places-head.has-cover .places-stats { position: absolute; right: 20px; bottom: 18px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.places-head.has-cover { padding-bottom: 56px; }
.place-note-edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text); font: 700 .78rem 'Montserrat', sans-serif; cursor: pointer; }
.place-note-edit:hover { border-color: var(--brand); color: var(--brand); }
.place-note-form { margin-top: 12px; max-width: 64ch; display: flex; flex-direction: column; gap: 8px; }
.place-note-form textarea { width: 100%; box-sizing: border-box; min-height: 120px; padding: 10px 12px; border: 1.5px solid var(--input-border); border-radius: 10px; background: var(--input-bg); color: var(--input-text); font: 500 .95rem/1.55 'Montserrat', sans-serif; resize: vertical; }
.place-note-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-note-row .place-note-count { margin-right: auto; color: var(--muted); font-size: .8rem; }
.place-note-row button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font: 700 .85rem 'Montserrat', sans-serif; cursor: pointer; }
.place-note-row button[data-save] { background: var(--brand); border-color: var(--brand); color: #fff; }
.place-note-row button:disabled { opacity: .6; cursor: default; }
.place-note-msg { margin: 0; font-size: .82rem; color: var(--muted); }
.place-rail {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.place-rail::-webkit-scrollbar { display: none; }
.place-rail > li { scroll-snap-align: start; min-width: 0; }
.place-rail .place-card { height: 100%; }
.place-rail-nav { display: flex; gap: 8px; }
.place-rail-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.place-rail-arrow:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.place-rail-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .place-rail { grid-auto-columns: calc((100% - 14px) / 2.2); } }
@media (max-width: 600px) { .place-rail { grid-auto-columns: 72%; gap: 10px; } }
.places-head.has-cover {
  position: relative; isolation: isolate; overflow: hidden; min-height: 230px;
  margin: -18px -20px 26px; padding: 18px 20px 24px; border-radius: 20px;
}
.places-head.has-cover > .crumbs { margin: 0 0 18px; }
.places-head.has-cover::before,
.places-head.has-cover::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; }
.places-head.has-cover::before {
  z-index: -2; left: 0; right: 0;
  background: var(--place-cover) center / cover no-repeat;
  filter: blur(70px) saturate(1.5); opacity: .32; transform: scale(1.3);
}
.places-head.has-cover::after {
  z-index: -1; left: 25%; right: 0;
  background: var(--place-cover) center / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 35%, #000 85%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 35%, #000 85%);
}
.places-head.has-cover > * { position: relative; }
:root:not(.theme-dark) .places-head.has-cover::after { opacity: .4; }
@media (max-width: 760px) {
  .places-head.has-cover { min-height: 0; padding-bottom: 20px; }
  .places-head.has-cover .places-stats { position: static; display: inline-block; margin-top: 14px; }
  .places-head.has-cover::after { left: 0; opacity: .22; }
}
@media (max-width: 600px) {
  .places-head.has-cover { margin: -12px -14px 22px; padding: 12px 14px 20px; border-radius: 16px; }
}

.places-filter { margin: 0 0 14px; }
.places-filter .filter-pill { font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.places-featured > li[hidden] { display: none; }
.places-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.places-switch button {
  padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 700 .84rem 'Montserrat', sans-serif; color: var(--muted); transition: background-color .15s ease, color .15s ease;
}
.places-switch button:hover { color: var(--text); }
.places-switch button[aria-selected="true"] { background: var(--brand); color: #fff; }
.places-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
