:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #0a0a0a;
  --muted: #555550;
  --faint: #999990;
  --border: #e0e0e0;
  --border-strong: #aaaaaa;
  --accent: #0a0a0a;
  --accent-soft: #f5f5f5;
  --danger: #c0392b;
  --danger-soft: #fdf0ef;
  --radius: 0px;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Source Sans 3", "Gill Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force all elements to inherit the correct fonts */
p, span, div, td, th, li, label, input, select, textarea, button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
img, audio { max-width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

#app { min-height: 100vh; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.top {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
}

.brandLogo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.adminLogoBtn {
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s;
}
.adminLogoBtn:hover { opacity: 1; }

.nav, .row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav { justify-content: flex-end; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.b {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--text);
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .12s, color .12s;
}

.b:hover { background: var(--text); color: #fff; }

.b.dark { background: var(--text); color: #fff; }
.b.dark:hover { background: #333; border-color: #333; }

.b.danger {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}
.b.danger:hover { background: var(--danger); color: #fff; }

.b.save { border-color: var(--text); color: var(--text); }
.b.save.saved { background: var(--text); color: #fff; }

.langSwitch {
  width: 30px;
  padding: 0;
}

/* ── Ghost admin button ─────────────────────────────────────────────────────── */


/* ── Badge ─────────────────────────────────────────────────────────────────── */
.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 6.75px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Top nav last child (logout float) ─────────────────────────────────────── */
.top .nav > button:last-child:not(.langSwitch) {
  position: static;
  opacity: 1;
}
.top .nav .badge ~ button:last-child {
  position: static;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.main {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 28px 32px;
}

.muted { color: var(--muted); }
.small { font-size: 9px; }

.grid2 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 20px;
}

.grid3 {
  display: grid;
  grid-template-columns: minmax(260px,320px) minmax(360px,1fr) minmax(340px,420px);
  gap: 20px;
  align-items: start;
}

.artistAdminLayout,
.tourAdminLayout {
  display: grid;
  grid-template-columns: minmax(320px, 25.5vw) minmax(460px, 38vw) minmax(360px, 1fr);
  gap: 4px;
  align-items: start;
  min-height: calc(100vh - 150px);
}

.stopAdminLayout {
  display: grid;
  grid-template-columns: minmax(300px, 28vw) minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 4px;
  align-items: start;
  min-height: calc(100vh - 150px);
}

.artistLeft {
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* ── Panels ────────────────────────────────────────────────────────────────── */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
}

.artistAdminLayout .panel,
.tourAdminLayout .panel,
.stopAdminLayout .panel {
  min-height: 0;
  border-color: #d8d8d8;
  padding: 26px 28px;
}

.panel h2 {
  margin: 0 0 26px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text);
}

.panel h3 {
  margin: 20px 0 10px;
  font-size: 6.75px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.desktopAdmin {
  width: 100%;
  max-width: none;
  padding: 18px 20px;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--text);
}

.tab {
  min-height: 36px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.tab:last-child { border-right: none; }
.tab:hover { background: var(--accent-soft); color: var(--text); }
.tab.on { background: var(--text); color: #fff; }

/* ── Form fields ───────────────────────────────────────────────────────────── */
.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 6.75px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 9px 10px;
  border-radius: 0;
  outline: none;
  transition: border-color .12s;
}

.field input, .field select { min-height: 36px; }
.field textarea { min-height: 100px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--text);
}

.pw {
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  gap: 6px;
}

/* ── Login ─────────────────────────────────────────────────────────────────── */
.login {
  max-width: 400px;
  margin: 14vh auto 0;
  padding: 0 24px;
}

.login h2 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text);
}

.login .muted { margin-top: 0; }

/* ── Lists ─────────────────────────────────────────────────────────────────── */
.list {
  display: grid;
  gap: 4px;
  max-height: 68vh;
  margin-top: 10px;
  overflow: auto;
  padding-right: 2px;
}

.item {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  transition: background .1s, border-color .1s;
}

button.item:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.item.on {
  border-color: var(--text);
  background: var(--accent-soft);
}

.item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 9.75px;
  line-height: 1.3;
}

.artistActions {
  gap: 8px;
  margin-bottom: 14px;
}

.artistSelect {
  margin-bottom: 12px;
}

.artistSelect select {
  min-height: 72px;
  border-color: var(--text);
  background: var(--accent-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.selectedArtistCard {
  border: 1px solid var(--text);
  padding: 16px 18px;
  background: var(--accent-soft);
}

.selectedArtistCard strong,
.selectedArtistCard span {
  display: block;
}

.selectedArtistCard strong {
  margin-bottom: 4px;
  font-size: 13.5px;
}

.artistInfoPanel {
  max-height: calc(100vh - 420px);
  overflow: auto;
}

.photoListPanel {
  max-height: calc(100vh - 150px);
  overflow: hidden;
}

.photoScrollList,
.tourScrollList {
  max-height: calc(100vh - 265px);
  overflow: auto;
  padding-right: 4px;
}

.photoListItem,
.tourListItem {
  min-height: 180px;
  padding: 26px;
  border-color: #d8d8d8;
}

.photoListItem.on,
.tourListItem.on {
  border: 2px solid var(--text);
}

.photoListItem .photoRow {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
}

.photoListItem .thumb {
  width: 118px;
  height: 84px;
}

.photoListItem strong {
  display: inline-block;
  min-width: 34px;
  margin-right: 12px;
  font-size: 15px;
  text-align: center;
}

.photoListItem .photoRow span span:not(.muted) {
  font-size: 16.5px;
  line-height: 1.45;
}

.photoListItem .muted {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.photoEditorPanel {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.tourListPanel,
.tourEditorPanel,
.tourPreviewPanel {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.stopListPanel,
.stopEditorPanel,
.stopMapPanel {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.stopScrollList {
  max-height: calc(100vh - 265px);
  overflow: auto;
  padding-right: 4px;
}

.stopListItem {
  min-height: 118px;
  padding: 20px 22px;
  border-color: #d8d8d8;
}

.stopListItem.on {
  border: 2px solid var(--text);
}

.stopListItem strong {
  font-size: 15px;
  line-height: 1.25;
}

.stopListItem .muted {
  display: block;
  margin-top: 10px;
  font-size: 12.75px;
  line-height: 1.35;
}

.stopMapPanel .previewMap {
  height: 42vh;
  min-height: 360px;
}

.routeSummaryList {
  max-height: 260px;
  overflow: auto;
}

.routeSummaryItem {
  cursor: default;
}

.routeSummaryItem strong {
  font-size: 10.5px;
}

.photoEditorPanel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Photo row ─────────────────────────────────────────────────────────────── */
.photoRow {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  gap: 10px;
  align-items: center;
}

.thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f5f5f5;
}

/* ── Upload ────────────────────────────────────────────────────────────────── */
.upload {
  border: 1px dashed var(--border-strong);
  background: #fafafa;
  padding: 14px;
  text-align: center;
}

.upload input { width: 100%; }

.filePick {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.filePick:hover {
  background: var(--text);
  color: #fff;
}

.filePick input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.emptyUpload {
  display: grid;
  min-height: 120px;
  margin-top: 10px;
  place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.upload img {
  width: 100%;
  max-height: 160px;
  margin-top: 10px;
  object-fit: cover;
}

.photoPlacement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 14px 0 0;
}

.photoPlacement .upload,
.photoMapBlock {
  min-height: 100%;
}

.photoUpload {
  display: grid;
  align-content: start;
}

.photoUploadPreview {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  max-height: none !important;
  object-fit: cover;
  border: 1px solid var(--border);
}

.photoMapBlock {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.photoMapBlock .field {
  margin-bottom: 0;
}

.photoMapCompact {
  height: 300px;
}

/* ── Maps ──────────────────────────────────────────────────────────────────── */
.map, #walkMap {
  height: 420px;
  border: 1px solid var(--border);
  background: #f0f0f0;
  overflow: hidden;
}

.previewMap { height: 300px; margin-bottom: 14px; }
.leaflet-container { font-family: var(--body); }
.leaflet-control-zoom a { color: var(--text); }

/* ── Block editor ──────────────────────────────────────────────────────────── */
.block {
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
}

.blockHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.blockHead strong {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 6px;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 10px;
  background: #fafafa;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 9px;
  color: var(--text);
}

.check input { accent-color: var(--text); }

/* ── Tour cover ────────────────────────────────────────────────────────────── */
/* ── Tour card (public) ────────────────────────────────────────────────────── */
.tourCard {
  border: 1px solid var(--border);
  margin: 12px;
  overflow: hidden;
  background: #fff;
}

.tourCardCover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--text);
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.tourBody {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 22px;
  background: #fff;
}

.tourEyebrow { display: none; }

.tourBody h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--text);
}

.tourBody > p { display: none; }

.tourMeta {
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--body);
}

/* Start button — white outline */
.tourBtn {
  align-self: flex-start;
  min-height: 26px;
  padding: 0 12px;
  font-size: 6.75px;
  letter-spacing: .12em;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}

.tourBtn:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* ── Stop (public) ─────────────────────────────────────────────────────────── */
.stopPublic {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
}

.stopPublic h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--text);
}

.stopPublic p, .stopPublic figure { margin-top: 0; }
.stopPublic figure { margin-left: 0; margin-right: 0; }

.stopPublic img, .tourCard figure img {
  width: 100%;
  max-height: 400px;
  margin: 10px 0;
  object-fit: cover;
}

figcaption { color: var(--muted); font-size: 9px; margin-top: 4px; }

/* ── Photo metadata table (Pompidou style) ─────────────────────────────────── */
.photoMeta {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 9.75px;
}

.photoMeta tr { border-bottom: 1px solid var(--border); }
.photoMeta tr:last-child { border-bottom: none; }

.photoMeta td {
  padding: 7px 0;
  vertical-align: top;
  line-height: 1.45;
}

.photoMeta td:first-child {
  width: 38%;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 16px;
}

.photoMeta td:last-child {
  color: var(--text);
}



/* ── Public list ───────────────────────────────────────────────────────────── */
.publicList {
  align-items: start;
  padding-bottom: 64px;
  gap: 20px;
}

.publicList > section { min-width: 0; display: grid; gap: 20px; }
.publicList > aside { position: sticky; top: 28px; min-width: 0; }
.publicList #publicMap { min-height: calc(100vh - 160px); }

/* ── Walking mode ──────────────────────────────────────────────────────────── */
.adminOnlyMobile { display: none; }
.hide { display: none !important; }

[style*="height:4px"][style*="background:var(--border)"] { background: var(--border) !important; }
[style*="height:4px"][style*="background:var(--accent)"] { background: var(--accent) !important; }
[style*="padding:6px 16px"] { background: var(--surface); }

.main[style*="grid-template-columns"] {
  width: min(100%, 1340px) !important;
  align-items: start;
}

.main[style*="grid-template-columns"] > div:last-child {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px !important;
}

#walkMap { height: 460px !important; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (min-width: 861px) {
  .publicList {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  }
}

