:root {
  --ink: #15130f; --muted: #6f6656; --line: #d5cab6; --bg: #fcfaf5;
  --paper: #fcfaf5; --accent: #9a5900; --light: #eee8dd; --amber: #78501f;
  --on-accent: #fff; --hover: #e6ddce; --accent-hover: #794600; --line-hover: #b5a58b; --paper-hover: #f8f3e9; --switch-off: #857967; --notice: #fff3df;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px;
  --field-radius: 8px; --surface-radius: 16px; --control-height: 44px; --action-height: 56px;
  font: 16px/1.5 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, .links a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: var(--s1); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: "Barlow Condensed", "Instrument Sans", sans-serif; text-wrap: balance; }
p, .event-list { text-wrap: pretty; }
.wrap { width: min(100% - var(--s8), 1024px); margin-inline: auto; }
header { padding-block: var(--s8) var(--s6); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
h1 { flex: 1; min-width: 0; font-size: clamp(1.9rem, 4.6vw, 2.7rem); line-height: 1.03; letter-spacing: -.048em; margin: 0; }
header p { margin: var(--s2) 0 0; font-size: .91rem; color: var(--muted); }
.view-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 192px; flex: 0 0 192px; gap: var(--s1); padding: var(--s1); border-radius: 12px; background: var(--light); }
.view-switch button { min-height: var(--control-height); min-width: 0; padding: var(--s1) var(--s2); border: 0; border-radius: var(--field-radius); font-size: .74rem; font-weight: 550; white-space: nowrap; color: var(--muted); background: transparent; }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.section-title { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.plan-title { margin-bottom: var(--s3); }
.results-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s6) 0 var(--s3); }
.results-title { min-width: 0; }
.results-view-controls { display: flex; flex: none; align-items: center; gap: var(--s3); }

/* A shared form grid: day spans the row, start point and travel share columns. */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.days { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s1); padding: var(--s1); margin: calc(-1 * var(--s1)); }
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: var(--s1); padding: var(--s1); border-radius: 12px; background: var(--light); }
.days button, .seg button { min-height: var(--control-height); min-width: 44px; padding: var(--s1); border: 0; border-radius: var(--field-radius); font-size: .86rem; font-weight: 670; color: var(--muted); background: transparent; }
.days button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.days button.today::after { content: 'Heute'; display: block; font-size: .625rem; font-weight: 500; line-height: 1.2; }
.origins { grid-column: 1; grid-row: 2; align-self: start; }
.custom-origin { grid-column: 1; grid-row: 3; min-width: 0; }
.travel-options { grid-column: 2; grid-row: 2 / span 2; display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.travel-toggle { display: flex; align-items: center; justify-self: start; gap: var(--s2); min-height: var(--control-height); font-size: .83rem; font-weight: 500; cursor: pointer; }
.travel-toggle input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
/* Switch dimensions and knob offsets are control geometry, not layout spacing. */
.switch { flex-shrink: 0; width: 34px; height: 20px; border-radius: 20px; background: var(--switch-off); position: relative; transition: background-color 120ms ease; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: white; border-radius: 50%; transition: transform 120ms ease; }
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { transform: translateX(14px); }
input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: var(--s1); }

