/* Variant B: catalog grid + monument page. */
.catalog { padding-top: 22px; }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.cat-head h1 { margin: 0; }
.filterbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); padding: 12px 0 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.filterbar .search { box-shadow: none; }
.selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.selects .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
@media (min-width: 900px) { .filterbar { grid-template-columns: 1fr auto; } .selects { grid-template-columns: repeat(3, 170px); } .filterbar .chips { grid-column: 1 / -1; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); gap: 14px; }
@media (max-width: 420px) { .grid { gap: 10px; } }
.mcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.mcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.mcard .ph { aspect-ratio: 4/3; background: var(--surface-2); }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard .ph .placeholder svg { width: 34px; height: 34px; }
.mcard.no-photo .ph { aspect-ratio: 4/2; }
.mcard .info { padding: 9px 11px 11px; display: grid; gap: 3px; flex: 1; }
.mcard h3 { font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard h3 a { color: var(--ink); }
.mcard h3 a::after { content: ""; position: absolute; inset: 0; }
.mcard .meta { font-size: 12.5px; color: var(--ink-2); }
.mcard.visited { border-color: color-mix(in srgb, var(--visited) 45%, var(--line)); }
.quick { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.quick button { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgb(255 255 255 / .92); color: #333; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / .25); }
.quick button svg { width: 18px; height: 18px; }
.quick button[aria-pressed="true"][data-q="visited"] { background: var(--visited); color: #fff; }
.quick button[aria-pressed="true"][data-q="want"] { background: var(--want); color: #fff; }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--ink-2); }
/* monument page */
.mpage { display: grid; gap: 28px; padding: 22px 0 10px; }
@media (min-width: 900px) { .mpage { grid-template-columns: 1.15fr 1fr; align-items: start; } .mpage aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--ink-2); }
.minimap { height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 14px 0; }
.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nearby a { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.nearby .ph { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); margin-bottom: 5px; }
.nearby .ph img { width: 100%; height: 100%; object-fit: cover; }
.nearby .ph .placeholder svg { width: 28px; height: 28px; }
.nearby span { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
/* photos must not stretch a card: the image is laid over a fixed 4:3 box */
.mcard .ph { position: relative; overflow: hidden; flex: none; }
.mcard .ph img { position: absolute; inset: 0; }
.mcard .ph .placeholder { position: absolute; inset: 0; }