@media (max-width: 1100px) {
  .grid3 { grid-template-columns: minmax(240px,300px) minmax(320px,1fr); }
  .grid3 > .panel:last-child { grid-column: 1 / -1; }
  .artistAdminLayout,
  .tourAdminLayout,
  .stopAdminLayout {
    grid-template-columns: minmax(280px, 340px) minmax(360px, 1fr);
  }
  .photoEditorPanel,
  .tourPreviewPanel,
  .stopMapPanel {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .top {
    height: auto;
    min-height: 52px;
    padding: 0 16px;
    flex-direction: row;
  }

  .main { padding: 14px 16px; }

  .grid2, .grid3, .publicList { display: block; }
  .artistAdminLayout,
  .tourAdminLayout,
  .stopAdminLayout { display: block; }
  .artistLeft,
  .photoListPanel,
  .photoEditorPanel,
  .tourListPanel,
  .tourEditorPanel,
  .tourPreviewPanel,
  .stopListPanel,
  .stopEditorPanel,
  .stopMapPanel {
    margin-bottom: 12px;
    max-height: none;
  }

  .desktopAdmin { display: none; }
  .adminOnlyMobile { display: block; }

  .panel, .tourCard { margin-bottom: 12px; }

  .b { min-height: 34px; }

  .list { max-height: none; }

  .map, .previewMap, #walkMap { height: 280px !important; }

  .publicList > aside { position: static; }
  .publicList #publicMap { min-height: 280px; }
  .publicList > section { display: block; }
  .tourCard { margin-bottom: 16px; }

  .tourBody { padding: 20px 16px; }
  .tourBody h2 { font-size: clamp(20px, 7vw, 28px); }

  .stopPublic { padding: 18px 16px; }

  .hero { padding: 40px 16px 36px; }
  .heroInner { grid-template-columns: 1fr; }
  .heroRight { display: none; }
  .heroTitle { font-size: clamp(56px, 18vw, 100px); }

  .main[style*="grid-template-columns"] { display: block !important; }
  .main[style*="grid-template-columns"] > div { margin-bottom: 12px; }
  .main[style*="grid-template-columns"] > div:last-child {
    max-height: none !important;
    padding: 16px !important;
  }

  .photoPlacement {
    grid-template-columns: 1fr;
  }
}

/* ── Header tour selector ────────────────────────────────────────────────── */
.headerSelect {
  height: 36px;
  min-width: 220px;
  max-width: 340px;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 0 28px 0 12px;
  font-family: var(--display);
  font-size: 11.25px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
  cursor: pointer;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230a0a0a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.headerSelect:focus {
  border-color: var(--text);
}

.headerStart {
  white-space: nowrap;
}

/* ── Public layout: sidebar + map ────────────────────────────────────────── */
.publicLayout {
  display: grid;
  grid-template-columns: 480px 1fr;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.publicSidebar {
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #f7f7f5;
  height: 100%;
  padding: 0;
}

.publicMap {
  height: 100%;
  background: #f0f0f0;
}

.noToursMsg {
  padding: 32px 24px;
  font-size: 9.75px;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .top {
    height: auto;
    min-height: 56px;
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    font-size: 12px;
  }

  .brandLogo {
    width: 32px;
    height: 32px;
  }

  .headerSelect {
    min-width: 140px;
    max-width: 180px;
    font-size: 9.75px;
  }

  /* On mobile: stacked layout, sidebar scrolls, map fills remaining space */
  .publicLayout {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 56px; /* header height approx */
    z-index: 1;
  }

  .publicSidebar {
    flex: 0 0 auto;
    max-height: 40vh;
    overflow-y: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
  }

  .publicMap {
    flex: 1 1 auto;
    min-height: 200px;
    height: auto;
  }
}

/* ── Requested enlargement and walking layout update ─────────────────────── */
body { font-size: 21px; }
.small { font-size: 18px; }
.brand { font-size: 30px; }
.brandLogo { width: 88px; height: 88px; }
.top { min-height: 104px; height: auto; padding: 0 40px; }
.b { min-height: 60px; padding: 0 24px; font-size: 15px; gap: 12px; }
.langSwitch { width: 60px; }
.badge { min-height: 48px; padding: 4px 16px; font-size: 13.5px; }
.headerSelect { height: 72px; min-width: 360px; max-width: 520px; font-size: 22.5px; padding-left: 24px; }
.main { max-width: none; padding: 36px 40px; }
.panel { padding: 40px; }
.artistAdminLayout .panel,
.tourAdminLayout .panel,
.stopAdminLayout .panel { padding: 42px 46px; }
.panel h2 { font-size: 27px; margin-bottom: 36px; }
.panel h3 { font-size: 13.5px; margin: 36px 0 20px; }
.tabs { margin-bottom: 32px; }
.tab { min-height: 72px; padding: 0 32px; font-size: 15px; }
.field { margin-bottom: 28px; }
.field span { font-size: 13.5px; margin-bottom: 14px; }
.field input,
.field textarea,
.field select { font-size: 21px; padding: 18px 20px; }
.field input,
.field select { min-height: 72px; }
.field textarea { min-height: 200px; }
.item { padding: 20px 24px; }
.item strong { font-size: 19.5px; }
.check { min-height: 56px; font-size: 18px; }
.checks { grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); max-height: 400px; gap: 12px; padding: 20px; }
.block { padding: 28px; margin-bottom: 20px; }
.blockHead strong { font-size: 15px; }
.filePick { min-height: 96px; font-size: 18px; }
.emptyUpload { min-height: 240px; font-size: 15px; }
.login { max-width: 800px; }
.login h2 { font-size: 42px; }
.tourBody h2 { font-size: 30px; }
.tourMeta { font-size: 15px; }
.tourBtn { min-height: 52px; font-size: 13.5px; padding: 0 24px; }
.stopPublic { padding: 48px 56px; }
.stopPublic h3 { font-size: clamp(36px, 4vw, 48px); }
figcaption { font-size: 18px; }
.photoMeta { font-size: 19.5px; }
.photoMeta td:first-child { font-size: 15px; }
.noToursMsg { font-size: 19.5px; }
.publicLayout { top: 104px; }
.publicSidebar { width: 50vw; }
.publicMap { width: 50vw; }
.stopAdminLayout { grid-template-columns: minmax(220px, 18vw) minmax(0, 41vw) minmax(0, 41vw); }
.artistAdminLayout,
.tourAdminLayout { grid-template-columns: minmax(260px, 20vw) minmax(0, 40vw) minmax(0, 40vw); }
.stopListItem strong,
.photoListItem strong,
.tourListItem strong { font-size: 30px; }
.stopListItem .muted,
.photoListItem .muted,
.tourListItem .muted { font-size: 25.5px; }
.walkLayout {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  height: calc(100vh - 156px);
  width: 100%;
  padding: 0;
  margin: 0;
}
.walkMapPane {
  min-width: 0;
  height: 100%;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 156px;
}
.walkContentPane {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 0;
  background: var(--surface);
}
#walkMap {
  height: calc(100% - 76px) !important;
  min-height: 420px;
  border: 1px solid var(--border);
  background: #eee;
}
.walkPin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.leaflet-tooltip { font-size: 18px; }

@media (min-width: 701px) {
  .publicLayout { grid-template-columns: 50% 50%; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .small { font-size: 13.5px; }
  .top { min-height: 72px; padding: 8px 14px; }
  .brand { font-size: 16.5px; }
  .brandLogo { width: 44px; height: 44px; }
  .b { min-height: 44px; font-size: 12px; padding: 0 16px; }
  .badge { font-size: 10.5px; min-height: 36px; }
  .headerSelect { height: 48px; min-width: 150px; max-width: 220px; font-size: 13.5px; }
  .publicLayout { padding-top: 72px; }
  .walkLayout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 124px);
  }
  .walkMapPane {
    position: static;
    height: auto;
    padding: 8px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  #walkMap {
    height: 20vh !important;
    min-height: 20vh !important;
  }
  .walkContentPane {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  .stopPublic { padding: 24px 20px; }
  .stopPublic h3 { font-size: clamp(28px, 8vw, 40px); }
}
.publicPin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16.5px;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
@media (max-width: 700px) {
  .publicPin {
    width: 24px;
    height: 24px;
    font-size: 8.25px;
    border-width: 2px;
  }
}

/* ── Front page tour preview + header controls fix ───────────────────────── */
.tourCardCover {
  min-height: 420px;
  border-color: var(--text);
  align-items: flex-end;
}

.tourCardCover .tourBody {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.58) 58%, rgba(0,0,0,0) 100%);
  color: #fff;
  padding: 90px 24px 26px;
}