/* Every field uses the same geometry in day, catalogue and detail views. */
select, #address-search { width: 100%; min-height: var(--control-height); border: 1px solid var(--line); border-radius: var(--field-radius); padding: var(--s2) var(--s3); color: var(--ink); background: var(--paper); }
select { appearance: none; -webkit-appearance: none; font-size: .8125rem; line-height: 20px; padding-inline-end: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%236f6656' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; text-overflow: ellipsis; }
.result-filters { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; min-width: 0; }
.result-filters label { min-width: 0; }
.result-filters select { width: auto; max-width: 100%; color: var(--muted); }
.result-filters select:has(option:checked:not([value="all"])) { color: var(--accent); font-weight: 650; }
.results-bar { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
#counter { flex-shrink: 0; margin: 0; font-size: .75rem; line-height: 20px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
#counter:empty { display: none; }
.address-field { position: relative; }
#address-search { font-size: 16px; line-height: 24px; }
#address-results { position: absolute; z-index: 10; width: 100%; margin-top: var(--s2); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #15130f20; overflow: hidden; }
#address-results [role='option'] { padding: var(--s3); min-height: var(--control-height); cursor: pointer; font-size: .88rem; }
#address-results [role='option'] + [role='option'] { border-top: 1px solid var(--line); }
#address-results [role='option']:hover, #address-results [aria-selected='true'] { background: var(--light); }
#address-status, #address-help { margin: var(--s2) 0 0; font-size: .8125rem; line-height: 20px; }
#address-status { color: var(--accent); }
#address-help { color: var(--muted); }

/* Cards share an inset, baseline spacing and fixed action hit areas. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.card { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: var(--s4); border: 1px solid transparent; border-radius: var(--surface-radius); background: var(--paper); box-shadow: 0 1px 2px #00000006, 0 3px 10px #00000005, 0 0 0 1px #00000006; }
.card-main { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); min-height: 112px; }
.card-heading { flex: 1; min-width: 0; }
.card-title { margin: 0; font-size: 1.1rem; font-weight: 720; line-height: 1.25; letter-spacing: -.025em; }
.venue-link, .back-link { min-height: var(--control-height); border: 0; padding: var(--s2) 0; background: none; text-align: left; font-size: .8125rem; color: var(--accent); text-decoration: underline; text-underline-offset: var(--s1); }
.card .venue-link { color: var(--muted); text-decoration: none; font-weight: 450; }
.card .venue-link:hover { color: var(--accent); text-decoration: underline; }
.address, .note, .schedule-note { margin: 0; color: var(--muted); }
.address, .card-facts { font-size: .875rem; line-height: 20px; }
.card .address { margin-top: var(--s1); }
.note, .schedule-note { font-size: .8125rem; line-height: 20px; }
.schedule-note { color: var(--amber); font-weight: 600; }
.photo { order: 2; flex: 0 0 128px; position: relative; margin: 0; }
.photo img { display: block; width: 128px; height: 96px; border-radius: var(--field-radius); object-fit: cover; }
.photo::after { content: ''; position: absolute; inset: 0 0 auto; height: 96px; border-radius: var(--field-radius); box-shadow: inset 0 0 0 1px #0000001a; pointer-events: none; }
.photo-empty::after { display: none; }
.venue-photo-empty { display: block; width: 64px; height: 64px; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.times { display: inline-flex; align-items: center; gap: var(--s2); margin: 0; font-size: .89rem; line-height: 20px; font-weight: 650; }
.meta-icon { flex-shrink: 0; opacity: .7; vertical-align: -.125em; }
.card-facts { margin: 0; color: var(--muted); }
.labels { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.tag { padding: var(--s1) var(--s2); border-radius: var(--s1); font-size: .8125rem; line-height: 20px; font-weight: 550; background: var(--light); color: var(--muted); }
.tag.check { color: var(--amber); background: var(--notice); }
.event-list { margin: 0; padding-left: var(--s6); font-size: .8125rem; }
.event-list a { color: var(--accent); }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); align-items: stretch; margin-top: auto; padding-top: var(--s2); }
.links a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); height: var(--action-height); min-width: 0; padding: var(--s1) var(--s2); border: 1px solid var(--line); border-radius: var(--field-radius); text-align: center; text-decoration: none; font-size: .8125rem; font-weight: 650; }
.links .offer { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card.unavailable .links .offer { justify-self: start; height: auto; min-height: var(--control-height); padding-inline: var(--s3); background: var(--paper); color: var(--muted); border-color: var(--line); }
.links .route { color: var(--accent); background: var(--paper); font-weight: 600; }
.action-label { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); line-height: 20px; }
.action-label .icon-external { width: 14px; height: 14px; opacity: 1; }
.route-estimate { min-width: 14ch; white-space: nowrap; font-size: .8125rem; line-height: 16px; font-weight: 450; color: var(--muted); }
.links .extra { grid-column: 1 / -1; align-items: flex-start; height: auto; min-height: var(--control-height); border: 0; border-radius: 0; padding: var(--s2) 0; color: var(--accent); background: none; text-align: left; font-weight: 450; text-decoration: underline; text-underline-offset: var(--s1); }
.card .links > .offer:only-child { grid-column: 1 / -1; }
/* Keep native link targets stationary throughout a press. */
.links .offer > *, .links .offer svg *, .links .route > *, .links .route svg * { pointer-events: none; }
button, .links a { transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease; }
.links .offer:active, .links .route:active { box-shadow: inset 0 0 0 100px #0000000c; }
.times, .route-estimate, #counter, .schedule-day { font-variant-numeric: tabular-nums; }
.empty { margin: 0; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--surface-radius); color: var(--muted); background: var(--paper); }
summary { min-height: var(--control-height); width: fit-content; padding-block: var(--s2); color: var(--accent); font-weight: 650; }

/* Catalogue and full-width days use the same surface rhythm. */
.catalog-heading { margin-bottom: var(--s4); }
.catalog-heading > .note { margin-top: var(--s2); }
.catalog-filters { margin-top: var(--s3); }
.center-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s3); }
.center-index button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s2); min-height: 88px; padding: var(--s4); border: 1px solid var(--line); border-radius: 12px; text-align: left; color: var(--ink); background: var(--paper); font-weight: 720; }
.center-index small { font-size: .8125rem; line-height: 20px; color: var(--muted); font-weight: 500; }
.center-lead, .schedule-day { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--surface-radius); background: var(--paper); }
.center-lead h2 { margin: var(--s2) 0; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.025em; }
.center-lead .note, .center-lead .source-links { margin-top: var(--s2); }
.source-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.source-links a, .schedule-offer, .event-list a, .venue-suggestion-link { display: inline-flex; align-items: center; min-height: var(--control-height); color: var(--accent); font-size: .8125rem; text-underline-offset: var(--s1); }
.empty .venue-suggestion-link { display: flex; width: fit-content; }
.center-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s3); }
.schedule-day h3 { margin: 0 0 var(--s2); font-size: 1rem; line-height: 24px; color: var(--accent); }
.schedule-day ul { list-style: none; padding: 0; margin: 0; }
.schedule-day li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s2) var(--s4); align-items: center; padding-block: var(--s3); font-size: .8125rem; line-height: 20px; }
.schedule-day li + li { border-top: 1px solid var(--line); }
.schedule-day strong { display: block; }
.schedule-meta { color: var(--muted); }
.schedule-day li > .note, .schedule-day li > a { grid-column: 2 / -1; justify-self: start; }
.site-footer { margin-block: var(--s8) var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 20px; }
.footer-suggestion { margin: 0; }
.footer-suggestion .venue-suggestion-link { font-weight: 650; }
.footer-credits, .routing-credits { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: var(--s3); }
.footer-credits a, .photo-credits summary { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-hover); text-underline-offset: 3px; }
.routing-credits a { display: inline-flex; align-items: center; min-height: var(--control-height); white-space: nowrap; }
.photo-credits summary { display: flex; align-items: center; gap: var(--s1); padding: 0; font-weight: 500; list-style: none; }
.photo-credits summary::-webkit-details-marker { display: none; }
.photo-credits summary::after { content: ''; width: 5px; height: 5px; margin: -3px 2px 0; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.photo-credits[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.photo-credits ul { margin: 0 0 var(--s2); padding-inline-start: var(--s4); max-width: 60ch; }
.photo-credits li + li { margin-top: var(--s2); }

@media (hover: hover) {
  .days button:not([aria-pressed='true']):hover, .seg button:not([aria-pressed='true']):hover,
  .view-switch button:not([aria-pressed='true']):hover { background: var(--hover); color: var(--ink); }
  .links .offer:hover { background: var(--accent-hover); }
  .card.unavailable .links .offer:hover { background: var(--light); color: var(--accent); }
  .footer-credits a:hover, .photo-credits summary:hover { color: var(--accent); }
  .links .route:hover { background: var(--light); border-color: var(--line-hover); }
  .center-index button:hover { border-color: var(--line-hover); background: var(--paper-hover); }
}
@media (max-width: 690px) {
  :root { --action-height: 64px; }
  .wrap { width: calc(100% - var(--s8)); }
  header { padding-block: var(--s6) var(--s4); }
  h1 { font-size: clamp(1.75rem, 7.2vw, 1.875rem); line-height: 1.05; }
  header p { margin-top: var(--s4); }
  .view-switch button { font-size: .8125rem; font-weight: 600; }
  .filters { grid-template-columns: minmax(0, 1fr); padding: var(--s3); }
  .days, .origins, .custom-origin, .travel-options { grid-column: 1; grid-row: auto; }
  .days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(44px, 1fr); overflow-x: auto; scrollbar-width: none; scroll-padding: var(--s1); }
  .days::-webkit-scrollbar { display: none; }
  .seg button { font-size: .8rem; white-space: nowrap; }
  .travel-options { gap: var(--s3); }
  .travel-toggle { font-size: .8rem; }
  .result-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .result-filters select { width: 100%; min-width: 0; }
  .result-filters > label:last-child:nth-child(3) { grid-column: 1 / -1; }
  .grid, .center-index { grid-template-columns: minmax(0, 1fr); }
  .card-title { font-size: 1.06rem; }
  .links .route { font-size: .75rem; }
  .action-label { line-height: 16px; }
  .offer .action-label { white-space: nowrap; }
  .source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-links a { min-width: 0; }
  .schedule-day li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .schedule-day li > .note, .schedule-day li > a { grid-column: 1; }
}
@media (max-width: 359px) {
  .photo { flex-basis: 104px; }
  .photo img { width: 104px; height: 78px; }
  .photo::after { height: 78px; }
  .offer .action-label { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  button, .links a, .switch, .switch::after { transition: none; }
}
@media print {
  .filters, .links, details, .view-switch, .result-filters { display: none; }
  .card, .schedule-day li { break-inside: avoid; }
}

/* Quiet header preferences; icon size is independent of the 44px touch target. */
.header-actions { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.utilities { display: flex; align-items: center; gap: 0; }
.utility-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-width: 44px; min-height: 44px; padding: var(--s2); border: 0; border-radius: var(--field-radius); color: var(--muted); background: transparent; }
.utility-button span { font-size: 11px; line-height: 16px; font-weight: 500; }
.utility-icon { flex-shrink: 0; pointer-events: none; }
.utility-button .icon-sun { display: none; }
:root[lang="en"] .days button.today::after { content: 'Today'; }
:root[data-theme="dark"] {
  --bg: #15130f; --paper: #1e1a14; --light: #302b22; --line: #474033;
  --muted: #b8ae99; --ink: #fcfaf5; --accent: #f5b335; --on-accent: #15130f;
  --amber: #f5c46b; --hover: #3c3529; --accent-hover: #ffd078;
  --line-hover: #73654e; --paper-hover: #272219; --switch-off: #6f6656; --notice: #382a15;
}
:root[data-theme="dark"] .utility-button .icon-moon { display: none; }
:root[data-theme="dark"] .utility-button .icon-sun { display: block; }
@media (hover: hover) { .utility-button:hover { background: var(--light); color: var(--ink); } }
@media (max-width: 690px) {
  /* Shared page edges; utilities stay with the title, navigation gets its own row. */
  .header-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s2); }
  .header-top h1 { grid-column: 1; grid-row: 1; }
  .header-actions { display: contents; }
  .utilities { grid-column: 2; grid-row: 1; gap: var(--s1); }
  .utility-button { width: 44px; height: 44px; padding: var(--s1); }
  .view-switch { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}

:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23b8ae99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); }

