.places-main { max-width: 1320px; margin: 0 auto; padding: 61px 7.2% 78px; }
.places-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 25px; }
.places-heading .eyebrow { margin-bottom: 13px; }
.places-heading h1 { margin: 0; font: 500 clamp(38px, 5vw, 62px)/1.04 var(--serif); letter-spacing: -.045em; }
.places-heading h1 em { color: #849584; font-weight: 500; }
.places-intro { max-width: 340px; margin: 0 0 5px; color: #72796e; font-size: 11px; line-height: 1.9; }
.places-filters { display: grid; grid-template-columns: minmax(200px,1fr) minmax(200px,.5fr) auto auto; align-items: end; gap: 12px; margin: 28px 0 18px; padding: 15px; background: #ebece3; }
.places-filters label { display: grid; gap: 6px; color: #697468; font-size: 8px; font-weight: 800; }
.places-filters input, .places-filters select { min-width: 0; height: 40px; border: 1px solid #d6d8cd; border-radius: 2px; padding: 0 11px; outline: none; background: #fffefa; color: #263b31; font: 500 10px var(--sans); }
.places-filters input:focus, .places-filters select:focus { border-color: #718c7a; box-shadow: 0 0 0 2px rgba(113,140,122,.12); }
.places-filters .button { min-height: 40px; gap: 16px; padding: 0 14px; font-size: 9px; }
.clear-filter { padding-bottom: 12px; color: #758071; font-size: 9px; font-weight: 800; }
.places-results-heading { display: flex; align-items: baseline; gap: 6px; margin: 0 0 11px; color: #697468; font-size: 9px; }
.places-results-heading strong { color: #d77950; font: 500 17px var(--serif); }
.places-osm-note { margin-left: auto; color: #8a8e82; font-size: 8px; }
.places-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(370px,.9fr); gap: 15px; align-items: start; }
.places-map-wrap { position: sticky; top: 15px; overflow: hidden; background: #e7e6d9; }
.places-map { width: 100%; height: min(70vh, 700px); min-height: 440px; z-index: 1; }
.places-map-label { position: absolute; top: 13px; right: 13px; z-index: 500; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 80px); padding: 9px 11px; background: rgba(251,250,245,.95); color: #526354; font-size: 8px; font-weight: 800; box-shadow: 0 2px 10px rgba(31,48,37,.1); }
.places-map-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; padding: 10px 11px; background: #fbfaf5; color: #687267; font-size: 7px; }
.places-map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-marker { display: grid; width: 19px; height: 19px; place-items: center; border: 2px solid white; border-radius: 50% 50% 50% 5px; color: white; font-size: 10px; font-style: normal; font-weight: 800; box-shadow: 0 1px 4px rgba(32,47,37,.18); }
.legend-marker-architecture { background: #526d5d; }
.legend-marker-religious { background: #7775a8; }
.legend-marker-museum { background: #c77f5e; }
.legend-marker-monument { background: #a75f4f; }
.legend-marker-theatre { background: #8b6949; }
.legend-marker-nature { background: #608d6a; }
.legend-marker-historic { background: #7d8171; }
.legend-marker-other { background: #7b8b95; }
.places-list { max-height: min(70vh,700px); min-height: 440px; overflow-y: auto; padding-right: 3px; }
.place-card { display: grid; grid-template-columns: 32px minmax(0,1fr) 19px; align-items: start; gap: 10px; margin-bottom: 8px; padding: 14px 13px; background: #fbfaf5; transition: transform .2s, box-shadow .2s; }
.place-card:hover, .place-card:focus-visible { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(40,53,43,.08); outline: none; }
.place-card-number { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e0d6ca; border-radius: 50%; color: #d77950; font: 500 12px var(--serif); }
.place-card-body { display: grid; gap: 5px; }
.place-category { color: #85897d; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.place-card-body strong { font: 500 19px/1.15 var(--serif); letter-spacing: -.01em; }
.place-card-summary, .place-address { color: #737a6f; font-size: 9px; line-height: 1.6; }
.place-address { color: #8a8e82; }
.place-card-arrow { justify-self: end; color: #d77950; font-size: 15px; }
.places-empty { padding: 35px 20px; background: #fbfaf5; text-align: center; }
.places-empty .empty-icon { color: #d77950; font-size: 23px; }
.places-empty h2 { margin: 9px 0; font: 500 22px var(--serif); }
.places-empty p { color: #737a6f; font-size: 9px; }
.places-empty a { color: #536f5d; font-size: 9px; font-weight: 800; }
.places-attribution { margin: 15px 0 0; color: #85897d; font-size: 8px; line-height: 1.6; }
.place-detail-credit { margin: 0 auto; padding: 0 5% 28px; max-width: 1190px; }
.places-attribution a, .place-data-credit a { color: #536f5d; text-decoration: underline; text-underline-offset: 2px; }
.place-detail-main { max-width: 1190px; min-height: calc(100vh - 160px); margin: 0 auto; padding: 29px 5% 70px; }
.place-detail-main > .back-link { margin-bottom: 24px; }
.place-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.78fr); gap: 7%; align-items: start; }
.place-detail-copy { min-width: 0; }
.place-detail-copy > .eyebrow { margin-bottom: 13px; }
.place-detail-copy h1 { margin: 0; font: 500 clamp(38px, 4.8vw, 62px)/1.04 var(--serif); letter-spacing: -.04em; }
.place-detail-address { margin: 10px 0 0; color: #85897d; font-size: 9px; }
.place-detail-summary { max-width: 560px; margin: 17px 0; color: #687267; font-size: 12px; line-height: 1.8; }
.place-detail-image-wrap { position: relative; margin: 20px 0; background: #e7e6d9; }
.place-detail-image { display: block; width: 100%; max-height: 345px; object-fit: cover; }
.place-detail-image-wrap figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 8px; background: rgba(36,57,47,.8); color: white; font-size: 7px; line-height: 1.4; text-align: right; }
.place-detail-image-wrap figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.place-image-placeholder { min-height: 240px; display: flex; align-items: center; justify-content: space-between; margin: 19px 0; padding: 22px; background: linear-gradient(145deg,#ebe7d9 0 54%,#a8b9a8 54% 100%); color: #657d6c; font: 500 23px/1.1 var(--serif); }
.place-image-placeholder span:last-child { align-self: start; color: #d77950; font: 25px var(--sans); }
.place-story { max-width: 680px; margin: 25px 0; }
.place-story h2 { margin: 0 0 10px; font: 500 25px var(--serif); }
.place-story p { margin: 0; color: #657064; font-size: 11px; line-height: 1.9; white-space: pre-wrap; }
.place-story-pending { padding: 15px; background: #e9ece3; }
.place-story-pending h2 { font-size: 20px; }
.place-audio { margin: 17px 0; }
.place-detail-map-column { position: sticky; top: 16px; }
.place-detail-map { width: 100%; height: min(55vh,520px); min-height: 360px; background: #e7e6d9; }
.place-coordinate-caption { margin-top: 8px; color: #85897d; font-size: 8px; }
.places-back-button { margin-top: 16px; }
.place-data-credit { margin-top: 14px; color: #85897d; font-size: 8px; line-height: 1.6; }

@media(max-width:900px) {
  .places-main { padding-right: 5%; padding-left: 5%; }
  .places-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); }
  .place-detail-grid { gap: 4%; }
}
@media(max-width:680px) {
  .places-main { padding: 38px 18px 52px; }
  .places-heading { display: block; }
  .places-heading h1 { font-size: 43px; }
  .places-intro { margin-top: 13px; font-size: 10px; }
  .places-filters { grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px; }
  .places-search-label { grid-column: 1/-1; }
  .places-filters .button { justify-self: start; }
  .clear-filter { justify-self: end; }
  .places-results-heading { flex-wrap: wrap; }
  .places-osm-note { width: 100%; margin: 3px 0 0; }
  .places-layout { grid-template-columns: 1fr; gap: 11px; }
  .places-map-wrap { position: relative; top: auto; }
  .places-map { height: 46vh; min-height: 300px; }
  .places-map-label { top: 10px; right: 10px; font-size: 7px; }
  .places-list { max-height: none; min-height: 0; overflow: visible; }
  .place-detail-main { padding: 22px 17px 48px; }
  .place-detail-grid { grid-template-columns: 1fr; gap: 25px; }
  .place-detail-copy h1 { font-size: 43px; }
  .place-detail-map-column { position: relative; top: auto; }
  .place-detail-map { height: 40vh; min-height: 285px; }
}

/* polish */
.places-heading h1 { font-size: clamp(40px, 5.4vw, 66px); }
.places-intro { font-size: 13px; }
.places-filters label { font-size: 10px; }
.places-results-heading { font-size: 11px; }
.place-card-body strong { font-size: 20px; }
.place-card-summary { font-size: 12px; }
.place-card-summary, .place-address { line-height: 1.65; }
.place-detail-copy h1 { font-size: clamp(40px, 5vw, 64px); }
.place-detail-summary { font-size: 15px; line-height: 1.8; }
.place-story h2 { font-size: 27px; }
.place-story p { font-size: 14px; line-height: 1.9; }
.place-detail-address { font-size: 11px; }
.place-data-credit, .places-attribution { font-size: 10px; }
@media (max-width: 650px) {
  .places-intro { font-size: 12px; }
  .place-detail-summary { font-size: 13px; }
  .place-story p { font-size: 13px; }
}