.tourCardCover .tourBody h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 8px;
}

.tourCardCover .tourBody > p {
  display: block;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.tourCardCover .tourMeta {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  margin-bottom: 16px;
}

.tourCardCover .tourBtn {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.tourCardCover .tourBtn:hover {
  color: #0a0a0a;
  background: #fff;
  border-color: #fff;
}

.top .nav {
  align-items: center;
}

.top .b,
.headerSelect {
  height: 56px;
  min-height: 56px;
}

.headerSelect {
  min-width: 430px;
  max-width: 640px;
  padding: 0 44px 0 22px;
}

.headerStart {
  height: 56px;
  min-height: 56px;
}

@media (max-width: 700px) {
  .tourCardCover {
    min-height: 300px;
  }
  .tourCardCover .tourBody {
    padding: 76px 18px 22px;
  }
  .tourCardCover .tourBody h2 {
    font-size: 21px;
  }
  .tourCardCover .tourBody > p {
    font-size: 13px;
  }
  .tourCardCover .tourMeta {
    font-size: 10.5px;
  }
  .top .b,
  .headerSelect,
  .headerStart {
    height: 44px;
    min-height: 44px;
  }
  .headerSelect {
    min-width: 210px;
    max-width: 280px;
    padding-left: 14px;
  }
}


/* ── Tour cover framing + no-crop walking photographs ───────────────────── */
.tourCoverFramePreview {
  width: 100%;
  min-height: 360px;
  margin-top: 16px;
  border: 1px solid var(--text);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.tourCoverFrameOverlay {
  width: 100%;
  padding: 70px 22px 22px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 58%, rgba(0,0,0,0) 100%);
  text-align: left;
}

.tourCoverFrameOverlay strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.coverRange {
  margin-top: 14px;
}

.coverRange input[type="range"] {
  padding: 0;
  min-height: 44px;
}

.walkStopPublic img,
.walkContentPane .stopPublic img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #f4f4f4;
}

@media (max-width: 700px) {
  .tourCoverFramePreview {
    min-height: 260px;
  }
  .tourCoverFrameOverlay {
    padding: 58px 18px 18px;
  }
}

/* ── Responsive/mobile correction: public page, walking mode, admin access ── */
.walkProgress {
  height: 4px;
  background: var(--border);
}
.walkProgress > div {
  height: 4px;
  background: var(--accent);
  transition: width .3s;
}
.walkCounter {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.walkControls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.walkControlBtn {
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  white-space: normal;
  text-align: center;
}
.walkLayout {
  height: calc(100vh - 104px - 4px - 37px - 81px);
}
.walkMapPane {
  top: 226px;
}
.walkMapPane #walkMap,
#walkMap {
  height: 100% !important;
  min-height: 0;
}
.walkTop .brandLogo {
  cursor: default;
}

@media (min-width: 701px) {
  .publicLayout {
    top: 104px;
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .publicSidebar {
    width: auto;
  }
  .publicMap {
    width: auto;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  #adminGhost,
  .adminLogoBtn {
    display: none !important;
    pointer-events: none !important;
  }

  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
    min-height: 0;
    height: auto;
    padding: 8px 10px;
    align-items: center;
  }

  .top .brand {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 15px;
    line-height: 1.05;
  }

  .top .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top .brandLogo {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .top .nav {
    display: contents;
  }

  .top .langSwitch {
    grid-column: 2 / 3;
    grid-row: 1;
    width: 46px;
    min-width: 46px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 11px;
  }

  .top .headerSelect {
    grid-column: 1 / 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 42px;
    min-height: 42px;
    padding: 0 28px 0 10px;
    font-size: 12px;
  }

  .top .headerStart {
    grid-column: 2 / 3;
    grid-row: 2;
    width: 104px;
    min-width: 104px;
    height: 42px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .publicLayout {
    position: fixed;
    top: 98px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  .publicMap {
    order: 1;
    flex: 0 0 30vh;
    width: 100%;
    min-height: 220px;
    height: 30vh;
  }

  .publicSidebar {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 0;
  }

  .tourCard {
    margin: 10px;
  }

  .tourCardCover {
    min-height: 260px;
  }

  .tourCardCover .tourBody {
    padding: 70px 16px 18px;
  }

  .tourCardCover .tourBody h2 {
    font-size: 19px;
  }

  .tourCardCover .tourBody > p {
    font-size: 12.5px;
  }

  .tourCardCover .tourBtn {
    width: 100%;
    height: 42px;
    min-height: 42px;
    font-size: 10.5px;
  }

  .walkTop {
    grid-template-rows: auto;
  }

  .walkTop .brand {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .walkTop .walkNav {
    display: contents;
  }

  .walkTop .badge {
    display: none;
  }

  .walkControls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 8px;
  }

  .walkControlBtn {
    height: 40px;
    min-height: 40px;
    padding: 0 5px;
    font-size: 9.5px;
    letter-spacing: .06em;
  }

  .walkCounter {
    padding: 5px 10px;
    font-size: 10px;
  }

  .walkLayout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px - 53px - 4px - 27px);
  }

  .walkMapPane {
    position: static;
    flex: 0 0 20vh;
    height: 20vh;
    padding: 6px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .walkMapPane #walkMap,
  #walkMap {
    height: 100% !important;
    min-height: 0 !important;
  }

  .walkContentPane {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .stopPublic {
    padding: 18px 14px;
  }

  .stopPublic h3 {
    font-size: 24px;
  }

  .walkStopPublic img,
  .walkContentPane .stopPublic img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ── Mobile layout fix: compact public header + separate walking layout ── */
.headerBtn,
.headerStart,
.headerSelect,
.walkControlBtn {
  min-height: 48px;
}

.walkControls {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.walkControlBtn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  white-space: normal;
  text-align: center;
}

.walkProgress {
  height: 4px;
  background: var(--border);
}
.walkProgress > div {
  height: 4px;
  background: var(--accent);
  transition: width .3s;
}
.walkCounter {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

@media (min-width: 701px) {
  .walkLayout {
    display: grid;
    grid-template-columns: 50% 50%;
    height: calc(100vh - 72px - 48px - 4px - 36px);
    min-height: 520px;
  }
  .walkContentPane {
    overflow: auto;
    height: 100%;
  }
  .walkMapPane {
    height: 100%;
    border-left: 1px solid var(--border);
  }
  .walkMapPane #walkMap,
  #walkMap {
    height: 100% !important;
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .desktopAdmin,
  #adminGhost {
    display: none !important;
  }

  .top {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 0;
    height: auto;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 20px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
  }

  .brand span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brandLogo {
    width: 32px;
    height: 32px;
  }

  .nav {
    display: contents;
  }

  .langSwitch {
    grid-column: 2;
    grid-row: 1;
    width: 54px;
    min-width: 54px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px;
  }

  .headerSelect {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 52px;
    min-height: 52px;
    font-size: 18px;
    padding-left: 14px;
  }

  .headerStart {
    grid-column: 2;
    grid-row: 2;
    height: 52px;
    min-height: 52px;
    min-width: 140px;
    padding: 0 12px;
    font-size: 15px;
  }

  .publicLayout {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    padding-top: 0 !important;
    min-height: auto;
  }

  .publicSidebar {
    order: 1;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .publicMap {
    order: 2;
    width: 100%;
    height: 260px !important;
    min-height: 260px !important;
    flex: 0 0 260px;
  }

  .tourCard {
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .tourCardCover {
    min-height: 350px;
  }

  .tourBody h2 {
    font-size: 32px;
  }

  .walkTop {
    grid-template-columns: 1fr auto;
  }

  .walkTop .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .walkTop .walkNav {
    display: contents;
  }

  .walkTop .badge {
    display: none;
  }

  .walkControls {
    position: sticky;
    top: 58px;
    z-index: 990;
    padding: 8px 10px;
    gap: 6px;
    overflow-x: auto;
  }

  .walkControlBtn {
    flex: 1 0 31%;
    height: 44px;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: .06em;
  }

  .walkCounter {
    font-size: 12px;
    padding: 6px 12px;
  }

  .walkLayout {
    display: flex !important;
    flex-direction: column;
    min-height: auto;
  }

  .walkContentPane {
    order: 1;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .walkMapPane {
    order: 2;
    width: 100%;
    height: 28vh;
    min-height: 220px;
    border-top: 1px solid var(--border);
  }

  .walkMapPane #walkMap,
  #walkMap {
    height: 28vh !important;
    min-height: 220px !important;
  }

  .walkStopPublic,
  .stopPublic {
    padding: 28px 18px;
  }

  .walkStopPublic img,
  .walkContentPane .stopPublic img,
  .stopPublic img,
  .tourCard figure img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* ── Mobile walking mode: fixed bottom map + one scrollable content block ── */
@media (max-width: 700px) {
  .walkTop {
    position: sticky;
    top: 0;
    z-index: 1200;
  }

  .walkControls {
    position: sticky;
    top: 58px;
    z-index: 1190;
    border-bottom: 1px solid var(--border);
  }

  .walkProgress,
  .walkCounter {
    position: sticky;
    z-index: 1180;
  }

  .walkProgress { top: 108px; }
  .walkCounter { top: 112px; }

  .walkLayout {
    display: block !important;
    min-height: auto !important;
    padding-bottom: 20vh;
  }

  .walkContentPane {
    display: block;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: calc(20vh + 18px);
  }

  .walkMapPane {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: 100% !important;
    height: 20vh !important;
    min-height: 0 !important;
    border-top: 1px solid var(--border);
    border-left: none !important;
    background: #f0f0f0;
  }

  .walkMapPane #walkMap,
  #walkMap {
    width: 100% !important;
    height: 20vh !important;
    min-height: 0 !important;
  }

  .walkStopPublic,
  .walkContentPane .stopPublic {
    margin: 0;
    padding-bottom: 24px;
  }
}

/* ── FORCE mobile walking map to bottom of viewport ─────────────────────── */
@media (max-width: 860px) {
  body:has(.walkLayout) {
    overflow-x: hidden;
  }

  .walkLayout {
    display: block !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    height: auto !important;
    padding-bottom: calc(20dvh + env(safe-area-inset-bottom, 0px) + 18px) !important;
  }

  .walkLayout > .walkContentPane,
  .walkContentPane {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(20dvh + env(safe-area-inset-bottom, 0px) + 24px) !important;
  }

  .walkLayout > .walkMapPane,
  .walkMapPane {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    max-width: none !important;
    height: calc(20dvh + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-top: 1px solid var(--border) !important;
    transform: none !important;
    background: #f0f0f0 !important;
  }

  .walkLayout > .walkMapPane #walkMap,
  .walkMapPane #walkMap,
  #walkMap {
    display: block !important;
    width: 100vw !important;
    height: calc(20dvh + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

/* ── Desktop walking header + fixed front page scroll correction ─────────── */
@media (min-width: 861px) {
  body:has(.publicLayout),
  body:has(.walkLayout) {
    height: 100dvh;
    overflow: hidden;
  }

  .top {
    border-bottom: 1px solid #0a0a0a !important;
  }

  .walkTop {
    height: 104px !important;
    min-height: 104px !important;
    display: grid !important;
    grid-template-columns: auto minmax(280px, 1fr) auto !important;
    align-items: center !important;
    column-gap: 36px !important;
    padding: 0 34px !important;
  }

  .walkTop .brand {
    min-width: 0;
    white-space: nowrap;
  }

  .walkTourHeader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: var(--text);
    font-family: var(--body);
    line-height: 1.15;
  }

  .walkTourHeader strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--body);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: none;
  }

  .walkTourHeader span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: .02em;
  }

  .walkNav {
    display: flex !important;
    align-items: center;
    gap: 18px;
  }

  .walkStepLabel {
    white-space: nowrap;
    font-size: 24px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--text);
  }

  .walkControls {
    height: 64px !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #0a0a0a !important;
    background: #fff !important;
  }

  .walkControlBtn {
    height: 48px !important;
    min-height: 48px !important;
    width: 100% !important;
    font-size: 12px !important;
    letter-spacing: .12em !important;
  }

  .walkProgress {
    height: 3px !important;
    background: #e0e0e0 !important;
  }

  .walkProgress > div {
    height: 3px !important;
    background: #0a0a0a !important;
  }

  .walkCounter {
    display: none !important;
  }

  .walkLayout {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    height: calc(100dvh - 104px - 64px - 3px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .walkContentPane {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .walkMapPane {
    position: relative !important;
    top: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    border-left: 1px solid #0a0a0a !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  .walkMapPane #walkMap,
  #walkMap {
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
  }

  .publicLayout {
    position: fixed !important;
    top: 104px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100dvh - 104px) !important;
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    overflow: hidden !important;
  }

  .publicSidebar {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-right: 1px solid #0a0a0a !important;
    border-bottom: 0 !important;
  }

  .publicMap {
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
  }
}

@media (max-width: 860px) {
  .walkTourHeader {
    display: none !important;
  }
}

/* ── Menu font consistency fix ───────────────────────────────────────────── */
.top,
.top *,
.walkTop,
.walkTop *,
.walkControls,
.walkControls *,
.headerSelect,
.headerStart,
.langSwitch,
.walkControlBtn,
.walkStepLabel,
.walkTourHeader,
.walkTourHeader strong,
.walkTourHeader span {
  font-family: var(--display) !important;
}

.top .b,
.walkControlBtn,
.headerStart,
.langSwitch {
  font-weight: 500 !important;
}

.walkTourHeader strong,
.walkTourHeader span,
.walkStepLabel {
  text-transform: none !important;
}

/* ── Desktop walking: grid alignment + title only ───────────────────────── */
@media (min-width: 861px) {
  .walkTop {
    grid-template-columns: minmax(320px, auto) minmax(0, 1fr) auto !important;
    column-gap: 40px !important;
  }

  .walkTourHeader {
    display: block !important;
    min-width: 0 !important;
    font-family: var(--display) !important;
  }

  .walkTourHeader strong {
    font-family: var(--display) !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .walkTourHeader span {
    display: none !important;
  }

  .walkControls {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    border-top: 1px solid #0a0a0a !important;
    border-bottom: 1px solid #0a0a0a !important;
  }

  .walkLayout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .walkContentPane,
  .walkMapPane {
    min-width: 0 !important;
  }
}

/* ── Mobile walking: header scrolls away, controls stick, map fixed bottom ─ */
@media (max-width: 860px) {
  body:has(.walkLayout) {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: calc(20dvh + env(safe-area-inset-bottom, 0px)) !important;
  }

  #app:has(.walkLayout) {
    min-height: 100dvh !important;
    padding-bottom: calc(20dvh + env(safe-area-inset-bottom, 0px)) !important;
  }

  .walkTop {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
    height: 56px !important;
    min-height: 56px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    border-bottom: 1px solid #0a0a0a !important;
    background: #fff !important;
  }

  .walkTop .brand {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .walkTop .brandLogo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto !important;
  }

  .walkTop .brand span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .walkTourHeader {
    display: none !important;
  }

  .walkTop .walkNav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  .walkStepLabel {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
  }

  .walkTop .langSwitch {
    width: 40px !important;
    min-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
  }

  .walkControls {
    position: sticky !important;
    top: 0 !important;
    z-index: 3000 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 4px !important;
    margin: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #0a0a0a !important;
    background: #fff !important;
  }

  .walkControlBtn {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .06em !important;
    white-space: nowrap !important;
  }

  .walkProgress,
  .walkCounter {
    display: none !important;
  }

  .walkLayout {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .walkContentPane {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 14px 12px calc(20dvh + 22px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .walkMapPane {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2500 !important;
    height: calc(20dvh + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 120px !important;
    max-height: 180px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #0a0a0a !important;
    border-left: 0 !important;
    background: #fff !important;
  }

  .walkMapPane #walkMap,
  #walkMap {
    height: 100% !important;
    min-height: 120px !important;
    max-height: 180px !important;
    width: 100% !important;
    border: 0 !important;
    margin: 0 !important;
  }
}
/* ── Mobile correction requested: buttons, full-width photos, compact photo info ── */
/* Scope: public/mobile walking/front pages only. Admin layouts are not modified. */
@media (max-width: 860px) {
  /* Keep walking-mode button labels inside the boxes. */
  .walkControls {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  .walkControlBtn,
  .walkControls .b,
  .walkControls button {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: clamp(8px, 2.35vw, 10px) !important;
    line-height: 1.05 !important;
    letter-spacing: .035em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
  }

  /* Photographs: full-bleed on mobile, no left/right margin. */
  .walkContentPane .stopPublic figure,
  .walkStopPublic figure,
  .stopPublic figure {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }

  .walkContentPane .stopPublic img,
  .walkStopPublic img,
  .stopPublic img,
  .tourCard figure img {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .walkContentPane .stopPublic figcaption,
  .walkStopPublic figcaption,
  .stopPublic figcaption {
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  /* Compact, readable photo technical information. */
  .walkContentPane .photoMeta,
  .walkStopPublic .photoMeta,
  .stopPublic .photoMeta {
    width: auto !important;
    margin: 10px 16px 14px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    table-layout: fixed !important;
  }

  .walkContentPane .photoMeta td,
  .walkStopPublic .photoMeta td,
  .stopPublic .photoMeta td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 1.25 !important;
  }

  .walkContentPane .photoMeta td:first-child,
  .walkStopPublic .photoMeta td:first-child,
  .stopPublic .photoMeta td:first-child {
    width: 34% !important;
    padding-right: 10px !important;
    font-size: 9px !important;
    letter-spacing: .07em !important;
  }

  .walkContentPane .photoMeta td:last-child,
  .walkStopPublic .photoMeta td:last-child,
  .stopPublic .photoMeta td:last-child {
    width: 66% !important;
    overflow-wrap: anywhere !important;
  }

  /* Keep artist/description text aligned with compact metadata, while photos remain full-bleed. */
  .walkContentPane .stopPublic > p,
  .walkStopPublic > p,
  .stopPublic > p,
  .walkContentPane .stopPublic > h3,
  .walkStopPublic > h3,
  .stopPublic > h3 {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* -- FINAL mobile walking alignment: identical left/right margins for text, title, address, and metadata -- */
@media (max-width: 860px) {
  :root {
    --mobile-walk-side: 16px;
  }

  body,
  #app,
  .walkLayout,
  .walkContentPane,
  .walkStopPublic,
  .walkContentPane .stopPublic,
  .stopPublic {
    overflow-x: hidden !important;
  }

  .walkContentPane {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .stopPublic,
  .walkStopPublic,
  .stopPublic {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .stopPublic > :not(figure):not(img):not(.photoMeta),
  .walkStopPublic > :not(figure):not(img):not(.photoMeta),
  .stopPublic > :not(figure):not(img):not(.photoMeta),
  .walkContentPane .stopPublic h1,
  .walkContentPane .stopPublic h2,
  .walkContentPane .stopPublic h3,
  .walkContentPane .stopPublic h4,
  .walkContentPane .stopPublic p,
  .walkContentPane .stopPublic .muted,
  .walkContentPane .stopPublic .small,
  .walkContentPane .stopPublic figcaption,
  .walkContentPane .stopPublic audio,
  .walkStopPublic h1,
  .walkStopPublic h2,
  .walkStopPublic h3,
  .walkStopPublic h4,
  .walkStopPublic p,
  .walkStopPublic .muted,
  .walkStopPublic .small,
  .walkStopPublic figcaption,
  .walkStopPublic audio,
  .stopPublic h1,
  .stopPublic h2,
  .stopPublic h3,
  .stopPublic h4,
  .stopPublic p,
  .stopPublic .muted,
  .stopPublic .small,
  .stopPublic figcaption,
  .stopPublic audio {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--mobile-walk-side) !important;
    margin-right: var(--mobile-walk-side) !important;
  }

  .walkContentPane .photoMeta,
  .walkStopPublic .photoMeta,
  .stopPublic .photoMeta {
    width: calc(100vw - (var(--mobile-walk-side) * 2)) !important;
    max-width: calc(100vw - (var(--mobile-walk-side) * 2)) !important;
    margin-left: var(--mobile-walk-side) !important;
    margin-right: var(--mobile-walk-side) !important;
  }

  .walkContentPane .stopPublic figure,
  .walkStopPublic figure,
  .stopPublic figure,
  .walkContentPane .stopPublic img,
  .walkStopPublic img,
  .stopPublic img {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ── REAL mobile walking alignment fix: metadata, address, title and text share one column ── */
@media (max-width: 1100px) {
  :root { --mobile-walk-column: 16px; }

  body,
  #app,
  .walkLayout,
  .walkContentPane,
  .walkContentPane .stopPublic,
  .walkStopPublic,
  .stopPublic {
    overflow-x: hidden !important;
  }

  .walkContentPane {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .stopPublic,
  .walkStopPublic,
  .stopPublic {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .stopPublic > *:not(figure):not(img):not(.photoMeta),
  .walkStopPublic > *:not(figure):not(img):not(.photoMeta),
  .stopPublic > *:not(figure):not(img):not(.photoMeta) {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: var(--mobile-walk-column) !important;
    margin-right: var(--mobile-walk-column) !important;
  }

  .walkContentPane .stopPublic p,
  .walkContentPane .stopPublic h1,
  .walkContentPane .stopPublic h2,
  .walkContentPane .stopPublic h3,
  .walkContentPane .stopPublic h4,
  .walkContentPane .stopPublic .muted,
  .walkContentPane .stopPublic .small,
  .walkContentPane .stopPublic figcaption,
  .walkStopPublic p,
  .walkStopPublic h1,
  .walkStopPublic h2,
  .walkStopPublic h3,
  .walkStopPublic h4,
  .walkStopPublic .muted,
  .walkStopPublic .small,
  .walkStopPublic figcaption,
  .stopPublic p,
  .stopPublic h1,
  .stopPublic h2,
  .stopPublic h3,
  .stopPublic h4,
  .stopPublic .muted,
  .stopPublic .small,
  .stopPublic figcaption {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: var(--mobile-walk-column) !important;
    margin-right: var(--mobile-walk-column) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .photoMeta,
  .walkStopPublic .photoMeta,
  .stopPublic .photoMeta {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: var(--mobile-walk-column) !important;
    margin-right: var(--mobile-walk-column) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .walkContentPane .photoMeta td:first-child,
  .walkStopPublic .photoMeta td:first-child,
  .stopPublic .photoMeta td:first-child {
    width: 34% !important;
  }

  .walkContentPane .photoMeta td:last-child,
  .walkStopPublic .photoMeta td:last-child,
  .stopPublic .photoMeta td:last-child {
    width: 66% !important;
  }

  .walkContentPane .stopPublic figure,
  .walkStopPublic figure,
  .stopPublic figure,
  .walkContentPane .stopPublic img,
  .walkStopPublic img,
  .stopPublic img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ── Google Maps address link: visible and tappable ─────────────────────── */
.stopAddress {
  margin-top: 8px;
  margin-bottom: 14px;
}

.stopAddress .googleMapAddress {
  display: inline-block;
  color: var(--text) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  pointer-events: auto;
}

.stopAddress .googleMapAddress:hover,
.stopAddress .googleMapAddress:focus {
  color: var(--text) !important;
  opacity: .72;
}

@media (max-width: 860px) {
  .walkContentPane .stopAddress,
  .walkStopPublic .stopAddress,
  .stopPublic .stopAddress {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .walkContentPane .stopAddress .googleMapAddress,
  .walkStopPublic .stopAddress .googleMapAddress,
  .stopPublic .stopAddress .googleMapAddress {
    display: block;
    min-height: 36px;
    line-height: 1.35;
    word-break: break-word;
  }
}