/* Venue discovery: compact photo rows and an optional geographic view. */
.catalog-title-row {display:flex;align-items:center;justify-content:space-between;gap:var(--s4);}
.catalog-title-row .section-title {margin:0;}
.catalog-view-switch {display:flex;flex:none;gap:var(--s1);padding:var(--s1);border-radius:var(--field-radius);background:var(--light);}
.catalog-view-switch button {min-width:64px;min-height:44px;border:0;border-radius:var(--s1);background:transparent;color:var(--muted);font-size:.8125rem;font-weight:600;}
.catalog-view-switch button[aria-pressed='true'] {background:var(--paper);color:var(--ink);box-shadow:0 0 0 1px var(--line);}
.center-index {grid-auto-rows:auto;}
.center-index button {display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:var(--s3);min-height:88px;padding:var(--s3);border-radius:var(--field-radius);font-size:.875rem;line-height:20px;font-weight:600;}
.center-index img {width:64px;height:64px;object-fit:cover;border-radius:var(--s1);}
.center-index-text {min-width:0;}
.center-index small {display:block;margin-top:var(--s1);}
.map-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin-bottom:var(--s2);}
.map-toolbar button,.map-status button {min-height:44px;padding:var(--s2) var(--s3);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);color:var(--ink);font-size:.8125rem;}
.map-toolbar span {margin-left:auto;color:var(--muted);font-size:.8125rem;}
.map-toolbar button[aria-pressed='true'] {background:var(--accent);border-color:var(--accent);color:var(--on-accent);}
.map-status {display:flex;align-items:center;justify-content:space-between;gap:var(--s3);padding:var(--s3);margin-bottom:var(--s2);border:1px solid var(--line);border-radius:var(--field-radius);color:var(--muted);font-size:.8125rem;}
.venue-map {height:440px;height:clamp(320px,55svh,480px);position:relative;isolation:isolate;z-index:0;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--light);font-family:inherit;}
.venue-map .leaflet-control-zoom a {width:44px;height:44px;line-height:44px;background:var(--paper);color:var(--ink);font-size:24px;}
.venue-map .leaflet-control-attribution {font-size:11px;line-height:16px;color:#403a31;background:#fcfaf5;}
.venue-map .leaflet-control-attribution a {color:#714400;}
.venue-map .leaflet-marker-icon:focus-visible {outline:3px solid #15130f;outline-offset:0;border-radius:50%;}
.venue-pin {display:grid;place-items:center;}
.venue-pin span {display:block;position:relative;margin:8px auto;width:24px;height:28px;border:2px solid #fcfaf5;border-radius:50% 50% 50% 0;background:#9a5900;box-shadow:0 1px 3px #15130f44;transform:rotate(-45deg);}
.venue-pin span::after {content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#fff;margin:6px;}
.venue-pin.is-selected span {outline:3px solid #15130f;outline-offset:2px;}
.venue-cluster {display:grid;place-items:center;border-radius:50%;background:var(--paper);border:2px solid var(--accent);color:var(--ink);font:700 14px/1 "Instrument Sans",sans-serif;box-shadow:0 0 0 4px #9a590020;}
.venue-cluster > span {display:flex;width:100%;height:100%;align-items:center;justify-content:center;}
.map-selection {margin-top:var(--s3);padding:var(--s4);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);min-height:56px;}
.map-selection-main {display:flex;align-items:center;gap:var(--s3);}
.map-selection-main img {width:64px;height:64px;object-fit:cover;border-radius:var(--s1);flex:none;}
.map-selection h3 {margin:0;font-size:1.125rem;line-height:24px;}
.map-selection p {font-size:.8125rem;line-height:20px;}
.map-selection-links {display:grid;grid-template-columns:1fr 1fr;gap:var(--s2);margin-top:var(--s3);}
.map-selection-links button,.map-selection-links a {display:flex;align-items:center;justify-content:center;min-height:44px;padding:var(--s2);border:1px solid var(--accent);border-radius:var(--field-radius);font-size:.8125rem;font-weight:600;color:var(--accent);text-decoration:none;background:var(--paper);}
.map-selection-links button {background:var(--accent);color:var(--on-accent);}
.map-location-list {margin-top:var(--s3);}
.map-location-list ul {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:var(--s2);}
.map-location-list button {width:100%;min-height:64px;display:flex;flex-direction:column;align-items:flex-start;padding:var(--s3);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);color:var(--ink);text-align:left;font-size:.875rem;}
.map-location-list small {color:var(--muted);font-size:.8125rem;}
.map-location-list button[aria-pressed='true'] {border-color:var(--accent);}
.offer-map-frame {position:relative;}
.offer-map-loading {position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;margin:0;color:var(--muted);font-size:.875rem;}
.offer-map-frame + .map-status {margin:var(--s2) 0 0;}
.offer-map-selection {border-radius:var(--surface-radius);}
.offer-map-place {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--s2) var(--s3);}
.offer-map-route {display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-height:var(--control-height);padding:var(--s1) var(--s3);border:1px solid var(--line);border-radius:var(--field-radius);color:var(--accent);font-size:.8125rem;font-weight:650;text-decoration:none;}
.offer-map-matches {list-style:none;margin:var(--s3) 0 0;padding:0;}
.offer-map-matches li {border-top:1px solid var(--line);padding:var(--s1) 0 var(--s2);}
.offer-map-matches li:last-child {padding-bottom:0;}
.offer-map-activity {display:flex;align-items:center;width:fit-content;min-height:var(--control-height);color:var(--accent);font-weight:650;text-underline-offset:var(--s1);}
.offer-map-selection .offer-map-time {margin:0;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;}
#offer-map-panel:not([hidden]) + #results:not(:empty) { margin-top: var(--s4); }
@media (hover:hover) {
  .catalog-view-switch button:not([aria-pressed='true']):hover, .offer-map-route:hover {background:var(--hover);}
}
@media (max-width:420px) {
  .results-view-controls {flex-direction:column;align-items:flex-end;gap:var(--s1);}
  .results-title-row {align-items:flex-end;}
  .results-title {align-self:center;}
}
@media print {
  .results-view-controls .catalog-view-switch {display:none;}
}
@media (max-width:690px) {
  .catalog-title-row {gap:var(--s2);}
  .catalog-view-switch button {min-width:56px;}
  .map-location-list ul {grid-template-columns:1fr;}
  .venue-map {height:360px;height:clamp(300px,48svh,400px);}
}
@media (pointer:coarse) {.venue-map:not(.can-drag) {touch-action:pan-y;}}
@media (pointer:fine) {[data-map-move] {display:none;}}
