/* Places share the atlas palette and typography, without route controls. */
.home-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-choices .btn { min-height: 46px; padding: 10px 14px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.home-choices + .home__note { margin-top: 17px; line-height: 1.65; }
.catalog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.catalog-tabs__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(215,182,110,.045); color: var(--gold-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.catalog-tabs__button span { color: var(--muted); font-size: 13px; font-weight: 400; }
.catalog-tabs__button:hover, .catalog-tabs__button.is-active { background: rgba(215,182,110,.16); border-color: var(--gold); }
.catalog-tabs__button.is-active span { color: var(--gold-2); }
.places-title, .place-card__title { margin: 4px 0 10px; font: 400 28px/1.16 var(--serif); overflow-wrap: anywhere; }
.places-filters { gap: 8px; margin-top: 18px; }
.places-filters .input, .places-filters .select { min-height: 39px; font-size: 13px; }
.places-filters .select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.place-row { display: flex; align-items: center; width: 100%; gap: 11px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.place-row:hover { background: rgba(215,182,110,.045); }
.place-row__text { min-width: 0; flex: 1; }
.place-row__name { display: block; color: var(--cream); font-size: 13px; line-height: 1.5; }
.place-row__meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.place-photo { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 62px; margin: 0; padding: 3px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: #17221a; color: var(--gold); }
.place-photo > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.place-photo > svg { width: 36px; height: 36px; }
.place-photo--large { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 140px; margin: 19px 0 12px; padding: 9px; border-radius: 11px; cursor: zoom-in; }
.place-photo--large img { width: 100%; max-height: 245px; height: auto; object-fit: contain; }
.place-photo--large > svg { width: 52px; height: 52px; margin: 24px 0 10px; }
.place-photo figcaption { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 8px; text-align: left; width: 100%; }
.place-photo--empty { background: radial-gradient(ellipse at 40% 35%, rgba(215,182,110,.09), transparent 75%), #131e16; }
.place-photo--empty.place-photo--large { min-height: 140px; cursor: default; }
.place-photo--empty figcaption { text-align: center; }
.place-card__city { color: var(--gold-2); font-size: 13px; line-height: 1.6; }
.place-card__map { width: 100%; margin-bottom: 6px; }
.place-story { margin: 13px 0 22px; }
.sidebar__scroll .place-story p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; color: #cccbb9; overflow-wrap: anywhere; }
.place-details p { font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.place-details a { color: var(--gold-2); text-underline-offset: 3px; }
.place-photo-credit__title { font: 400 19px var(--serif); margin-top: 20px; }
.place-photo-credit__changes, .place-precision { color: var(--muted); }
.sidebar__scroll .place-details p { margin: 12px 0; }
.sidebar__scroll .place-card__title { font-size: 28px; line-height: 1.2; }
.city-filter { display: inline-flex; border: 1px solid var(--line-strong); background: rgba(215,182,110,.1); color: var(--gold-2); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.place-load-error { padding: 16px; margin-bottom: 18px; border: 1px solid var(--gold); border-radius: 10px; font-size: 14px; line-height: 1.7; }
.place-load-error .btn { margin-top: 14px; }
.literary-pin { cursor: pointer; outline: none; }
.literary-pin__hit { fill: transparent; stroke: transparent; }
.literary-pin__dot { fill: #263c2d; stroke: var(--gold); stroke-width: 1.5; }
.literary-pin:hover .literary-pin__dot, .literary-pin:focus .literary-pin__dot, .literary-pin.is-selected .literary-pin__dot { fill: var(--gold); stroke: #f9edc9; stroke-width: 2; }
.literary-pin__count { fill: var(--gold-2); font: 600 11px var(--sans); pointer-events: none; }
.literary-pin:hover .literary-pin__count, .literary-pin:focus .literary-pin__count { fill: #17231a; }
.literary-pin__label { fill: var(--gold-2); font: 600 12px var(--sans); paint-order: stroke; stroke: #0a130e; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
body[data-view="place"] .map-readout { display: none; }
body[data-catalog="places"] .map-shell { min-height: 400px; }
.photo-preview { position: fixed; z-index: 90; margin: 0; padding: 11px; border: 1px solid var(--line-strong); border-radius: 12px; background: #121d16; box-shadow: 0 16px 55px #0009; pointer-events: none; overflow: hidden; }
.photo-preview img { display: block; width: 100%; max-height: min(430px, calc(100dvh - 120px)); object-fit: contain; }
.photo-preview figcaption { font-size: 12px; color: var(--cream); line-height: 1.5; padding-top: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.photo-modal__panel { position: relative; padding: 40px 20px 16px; width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.photo-modal__panel > .modal__close { position: sticky; display: block; margin-left: auto; top: 0; }
.photo-modal__panel > img { display: block; width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; }
.photo-modal__panel > p { margin: 12px 0 0; line-height: 1.6; font-size: 13px; }
[data-photo-preview] { cursor: zoom-in; }
.avatar--zoom { font: inherit; }
.avatar--zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.avatar--zoom:disabled { cursor: default; }
.reading-list { list-style: none; padding: 0; margin: 6px 0 0; }
.reading-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--cream); font-size: 14px; line-height: 1.5; text-decoration: none; }
.reading-link > span { flex-shrink: 0; color: var(--gold); }
.reading-link:hover, .reading-work:hover { color: var(--gold-2); }
.reading-link:focus-visible, .reading-work:focus-visible, .related-author:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.reading-work { color: var(--gold-2); text-underline-offset: 3px; }
.related-author { display: block; width: 100%; min-height: 44px; padding: 9px 0; border: 0; background: none; color: var(--gold-2); font: 14px/1.5 var(--sans); text-align: left; cursor: pointer; }
.related-author:hover { text-decoration: underline; text-underline-offset: 3px; }
.place-author { border-top: 1px solid var(--line); margin-top: 14px; }
.catalog-tabs__button:focus-visible, .place-row:focus-visible, .place-photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.map-shell:focus { outline: none; }
.map-shell:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Use the same original logo as the main site. */
.brand { flex-shrink: 0; }
.brand__logo { display: block; width: 180px; height: auto; }

/* Readable directory controls and rows in both sections. */
.list-search .input { min-height: 44px; height: auto; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.home__lead { font-size: 14px; line-height: 1.6; }
.home__note { font-size: 12px; line-height: 1.6; }
.home__stat span { font-size: 11px; }
.author-row__name, .region-author__name { font-size: 14px; line-height: 1.5; }
.author-row__meta, .region-author__places { font-size: 12px; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }
.region-author__years { font-size: 12px; line-height: 1.5; }
.place-row__name { font-size: 14px; }
.place-row__meta { font-size: 12px; }
.list-count { font-size: 12px; }
.back-button { min-height: 36px; font-size: 13px; }
.more-btn, .place-card__map { min-height: 42px; font-size: 14px; }
.empty { font-size: 14px; line-height: 1.6; }

/* A native select keeps state; its themed menu lives outside the scroll panel. */
.atlas-select { position: relative; width: 100%; min-width: 0; }
.atlas-select__native { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; clip-path: inset(50%); overflow: hidden; opacity: 0; pointer-events: none; }
.atlas-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #101b14; color: var(--cream); font: 14px/1.5 var(--sans); text-align: left; cursor: pointer; }
.atlas-select__value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.atlas-select__selected-count { flex: 0 0 auto; min-width: 23px; padding: 1px 5px; border-radius: 4px; background: #d7b66e17; color: var(--gold-2); font-size: 12px; text-align: center; }
.atlas-select__chevron { width: 7px; height: 7px; flex: 0 0 7px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .12s; }
.atlas-select__trigger[aria-expanded="true"] { border-color: var(--gold); background: #1b291e; }
.atlas-select__trigger[aria-expanded="true"] .atlas-select__chevron { transform: rotate(225deg); margin-top: 4px; }
.atlas-select__trigger:hover { border-color: var(--gold); }
.atlas-select__trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.atlas-select__popup { position: fixed; z-index: 120; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: #162219; color: var(--cream); box-shadow: 0 16px 42px #0009; overflow: hidden; animation: atlas-select-in .12s ease-out; }
.atlas-select__search { flex: 0 0 auto; width: calc(100% - 8px); min-height: 40px; margin: 4px 4px 8px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: #0c160f; color: var(--cream); font: 14px/1.5 var(--sans); }
.atlas-select__search::placeholder { color: var(--muted); }
.atlas-select__search:focus { border-color: var(--gold); }
.atlas-select__options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #647052 #162219; }
.atlas-select__option { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--cream); text-align: left; font: 14px/1.5 var(--sans); cursor: pointer; }
.atlas-select__option-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.atlas-select__count { color: var(--muted); font-size: 12px; }
.atlas-select__check { width: 15px; flex: 0 0 15px; visibility: hidden; color: var(--gold-2); }
.atlas-select__option[aria-selected="true"] { background: #34422b; color: var(--gold-2); }
.atlas-select__option[aria-selected="true"] .atlas-select__check { visibility: visible; }
.atlas-select__option:hover, .atlas-select__option:focus-visible { background: #283824; outline: 1px solid var(--line-strong); outline-offset: -1px; }
.atlas-select__empty { margin: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@keyframes atlas-select-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .atlas-select__popup { animation: none; } .atlas-select__chevron { transition: none; } }

/* Keep all section links accessible, including the main site's home link. */
.topnav__site { display: inline-flex; }
@media (max-width: 1280px) {
  .brand__logo { width: 158px; }
  .topbar { gap: 12px; grid-template-columns: auto minmax(150px, 1fr) auto auto; }
  .brand__sub { display: none; }
  .topnav__link { padding: 7px; }
  .topbar__random span { display: none; }
  .topbar__random { width: 32px; justify-content: center; padding: 0; }
}
@media (max-width: 920px) {
  .brand__logo { width: 140px; }
  .topbar { height: auto; min-height: 96px; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 51px 37px; gap: 0 10px; padding: 4px 12px; }
  .brand { grid-column: 1; grid-row: 1; }
  .searchbox { grid-column: 2; grid-row: 1; }
  .topbar__random { grid-column: 3; grid-row: 1; }
  .topnav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 12px; }
  .topnav__link { font-size: 12px; min-height: 34px; padding: 7px 12px; }
  body[data-catalog="places"] .map-shell { min-height: 280px; height: min(46dvh, 420px); }
  body[data-view="place"] .map-readout { display: block; }
  body[data-view="place"] .map-readout__eyebrow { display: none; }
}
@media (max-width: 520px) {
  .brand__logo { width: 108px; }
  .topbar { padding: 3px 8px; gap: 0 7px; }
  .topnav { gap: 3px; justify-content: space-between; }
  .topnav__link { padding: 7px 10px; }
  .searchbox input { font-size: 12px; }
  .brand__mark { display: none; }
  .brand__name { font-size: 12px; }
  .sidebar__scroll .places-title, .sidebar__scroll .place-card__title { font-size: 25px; }
  body[data-catalog="places"] .map-shell { min-height: 280px; height: min(44dvh, 360px); }
  .place-photo--large img { max-height: 300px; }
}
