:root {
  --green-black: #151f0c;
  --green-deep: #203112;
  --green: #446528;
  --olive: #68723a;
  --gold: #eaa747;
  --gold-dark: #a86318;
  --caramel: #eaa747;
  --cream: #f1dcc9;
  --paper: rgba(250, 244, 234, 0.96);
  --paper-strong: rgba(255, 250, 242, 0.99);
  --ink: #151f0c;
  --muted: #6a645b;
  --line: rgba(32, 49, 18, 0.13);
  --glass-line: rgba(241, 220, 201, 0.36);
  --shadow: 0 14px 38px rgba(21, 31, 12, 0.18);
  --brand-green: #203112;
  --brand-green-mid: #446528;
  --brand-gold: #eaa747;
  --brand-cream: #f7f3e8;
  --focus-light: #f6c453;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--green-black);
  font-family:
    Inter, Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-credit {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding:
    6px max(16px, env(safe-area-inset-right))
    max(6px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(234, 167, 71, 0.25);
  background: var(--green-black);
}

.site-credit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(234, 167, 71, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-credit strong {
  margin-left: 0.28em;
  color: var(--gold);
  font-weight: 900;
}

.site-credit a:hover,
.site-credit a:active {
  color: #fffdf7;
  text-decoration-color: var(--gold);
}

.brand-header {
  position: relative;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
  padding: 10px clamp(18px, 2.2vw, 32px);
  background: var(--green-black);
  border-bottom: 1px solid rgba(234, 167, 71, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand-lockup,
.header-actions,
.input-action,
.quick-actions,
.result-row,
.panel-title-row,
.collapsible-header,
.participant-heading-actions,
.route-heading-actions,
.button-row,
.map-toolbar {
  display: flex;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
  gap: 15px;
}

.brand-logo {
  width: clamp(160px, 16vw, 205px);
  max-width: 36vw;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.title-block {
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid rgba(241, 220, 201, 0.26);
}

.panel-kicker,
.route-stop-badge {
  display: inline-flex;
  width: fit-content;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  color: var(--brand-gold);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.official-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 750;
  text-underline-offset: 4px;
  text-decoration-color: rgba(234, 167, 71, 0.68);
}

.official-site-link::after {
  content: "↗";
  margin-left: 7px;
  color: var(--brand-gold);
  font-size: 0.9rem;
}

.official-site-link:hover,
.official-site-link:active {
  color: #fff;
  text-decoration-color: var(--brand-gold);
}

.header-actions [hidden],
.map-toolbar [hidden] {
  display: none !important;
}

.primary-button,
.ghost-button,
.dark-button,
.light-button,
.mini-button,
.text-button,
.collapse-button,
.route-nav-button,
.map-tool {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.dark-button:hover,
.light-button:hover,
.mini-button:hover,
.text-button:hover,
.collapse-button:hover,
.route-nav-button:hover,
.map-tool:hover {
  transform: translateY(-1px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--brand-gold);
  color: var(--brand-green);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 3px;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--green-black);
  box-shadow: 0 8px 20px rgba(168, 99, 24, 0.18);
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 246, 227, 0.22);
  background: rgba(255, 246, 227, 0.08);
  color: #fffdf7;
}

.dark-button {
  min-height: 44px;
  padding: 0 14px;
  background: var(--green-black);
  color: #fffdf7;
}

.light-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(33, 24, 15, 0.14);
  background: var(--paper-strong);
  color: var(--green-deep);
}

.mini-button {
  flex: 0 0 46px;
  min-height: 44px;
  background: var(--gold);
  color: var(--green-black);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  color: var(--gold-dark);
}

.collapse-button {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(33, 24, 15, 0.14);
  background: rgba(255, 253, 247, 0.82);
  color: var(--green-deep);
  font-size: 1rem;
  line-height: 1;
}

.full-button {
  width: 100%;
  margin-top: 12px;
}

.intro-panel {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  min-height: 300px;
  gap: clamp(24px, 3vw, 42px);
  overflow: hidden;
  padding: 20px clamp(24px, 4vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(234, 167, 71, 0.12), transparent 30%),
    var(--brand-green);
  border-bottom: 1px solid rgba(234, 167, 71, 0.36);
}

.intro-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.intro-eyebrow,
.intro-city-kicker {
  display: block;
  color: var(--brand-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.intro-eyebrow {
  margin: 0;
}

.intro-panel h1 {
  max-width: 16ch;
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(2.3rem, 3.4vw, 3.15rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.intro-date {
  margin: 8px 0 0;
  color: var(--brand-gold);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 530px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  line-height: 1.42;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.intro-primary-action,
.intro-explore-button {
  min-height: 48px;
}

.intro-primary-action {
  color: var(--brand-green);
  background: var(--brand-gold);
}

.intro-explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.intro-explore-button span {
  color: var(--brand-gold);
  font-size: 1.2rem;
  line-height: 1;
}

.intro-city-slot {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(234, 167, 71, 0.32);
  border-radius: 10px;
  background: rgba(21, 31, 12, 0.38);
}

.intro-city-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.intro-city-heading p {
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.intro-city-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.intro-city-option {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 7px 28px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.intro-city-option:hover {
  border-color: rgba(234, 167, 71, 0.72);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.intro-city-option[aria-pressed="true"] {
  border-color: var(--brand-gold);
  background: var(--brand-gold);
  color: var(--brand-green);
  box-shadow: inset 4px 0 0 var(--green-black);
}

.intro-city-option[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 50%;
  font-size: 1rem;
  font-weight: 950;
  transform: translateY(-50%);
}

.intro-city-name,
.intro-city-count {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro-city-name {
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.16;
}

.intro-city-count {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.intro-city-option[aria-pressed="true"] .intro-city-count {
  color: rgba(32, 49, 18, 0.78);
}

.intro-city-toggle {
  min-height: 44px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-city-toggle[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.explorer-focus-target {
  left: 0;
  top: 0;
  scroll-margin-top: 16px;
}

.map-stage {
  position: relative;
  min-height: calc(100vh - 82px);
  min-height: calc(100dvh - 82px);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(240, 170, 66, 0.18), transparent 26%),
    var(--green-black);
}

.map-canvas,
#map,
.map-dim {
  position: absolute;
  inset: 0;
}

.map-canvas[hidden],
.side-panel[hidden],
.mobile-view-switcher[hidden],
.mobile-detail-host[hidden],
.mobile-map-empty[hidden] {
  display: none !important;
}

#map {
  z-index: 1;
}

.map-dim {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 20%, rgba(17, 29, 3, 0.24) 54%, rgba(17, 29, 3, 0.58)),
    rgba(17, 29, 3, 0.16);
  transition: opacity 280ms ease;
}

.map-stage.route-mode .map-dim {
  opacity: 1;
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 29, 3, 0.34), transparent 27%, transparent 72%, rgba(17, 29, 3, 0.26)),
    linear-gradient(180deg, rgba(17, 29, 3, 0.16), transparent 24%);
}

.mobile-view-switcher,
.mobile-detail-host {
  display: none;
}

.mobile-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 510;
  width: min(310px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid rgba(33, 24, 15, 0.14);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 16px 38px rgba(17, 29, 3, 0.22);
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, -50%);
}

.floating-panel,
.map-toolbar,
.route-tour-card {
  position: absolute;
  z-index: 520;
}

.floating-panel {
  border: 1px solid rgba(32, 49, 18, 0.12);
  border-radius: 10px;
  background: var(--paper-strong);
  box-shadow: 0 12px 32px rgba(21, 31, 12, 0.16);
  backdrop-filter: blur(12px);
}

.search-panel {
  left: 22px;
  top: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 16px;
  animation: panelEnterLeft 420ms ease both;
}

.side-panel {
  right: 22px;
  top: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100% - 44px));
  overflow: hidden;
  animation: panelEnterRight 420ms ease both;
}

.panel-view {
  min-height: 0;
  padding: 16px;
}

.panel-title-row {
  justify-content: space-between;
  gap: 14px;
}

.collapsible-header {
  justify-content: space-between;
  gap: 12px;
}

.collapsible-header > div,
.panel-title-row > div:first-child {
  min-width: 0;
}

.collapsible-content.is-collapsed {
  display: none;
}

.participant-heading-actions,
.route-heading-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.panel-title-row.compact {
  align-items: flex-start;
}

.search-panel h2,
.panel-title-row h2 {
  margin: 0;
  color: var(--green-black);
  letter-spacing: 0;
}

.search-panel h2,
.panel-title-row h2 {
  margin-top: 5px;
  font-size: 1.16rem;
  line-height: 1.18;
}

.participant-total {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--green-deep);
  text-align: right;
}

.participant-total strong,
.participant-total span {
  display: inline;
}

.participant-total strong {
  font-size: 1.15rem;
  line-height: 1;
}

.participant-total span {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.field-group {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.zone-filter[hidden] {
  display: none;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(32, 49, 18, 0.16);
  border-radius: 8px;
  outline: none;
  padding: 0 13px;
  background: #fffaf2;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
}

.field-group select {
  min-height: 48px;
  padding-right: 38px;
  cursor: pointer;
}

.field-group select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.field-group input:focus,
.field-group select:focus {
  border-color: rgba(240, 170, 66, 0.82);
  box-shadow: 0 0 0 4px rgba(240, 170, 66, 0.19);
}

.input-action,
.quick-actions,
.button-row {
  gap: 9px;
}

.quick-actions {
  margin-top: 10px;
}

.quick-actions button,
.button-row button {
  flex: 1 1 0;
}

.status-message,
.commercial-note {
  line-height: 1.42;
}

.status-message {
  margin: 9px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(32, 49, 18, 0.11);
  background: transparent;
  color: var(--green-deep);
  font-size: 0.8rem;
}

.participant-filter {
  margin-top: 14px;
}

.result-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.commercial-note {
  margin: 12px 0;
  padding: 9px 0;
  border-top: 1px solid rgba(32, 49, 18, 0.1);
  border-bottom: 1px solid rgba(32, 49, 18, 0.1);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
}

.participants-list {
  display: grid;
  max-height: calc(100vh - 560px);
  min-height: 154px;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
}

.participant-item {
  position: relative;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(32, 49, 18, 0.1);
  border-radius: 9px;
  padding: 13px 12px;
  background: rgba(255, 250, 242, 0.82);
  text-align: left;
  transition:
    transform 160ms ease,
    border 160ms ease,
    box-shadow 160ms ease;
}

.participant-item:hover,
.participant-group-toggle:hover {
  transform: translateY(-1px);
}

.participant-item.is-selected,
.participant-group.has-selected-site {
  border-color: rgba(234, 167, 71, 0.88);
  box-shadow: inset 4px 0 0 var(--gold);
}

.participant-item.is-selected {
  background: rgba(241, 220, 201, 0.48);
}

.participant-group {
  overflow: hidden;
  border: 1px solid rgba(32, 49, 18, 0.1);
  border-radius: 9px;
  background: rgba(255, 250, 242, 0.82);
  transition:
    border 160ms ease,
    box-shadow 160ms ease;
}

.participant-group-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  width: 100%;
  min-height: 56px;
  gap: 10px;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.participant-group-toggle[aria-expanded="true"] {
  background: rgba(234, 167, 71, 0.1);
}

.participant-group-count {
  padding: 4px 8px;
  border: 1px solid rgba(63, 103, 40, 0.24);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.participant-group-indicator {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fffdf7;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.participant-sites {
  display: grid;
  border-top: 1px solid rgba(32, 49, 18, 0.1);
}

.participant-sites[hidden] {
  display: none;
}

.participant-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 12px;
  border: 0;
  background: rgba(255, 250, 242, 0.62);
  color: inherit;
  font: inherit;
  text-align: left;
}

.participant-site-row + .participant-site-row {
  border-top: 1px solid rgba(33, 24, 15, 0.1);
}

.participant-site-row.is-selected {
  background: rgba(234, 167, 71, 0.13);
  box-shadow: inset 4px 0 0 var(--gold);
}

.participant-site-content {
  min-width: 0;
}

.participant-site-action {
  min-width: 104px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(63, 103, 40, 0.32);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  transition:
    background 160ms ease,
    border 160ms ease,
    transform 160ms ease;
}

.participant-site-action:hover,
.participant-site-action:active {
  border-color: var(--green);
  background: rgba(63, 103, 40, 0.1);
}

.participant-site-action:active {
  transform: translateY(1px);
}

.participant-name,
.participant-site-name,
.participant-location,
.participant-meta,
.participant-drink,
.participant-selection-badge,
.participant-map-action {
  display: block;
}

.participant-name {
  color: var(--green-black);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.22;
}

.participant-site-name {
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.participant-item .participant-site-name {
  margin-top: 5px;
}

.participant-location {
  margin-top: 5px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.participant-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.participant-drink {
  margin-top: 9px;
  padding-left: 9px;
  border-left: 2px solid var(--gold);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.participant-selection-badge {
  width: fit-content;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fffdf7;
  font-size: 0.68rem;
  font-weight: 900;
}

.participant-map-action {
  margin-top: 9px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.detail-view {
  position: relative;
  flex: 1 1 320px;
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 246, 227, 0.96)),
    var(--cream);
  scrollbar-gutter: stable;
  animation: cardSelect 260ms ease both;
}

.side-panel.has-participant-detail #browseView {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}

.side-panel.has-participant-detail #browseView .commercial-note {
  display: none;
}

.side-panel.has-participant-detail .participants-list {
  max-height: 156px;
  min-height: 96px;
}

.detail-header {
  position: sticky;
  top: -18px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -18px -18px 14px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(33, 24, 15, 0.1);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 8px 22px rgba(17, 29, 3, 0.08);
  backdrop-filter: blur(12px);
}

.detail-title {
  min-width: 0;
}

.detail-title h2 {
  margin: 6px 0 0;
  color: var(--green-black);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.detail-site-name {
  margin: 6px 0 0;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
}

.detail-close-button {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(38, 59, 18, 0.22);
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-deep);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.detail-close-button:hover,
.detail-close-button:active {
  border-color: var(--gold-dark);
  background: rgba(240, 170, 66, 0.2);
}

.detail-close-button:active {
  transform: translateY(1px);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-selection-badge,
.route-stop-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.detail-selection-badge {
  border: 1px solid rgba(38, 59, 18, 0.24);
  background: var(--green-deep);
  color: #fffdf7;
}

.route-stop-badge {
  background: rgba(240, 170, 66, 0.18);
  color: var(--gold-dark);
}

.participant-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(38, 59, 18, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 78% 22%, rgba(240, 170, 66, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(38, 59, 18, 0.2), rgba(240, 170, 66, 0.14)),
    var(--cream);
}

.participant-image-wrap img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.participant-image-wrap.has-image img {
  opacity: 1;
}

.image-loading-placeholder,
.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 24px;
  color: var(--green-deep);
  text-align: center;
  font-weight: 900;
}

.image-loading-placeholder {
  opacity: 0.72;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.image-placeholder span {
  font-size: 2rem;
  line-height: 1;
}

.image-placeholder small {
  color: var(--muted);
  font-size: 0.75rem;
}

.detail-location {
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.detail-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-list dt,
.detail-content-section h3,
.detail-drink-section span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.48;
  white-space: pre-line;
}

.detail-content-section,
.detail-drink-section {
  margin-top: 16px;
  padding: 14px;
  border-radius: 9px;
}

.detail-content-section {
  border: 1px solid rgba(38, 59, 18, 0.12);
  background: rgba(255, 253, 247, 0.72);
}

.detail-content-section h3 {
  margin: 0;
}

.detail-content-section p,
.detail-drink-section p {
  margin: 7px 0 0;
  line-height: 1.52;
  white-space: pre-line;
}

.detail-drink-section {
  border-left: 4px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(240, 170, 66, 0.2), rgba(255, 253, 247, 0.8)),
    var(--cream);
}

.detail-drink-section span {
  color: var(--gold-dark);
}

.detail-drink-section p {
  color: var(--green-deep);
  font-size: 1.02rem;
  font-weight: 900;
}

.detail-external-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.detail-external-links[hidden] {
  display: none;
}

.detail-external-links a {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(38, 59, 18, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.detail-external-links a::after {
  content: "↗";
  justify-self: end;
  margin-top: -18px;
  color: var(--gold-dark);
}

.external-link-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.detail-actions {
  position: sticky;
  bottom: -18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px -18px -18px;
  padding: 12px 18px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(33, 24, 15, 0.12);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 -10px 24px rgba(17, 29, 3, 0.08);
  backdrop-filter: blur(12px);
}

.detail-actions > * {
  min-width: 0;
  min-height: 48px;
}

.detail-directions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-black);
  text-align: center;
  text-decoration: none;
}

.detail-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.route-feedback {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(63, 103, 40, 0.16);
  color: var(--green-deep);
  font-weight: 900;
}

.my-route-panel {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(241, 220, 201, 0.46);
}

.my-route-panel .panel-kicker {
  color: var(--green);
}

.my-route-panel .panel-title-row h2 {
  font-size: 1rem;
}

.user-route-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.user-route-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.user-route-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid rgba(32, 49, 18, 0.11);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--green-black);
  font-size: 0.84rem;
  font-weight: 900;
}

.user-route-item span {
  color: var(--gold-dark);
  font-size: 0.72rem;
}

.user-route-item strong,
.user-route-item small {
  display: block;
}

.user-route-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.error-message {
  margin: 14px;
  border-radius: 8px;
  padding: 14px;
  background: #fff0ed;
  color: #9c3428;
  font-weight: 900;
  line-height: 1.4;
}

.error-message.is-loading {
  border-left: 4px solid var(--gold);
  background: rgba(240, 170, 66, 0.14);
  color: var(--green-deep);
}

.error-message.is-empty {
  border-left: 4px solid var(--olive);
  background: rgba(104, 114, 58, 0.13);
  color: var(--green-deep);
}

.map-toolbar {
  left: 50%;
  bottom: 22px;
  gap: 10px;
  transform: translateX(-50%);
}

.map-tool {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 246, 227, 0.34);
  background: rgba(17, 29, 3, 0.92);
  color: #fffdf7;
  box-shadow: 0 8px 20px rgba(21, 31, 12, 0.2);
}

.map-tool.strong {
  background: var(--gold);
}

.route-tour-card {
  left: 50%;
  bottom: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(520px, calc(100% - 44px));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 246, 227, 0.36);
  border-radius: 8px;
  background: rgba(17, 29, 3, 0.9);
  color: #fffdf7;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.route-tour-card[hidden] {
  display: none;
}

.route-tour-card span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-tour-card h2 {
  margin: 5px 0 0;
  font-size: 1.2rem;
  line-height: 1.12;
}

.route-tour-card p {
  margin: 5px 0 0;
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}

.route-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(240, 170, 66, 0.13);
}

.route-summary strong {
  display: block;
  color: #fffdf7;
  line-height: 1.16;
}

.route-summary span {
  margin-top: 3px;
  font-size: 0.68rem;
  line-height: 1.2;
}

.route-nav-button {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 246, 227, 0.28);
  background: rgba(255, 246, 227, 0.12);
  color: #fffdf7;
  font-size: 1.45rem;
  line-height: 1;
}

.route-nav-button:hover {
  background: rgba(240, 170, 66, 0.28);
}

.coffee-marker,
.user-location-marker {
  display: grid;
  place-items: center;
  border: 2px solid #fffdf7;
  box-shadow: 0 10px 24px rgba(17, 29, 3, 0.35);
}

.coffee-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 253, 247, 0.18), transparent 24%), var(--green-black);
  color: #fffdf7;
  font-size: 0.8rem;
  font-weight: 950;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.coffee-marker.is-route-stop {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(240, 170, 66, 0.2),
    0 12px 26px rgba(17, 29, 3, 0.32);
}

.coffee-marker.is-highlighted,
.coffee-marker.is-route-active {
  background: radial-gradient(circle at 32% 28%, rgba(255, 253, 247, 0.28), transparent 24%), var(--gold);
  color: var(--green-black);
  transform: scale(1.12);
}

.coffee-marker.is-highlighted::after,
.coffee-marker.is-route-active::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(240, 170, 66, 0.68);
  border-radius: 50%;
  animation: markerPulse 1.7s ease-out infinite;
}

.user-location-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c9cff;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #dfe8df;
  font-family: inherit;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  border: 0;
  max-width: none !important;
  max-height: none !important;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 800;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-zoom {
  margin: 0 0 22px 22px;
  border: 1px solid rgba(255, 246, 227, 0.36);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.leaflet-control-zoom a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green-black);
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
}

.leaflet-popup {
  margin-bottom: 14px;
}

.coffee-popup.leaflet-popup {
  margin-bottom: 14px;
  margin-left: 0;
}

.leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid rgba(255, 246, 227, 0.74);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow:
    0 16px 34px rgba(17, 29, 3, 0.18),
    0 4px 12px rgba(17, 29, 3, 0.12);
  backdrop-filter: blur(12px);
}

.coffee-popup .leaflet-popup-content-wrapper {
  transform: translate(-50%, -106px);
}

.coffee-popup .leaflet-popup-content {
  width: 210px !important;
}

.leaflet-popup-content {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.35;
}

.leaflet-popup-tip {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 246, 227, 0.74);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 4px 4px 10px rgba(17, 29, 3, 0.12);
}

.coffee-popup .leaflet-popup-tip-container {
  display: none;
}

.leaflet-popup-close-button {
  display: grid;
  place-items: center;
  top: 7px !important;
  right: 7px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.leaflet-popup-close-button:hover {
  background: rgba(240, 170, 66, 0.16);
  color: var(--green-black) !important;
}

.coffee-popup-card {
  display: grid;
  gap: 6px;
  min-height: 66px;
  padding: 14px 38px 14px 16px;
  background:
    linear-gradient(90deg, var(--gold) 0 4px, transparent 4px),
    rgba(255, 253, 247, 0.96);
}

.coffee-popup-name,
.coffee-popup-drink {
  display: block;
}

.coffee-popup-name {
  color: var(--green-black);
  font-size: 0.95rem;
  line-height: 1.12;
}

.coffee-popup-drink {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

@keyframes markerPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.82);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes panelEnterLeft {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes panelEnterRight {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

@keyframes cardSelect {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100%;
    height: auto;
    grid-template-rows: auto auto auto auto;
  }

  .brand-header {
    flex-wrap: nowrap;
    min-height: 68px;
    padding: 9px 16px;
  }

  .brand-logo {
    width: 170px;
    max-width: 38vw;
    height: 44px;
  }

  .map-stage {
    min-height: calc(100vh - 110px);
    min-height: calc(100dvh - 110px);
    padding: 14px;
    overflow: visible;
  }

  .map-canvas {
    position: relative;
    height: 58vh;
    min-height: 430px;
    overflow: hidden;
    border-radius: 8px;
  }

  .floating-panel,
  .map-toolbar,
  .route-tour-card {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }

  .side-panel {
    display: block;
    overflow: visible;
  }

  .participants-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .map-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .search-panel {
    order: 1;
    padding: 14px;
  }

  .mobile-view-switcher:not([hidden]) {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 760;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 56px;
    gap: 4px;
    margin-top: 10px;
    padding: 4px;
    border: 1px solid rgba(255, 246, 227, 0.24);
    border-radius: 10px;
    background: rgba(17, 29, 3, 0.94);
    box-shadow: 0 12px 28px rgba(17, 29, 3, 0.24);
    backdrop-filter: blur(14px);
  }

  .mobile-view-tab {
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 253, 247, 0.78);
    font-weight: 900;
    transition:
      background 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .mobile-view-tab[aria-selected="true"] {
    border-color: rgba(234, 167, 71, 0.74);
    background: var(--gold);
    color: var(--green-black);
    box-shadow: 0 8px 18px rgba(203, 126, 34, 0.25);
  }

  .mobile-view-tab:active {
    transform: translateY(1px);
  }

  .map-canvas {
    order: 3;
    height: 62vh;
    height: 62dvh;
    min-height: 360px;
    margin-top: 10px;
  }

  .side-panel {
    order: 3;
    margin-top: 10px;
  }

  .mobile-detail-host:not([hidden]) {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 740;
    display: block;
    width: auto;
    max-height: calc(100% - 82px);
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(240, 170, 66, 0.42);
    border-radius: 12px;
    background: var(--paper-strong);
    box-shadow: 0 22px 54px rgba(17, 29, 3, 0.42);
    backdrop-filter: blur(16px);
  }

  .mobile-detail-host .detail-view {
    max-height: min(84dvh, calc(62dvh - 82px));
    min-height: 0;
    overflow: auto;
  }

  .side-panel.has-participant-detail #browseView {
    max-height: none;
  }

  .side-panel.has-participant-detail #browseView .commercial-note {
    display: block;
  }

  .side-panel.has-participant-detail .participants-list {
    max-height: none;
    min-height: 154px;
  }

  .side-panel > .detail-view {
    max-height: min(86dvh, 720px);
    margin-top: 12px;
    border: 1px solid rgba(240, 170, 66, 0.32);
    border-radius: 10px;
  }

  .map-stage[data-mobile-view="map"] .leaflet-bottom.leaflet-left {
    top: 0;
    bottom: auto;
  }

  .map-stage[data-mobile-view="map"] .leaflet-control-zoom {
    margin: 12px 0 0 12px;
  }

  .route-tour-card {
    order: 5;
  }

  .map-toolbar {
    order: 6;
  }

  .map-stage[data-mobile-view="list"] .map-toolbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .brand-header {
    min-height: 68px;
    gap: 8px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      8px
      max(12px, env(safe-area-inset-left));
  }

  .brand-lockup {
    align-items: center;
    width: auto;
    gap: 8px;
  }

  .brand-logo {
    width: clamp(112px, 31vw, 128px);
    max-width: none;
    height: 38px;
  }

  .title-block {
    max-width: 72px;
    padding-left: 8px;
  }

  .site-title {
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .button-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button-row button {
    width: 100%;
    text-align: center;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    gap: 0;
  }

  .official-site-link {
    width: min(31vw, 112px);
    min-height: 44px;
    padding: 0;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: right;
  }

  .intro-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 6px;
    padding: 9px 14px;
  }

  .intro-eyebrow {
    font-size: 0.6rem;
  }

  .intro-panel h1 {
    max-width: 17ch;
    margin-top: 4px;
    font-size: clamp(1.7rem, 7vw, 1.9rem);
    line-height: 1.02;
  }

  .intro-date {
    margin-top: 5px;
    font-size: 0.9rem;
  }

  .intro-copy {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .intro-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 6px;
  }

  .intro-actions button {
    width: 100%;
  }

  .intro-explore-button {
    display: none;
  }

  .intro-city-slot {
    min-height: 0;
    padding: 7px 10px;
  }

  .intro-city-heading {
    display: block;
  }

  .intro-city-heading p {
    display: none;
  }

  .intro-city-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
  }

  .intro-city-option {
    min-height: 44px;
    padding: 5px 27px 5px 8px;
  }

  .intro-city-name {
    font-size: 0.78rem;
  }

  .intro-city-count {
    font-size: 0.66rem;
  }

  .intro-city-toggle {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
  }

  .quick-actions {
    width: 100%;
    gap: 7px;
  }

  .quick-actions button {
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.78rem;
    text-align: center;
  }

  .city-filter select,
  .zone-filter select {
    min-height: 48px;
  }
}

@media (min-width: 681px) and (max-width: 1120px) and (orientation: landscape) {
  .brand-header {
    min-height: 64px;
    padding-block: 6px;
  }

  .intro-panel {
    grid-template-columns: minmax(250px, 0.9fr) minmax(420px, 1.1fr);
    min-height: 230px;
    gap: 18px;
    padding: 12px 24px;
  }

  .intro-panel h1 {
    margin-top: 4px;
    font-size: 1.8rem;
  }

  .intro-date,
  .intro-copy {
    margin-top: 5px;
  }

  .intro-copy {
    font-size: 0.8rem;
  }

  .intro-actions {
    margin-top: 8px;
  }

  .intro-explore-button {
    display: none;
  }

  .intro-actions > * {
    min-height: 44px;
  }

  .intro-city-slot {
    padding: 9px 10px;
  }

  .intro-city-heading p {
    display: none;
  }

  .intro-city-options {
    gap: 5px;
    margin-top: 7px;
  }

  .intro-city-option {
    min-height: 44px;
    padding-block: 5px;
  }

  .map-canvas {
    height: 62dvh;
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Experiencia comercial Coffee Master 2026 */

[hidden] {
  display: none !important;
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.brand-header {
  min-height: 64px;
  padding-block: 7px;
  box-shadow: none;
}

.my-route-panel h2,
.my-route-panel strong {
  color: #fff;
}

.my-route-panel p,
.my-route-panel small {
  color: rgba(255, 255, 255, 0.76);
}

.my-route-panel .text-button {
  color: var(--gold);
}

.my-route-panel .dark-button {
  background: var(--gold);
  color: var(--green-black);
}

.brand-logo {
  height: 42px;
}

.change-city-button,
.filter-toggle-button,
.location-action,
.welcome-location-button,
.summary-route-button,
.summary-close-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.change-city-button {
  padding: 0 16px;
  border: 1px solid rgba(234, 167, 71, 0.48);
  background: transparent;
  color: var(--cream);
}

.change-city-button:hover,
.change-city-button:active {
  border-color: var(--gold);
  background: rgba(234, 167, 71, 0.12);
}

.map-stage {
  min-height: 0;
  height: 100%;
}

.search-panel {
  width: min(390px, calc(100% - 44px));
  padding: 10px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(21, 31, 12, 0.2);
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-filter {
  flex: 1 1 auto;
  min-width: 0;
}

.participant-filter input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 0;
  border-radius: 999px;
  outline: 1px solid rgba(32, 49, 18, 0.12);
  background:
    linear-gradient(90deg, transparent 0 38px, rgba(32, 49, 18, 0.1) 38px 39px, transparent 39px),
    var(--brand-cream);
  color: var(--green-black);
  font-weight: 700;
}

.participant-filter {
  position: relative;
}

.participant-filter::before {
  content: "⌕";
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 1;
  color: var(--green);
  font-size: 1.35rem;
  transform: translateY(-54%);
  pointer-events: none;
}

.filter-toggle-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 15px;
  background: var(--green-deep);
  color: #fff;
}

.filter-toggle-button[aria-expanded="true"] {
  background: var(--gold);
  color: var(--green-black);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.filter-controls .quick-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.filter-controls .field-group {
  gap: 4px;
}

.filter-controls .field-group > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-controls select {
  min-height: 44px;
  border-radius: 12px;
}

.location-action {
  padding: 0 14px;
  background: rgba(68, 101, 40, 0.12);
  color: var(--green-deep);
}

.result-row {
  min-height: 32px;
  padding: 3px 6px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-row .text-button {
  min-height: 32px;
  padding-inline: 8px;
  font-size: 0.72rem;
}

.side-panel {
  width: min(410px, calc(100% - 44px));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(21, 31, 12, 0.2);
}

.side-panel .collapse-button {
  display: none;
}

.panel-view {
  padding: 16px;
}

#browseView {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.panel-title-row h2 {
  font-size: 1.05rem;
}

.participant-total {
  align-self: flex-end;
}

.participant-total strong {
  font-size: 1rem;
}

.participants-list {
  margin-top: 10px;
  gap: 7px;
}

.participant-item,
.participant-group {
  border: 0;
  border-radius: 14px;
  background: rgba(241, 220, 201, 0.36);
  box-shadow: none;
}

.participant-item {
  min-height: 76px;
  padding: 12px 14px;
}

.participant-item:hover,
.participant-group-toggle:hover {
  background: rgba(234, 167, 71, 0.16);
}

.participant-item.is-selected,
.participant-group.has-selected-site {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.participant-name {
  font-size: 0.92rem;
}

.participant-meta,
.participant-drink {
  font-size: 0.73rem;
}

.participant-map-action {
  color: var(--gold-dark);
}

.my-route-panel {
  margin: 0 16px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--green-deep);
  color: #fff;
  box-shadow: none;
}

.participant-summary {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 745;
  width: min(500px, calc(100% - 48px));
  padding: 17px;
  border: 1px solid rgba(234, 167, 71, 0.4);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 20px 50px rgba(21, 31, 12, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.summary-close-button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 44px;
  padding: 0;
  background: rgba(32, 49, 18, 0.08);
  color: var(--green-black);
  font-size: 1.35rem;
}

.summary-copy {
  padding-right: 42px;
}

.summary-kicker,
.summary-site-name,
.summary-drink,
.summary-description {
  margin: 0;
}

.summary-kicker {
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participant-summary h2 {
  margin: 4px 0 0;
  color: var(--green-black);
  font-size: 1.22rem;
  line-height: 1.1;
}

.summary-site-name {
  margin-top: 3px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-drink {
  margin-top: 9px;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.summary-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.summary-actions > * {
  min-height: 44px;
}

.summary-actions .primary-button,
.summary-actions .light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  text-align: center;
  text-decoration: none;
}

.summary-route-button {
  padding: 0 12px;
  background: transparent;
  color: var(--green-deep);
}

.summary-route-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.detail-view:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 12;
  max-height: none;
  background: var(--paper-strong);
}

.route-tour-card,
#routeFloating {
  display: none !important;
}

.welcome-layer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background: rgba(12, 20, 7, 0.58);
  backdrop-filter: blur(5px) saturate(0.78);
}

.welcome-dialog {
  width: min(640px, 100%);
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(234, 167, 71, 0.46);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 5%, rgba(234, 167, 71, 0.18), transparent 32%),
    var(--green-black);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  color: #fff;
}

.welcome-logo {
  display: block;
  width: min(230px, 60%);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.welcome-kicker,
.welcome-date,
.welcome-copy {
  margin: 0;
}

.welcome-kicker {
  margin-top: 19px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-dialog h1 {
  max-width: 13ch;
  margin: 8px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.welcome-copy {
  max-width: 50ch;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.5;
}

.welcome-date {
  margin-top: 9px;
  color: var(--cream);
  font-weight: 850;
}

.welcome-dialog .intro-city-slot {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-dialog .intro-city-kicker {
  color: var(--cream);
}

.welcome-dialog .intro-city-options {
  margin-top: 9px;
}

.welcome-dialog .intro-city-option {
  border-color: rgba(241, 220, 201, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.welcome-dialog .intro-city-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-black);
}

.welcome-dialog .intro-city-count {
  color: inherit;
  opacity: 0.72;
}

.welcome-dialog .intro-city-toggle {
  color: var(--gold);
}

.welcome-location-button {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(241, 220, 201, 0.28);
  background: transparent;
  color: var(--cream);
}

.welcome-cta {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border-radius: 999px;
}

body.welcome-is-open {
  overflow: hidden;
}

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

  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .brand-header {
    min-height: 60px;
    padding:
      max(6px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      6px
      max(12px, env(safe-area-inset-left));
  }

  .brand-logo {
    width: 132px;
    height: 38px;
  }

  .title-block,
  .official-site-link {
    display: none;
  }

  .change-city-button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.73rem;
  }

  .map-stage {
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }

  .search-panel {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    z-index: 780;
    order: initial;
    width: auto;
    margin: 0;
    padding: 8px;
    border-radius: 17px;
  }

  .search-panel .result-row {
    display: none;
  }

  .filter-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-height: min(42dvh, 310px);
    overflow: auto;
  }

  .mobile-view-switcher:not([hidden]) {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    z-index: 820;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 58px;
    width: auto;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 18px;
    background: rgba(21, 31, 12, 0.96);
    box-shadow: 0 14px 36px rgba(21, 31, 12, 0.32);
  }

  .mobile-view-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    gap: 1px;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 0.72rem;
  }

  .mobile-view-tab > span {
    font-size: 1rem;
    line-height: 1;
  }

  .side-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    display: block;
    width: 100%;
    margin: 0;
    padding: 90px 10px 80px;
    overflow: auto;
    border-radius: 0;
    background: var(--brand-cream);
    box-shadow: none;
  }

  #browseView {
    min-height: 100%;
    padding: 14px;
    overflow: visible;
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.94);
  }

  .participants-list {
    max-height: none;
    overflow: visible;
  }

  .my-route-panel {
    min-height: calc(100% - 8px);
    margin: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .participant-summary {
    left: 10px;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(42dvh, 310px);
    padding: 14px;
    border-radius: 18px;
    transform: none;
  }

  .summary-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .summary-route-button {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .mobile-detail-host:not([hidden]) {
    left: 8px;
    right: 8px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-height: calc(100% - 88px);
    border: 0;
    border-radius: 20px;
  }

  .mobile-detail-host .detail-view {
    position: relative;
    inset: auto;
    max-height: min(82dvh, calc(100dvh - 150px));
  }

  .mobile-detail-host .detail-actions {
    position: sticky;
    bottom: 0;
    margin-bottom: 0;
    padding-bottom: max(44px, env(safe-area-inset-bottom));
  }

  .map-stage[data-mobile-view="map"] .leaflet-bottom.leaflet-left {
    top: auto;
    bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .map-stage[data-mobile-view="map"] .leaflet-control-zoom {
    display: none;
  }

  .map-toolbar {
    display: none;
  }

  .site-credit {
    min-height: 42px;
    padding-block: 0;
  }

  .site-credit a {
    min-height: 42px;
    padding-block: 5px;
  }
}

@media (max-width: 680px) {
  .welcome-dialog {
    max-height: calc(100dvh - 20px);
    padding: 20px 18px;
    border-radius: 22px;
  }

  .welcome-logo {
    width: 170px;
    height: 44px;
  }

  .welcome-kicker {
    margin-top: 12px;
    font-size: 0.64rem;
  }

  .welcome-dialog h1 {
    margin-top: 6px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .welcome-copy {
    margin-top: 9px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .welcome-date {
    margin-top: 5px;
    font-size: 0.84rem;
  }

  .welcome-dialog .intro-city-slot {
    margin-top: 13px;
  }

  .welcome-dialog .intro-city-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
  }

  .welcome-dialog .intro-city-option {
    min-height: 46px;
    padding: 6px 25px 6px 9px;
  }

  .welcome-location-button,
  .welcome-cta {
    min-height: 48px;
  }

  .search-panel {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .participant-filter input {
    font-size: 0.83rem;
  }

  .filter-toggle-button {
    padding-inline: 11px;
    font-size: 0.74rem;
  }

  .participant-summary h2 {
    font-size: 1.08rem;
  }

  .summary-description {
    -webkit-line-clamp: 2;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .brand-header {
    min-height: 50px;
  }

  .brand-logo {
    height: 31px;
  }

  .site-credit,
  .site-credit a {
    min-height: 36px;
  }

  .welcome-layer {
    padding: 8px;
  }

  .welcome-dialog {
    width: min(760px, 100%);
    max-height: calc(100dvh - 16px);
    padding: 14px 20px;
  }

  .welcome-logo {
    width: 140px;
    height: 34px;
  }

  .welcome-kicker {
    margin-top: 5px;
  }

  .welcome-dialog h1 {
    max-width: none;
    margin-top: 3px;
    font-size: 1.8rem;
  }

  .welcome-copy,
  .welcome-date {
    margin-top: 4px;
    font-size: 0.76rem;
  }

  .welcome-dialog .intro-city-slot {
    margin-top: 7px;
  }

  .welcome-dialog .intro-city-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 5px;
  }

  .welcome-dialog .intro-city-option {
    min-height: 42px;
  }

  .welcome-location-button,
  .welcome-cta {
    display: inline-flex;
    width: calc(50% - 4px);
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
  }

  .welcome-cta {
    margin-left: 4px;
  }

  .participant-summary {
    left: auto;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: min(370px, calc(100% - 80px));
    max-height: calc(100% - 88px);
    overflow: auto;
  }
}

/* Correcciones de búsqueda, filtros y paneles */

.search-suggestions {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 68px;
  z-index: 30;
  max-height: min(390px, 48dvh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(32, 49, 18, 0.12);
  border-radius: 16px;
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(21, 31, 12, 0.26);
}

.search-suggestion {
  display: grid;
  width: 100%;
  min-height: 58px;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--green-black);
  text-align: left;
}

.search-suggestion + .search-suggestion {
  border-top: 1px solid rgba(32, 49, 18, 0.08);
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  background: rgba(234, 167, 71, 0.18);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.search-suggestion-name,
.search-suggestion-site,
.search-suggestion-drink,
.search-suggestion-location {
  display: block;
  min-width: 0;
}

.search-suggestion-name {
  font-size: 0.84rem;
  line-height: 1.2;
}

.search-suggestion-site,
.search-suggestion-location {
  color: var(--muted);
  font-size: 0.7rem;
}

.search-suggestion-drink {
  color: var(--gold-dark);
  font-size: 0.73rem;
  font-weight: 850;
}

.search-suggestions-empty {
  margin: 0;
  padding: 15px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.filter-panel-heading {
  display: none;
}

.filter-close-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 49, 18, 0.08);
  color: var(--green-black);
  font-size: 1.25rem;
  font-weight: 900;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.empty-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(32, 49, 18, 0.16);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 850;
}

.list-empty-state {
  display: grid;
  min-height: 210px;
  place-content: center;
  padding: 20px 12px;
  text-align: center;
}

.list-empty-state p,
.mobile-map-empty p {
  margin: 0;
  color: var(--green-deep);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .filter-controls {
    grid-template-columns: minmax(0, 1fr);
    max-height: min(58dvh, 420px);
    gap: 12px;
    margin: 8px -8px -8px;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(32, 49, 18, 0.1);
    border-radius: 0 0 17px 17px;
    background: var(--brand-cream);
    box-shadow: 0 16px 30px rgba(21, 31, 12, 0.16);
  }

  .filter-panel-heading {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
  }

  .filter-panel-heading strong {
    color: var(--green-black);
    font-size: 1rem;
  }

  .filter-controls .quick-actions {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-controls .quick-actions > * {
    min-height: 48px;
    margin: 0;
    border-radius: 999px;
  }

  .filter-controls .field-group {
    padding-inline: 2px;
  }

  .filter-controls .field-group > span {
    padding-left: 4px;
  }

  .filter-controls select {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px 36px;
  }

  .result-row {
    justify-content: space-between;
    min-height: 38px;
    padding: 5px 8px 0;
  }

  .result-row #resultCount {
    font-weight: 800;
  }

  .search-suggestions {
    top: 64px;
    max-height: min(360px, 42dvh);
  }

  .mobile-map-empty {
    top: 48%;
    width: min(350px, calc(100% - 24px));
    padding: 18px 14px;
  }

  .participant-summary {
    max-height: min(38dvh, 280px);
    overflow-y: auto;
  }
}

@media (max-width: 680px) {
  .search-suggestion {
    min-height: 56px;
  }

  .empty-actions {
    flex-direction: column;
  }

  .empty-actions button {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .map-stage[data-mobile-view="map"] .leaflet-bottom.leaflet-left {
    top: 206px;
    right: 10px;
    bottom: auto;
    left: auto;
  }

  .map-stage[data-mobile-view="map"] .leaflet-control-zoom {
    margin: 0;
  }

  body:has(#filterControls:not([hidden])) .map-stage .leaflet-control-zoom {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .map-stage[data-mobile-view="map"] .leaflet-bottom.leaflet-left {
    top: 148px;
  }

  .filter-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 140px;
    gap: 6px 10px;
    padding: 8px 12px 10px;
  }

  .filter-panel-heading {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .filter-controls .field-group,
  .filter-controls .quick-actions {
    align-self: end;
    grid-row: 2;
  }

  .filter-controls .city-filter {
    grid-column: 1;
  }

  .filter-controls .zone-filter {
    grid-column: 2;
  }

  .filter-controls .quick-actions {
    grid-column: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-controls .field-group > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .filter-controls select,
  .filter-controls .quick-actions > * {
    min-height: 44px;
  }
}

/* Refinamiento de jerarquía, densidad y composición */

.brand-header {
  min-height: 68px;
}

.brand-lockup {
  flex: 1 1 auto;
}

.brand-logo {
  object-position: left center;
}

.header-actions {
  margin-left: auto;
}

.map-canvas > .map-toolbar {
  left: 424px;
  gap: 7px;
}

.map-tool-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.map-tool-icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-tool-icon[aria-busy="true"] svg {
  animation: locationPulse 900ms ease-in-out infinite alternate;
}

.filter-controls {
  gap: 6px;
  padding-block: 8px;
}

.filter-panel-heading {
  min-height: 36px;
}

.filter-panel-heading strong,
.field-group > span,
.panel-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.filter-controls .quick-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.filter-controls .filter-clear-button {
  width: auto;
  min-height: 40px;
  padding-inline: 12px;
  border-color: transparent;
  font-size: 0.72rem;
}

.intro-city-option[aria-pressed="true"]::after,
.intro-zone-option[aria-pressed="true"]::after {
  content: none;
}

.intro-city-option,
.intro-zone-option {
  padding-right: 9px;
}

@media (min-width: 861px) {
  .side-panel {
    display: flex;
  }

  #browseView {
    min-height: 0;
    padding-bottom: 8px;
  }

  #participantsPanelContent {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
  }

  .participants-list {
    flex: 1 1 0;
    height: auto;
    max-height: none;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    padding-right: 3px;
  }

  .participant-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 94px;
    align-items: stretch;
    gap: 9px;
    padding: 6px;
  }

  .participant-thumbnail,
  .participant-group-thumbnail {
    display: grid;
    width: 82px;
    height: 82px;
    min-height: 82px;
    border-radius: 10px;
  }

  .participant-card-content {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 1px;
    padding-right: 4px;
  }

  .participant-card-content .participant-site-name,
  .participant-card-content .participant-location,
  .participant-card-content .participant-drink {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .participant-card-content .participant-site-name {
    font-weight: 500;
  }

  .participant-card-content .participant-drink {
    margin-top: 3px;
  }

  .participant-card-content .participant-map-action {
    margin-top: 3px;
  }

  .participant-group-toggle {
    grid-template-columns: 82px minmax(0, 1fr) auto auto;
    min-height: 94px;
    gap: 8px;
    padding: 6px;
  }

  .my-route-panel {
    flex: 0 0 auto;
    margin: 0 10px 10px;
    padding: 10px 12px 11px;
    border-radius: 11px;
  }

  .my-route-panel .panel-title-row {
    gap: 8px;
  }

  .my-route-panel .panel-title-row h2 {
    font-size: 0.86rem;
  }

  .my-route-panel .panel-kicker {
    font-size: 0.62rem;
  }

  .my-route-panel .route-heading-actions {
    gap: 4px;
  }

  .my-route-panel .text-button {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .user-route-list {
    gap: 4px;
    margin-top: 6px;
  }

  .user-route-list p {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .user-route-item {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .my-route-panel .dark-button {
    min-height: 40px;
    margin-top: 7px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1120px) {
  .map-canvas > .map-toolbar {
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    top: 112px;
    gap: 6px;
  }

  body:has(#filterControls:not([hidden])) .map-canvas > .map-toolbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .brand-header {
    min-height: 60px;
  }

  .brand-logo {
    width: min(148px, 45vw);
    height: 40px;
  }

  .welcome-dialog h1 {
    max-width: 34ch;
    margin-top: 9px;
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.28;
  }

  .welcome-dialog .intro-city-kicker,
  .intro-zone-title {
    font-size: 0.6rem;
  }

  .welcome-dialog .intro-city-count,
  .intro-zone-option small {
    font-size: 0.56rem;
  }

  .intro-city-name,
  .intro-zone-option span {
    font-size: 0.72rem;
  }

  .welcome-location-button {
    font-size: 0.75rem;
  }

  .search-panel {
    font-size: 0.8rem;
  }

  .filter-toggle-button,
  .participant-filter input {
    font-size: 0.78rem;
  }

  .filter-controls {
    max-height: min(48dvh, 330px);
    padding-block: 6px 8px;
  }

  .filter-controls .quick-actions {
    width: min(94%, 360px);
    justify-content: center;
  }

  .filter-controls .filter-clear-button {
    width: auto;
    min-height: 38px;
  }

  .panel-title-row h2 {
    font-size: 0.94rem;
  }

  .participant-total,
  .participant-meta,
  .participant-drink,
  .participant-location {
    font-size: 0.69rem;
  }

  .participant-name {
    font-size: 0.84rem;
  }

  .participant-site-name,
  .participant-map-action {
    font-size: 0.72rem;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .filter-controls .quick-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    width: min(100%, 340px);
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-tool-icon[aria-busy="true"] svg {
    animation: none;
  }
}

/* Navegación territorial por pasos y controles cartográficos independientes */

.welcome-dialog {
  position: relative;
}

.welcome-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(241, 220, 201, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 1.45rem;
  line-height: 1;
}

.intro-back-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.intro-selected-city {
  margin: 2px 0 4px;
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.map-canvas > .map-toolbar {
  position: absolute;
  left: 392px;
  top: 22px;
  bottom: auto;
  z-index: 730;
  display: flex;
  width: auto;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  transform: none;
}

.map-tool-icon {
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
}

.map-tool-icon[aria-busy="true"] {
  opacity: 0.7;
}

.map-tool-icon[aria-busy="true"] span {
  animation: locationPulse 900ms ease-in-out infinite alternate;
}

@keyframes locationPulse {
  to {
    transform: scale(0.72);
    opacity: 0.5;
  }
}

@media (max-width: 1120px) {
  .map-canvas > .map-toolbar {
    position: absolute;
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    top: 68px;
    bottom: auto;
    display: flex;
    width: auto;
    margin: 0;
  }

  .map-stage[data-mobile-view="list"] .map-toolbar,
  .map-stage[data-mobile-view="route"] .map-toolbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .map-canvas > .map-toolbar {
    display: flex;
  }

  .welcome-dialog {
    padding-top: 18px;
  }

  .welcome-close-button {
    top: 9px;
    right: 9px;
    width: 44px;
    height: 44px;
  }

  .intro-zone-slot {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 0;
  }

  .intro-zone-title {
    margin-top: 2px;
    text-align: center;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .map-canvas > .map-toolbar {
    top: 10px;
  }

  .welcome-dialog {
    padding-block: 10px;
  }

  .intro-zone-slot {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-tool-icon[aria-busy="true"] span {
    animation: none;
  }
}

/* Refinamiento visual de bienvenida y selección */

.participant-summary {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px 14px;
  width: min(560px, calc(100% - 48px));
  padding: 14px;
}

.summary-image-wrap,
.participant-image-wrap {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 170, 66, 0.2), transparent 52%),
    #e9e5d9;
}

.summary-image-wrap {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 15px;
}

.summary-image-wrap img,
.participant-image-wrap img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms ease;
}

.summary-image-wrap.has-image img,
.participant-image-wrap.has-image img {
  opacity: 1;
}

.summary-image-wrap .image-loading-placeholder,
.summary-image-wrap .image-placeholder {
  position: absolute;
  inset: 0;
}

.image-loading-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.image-loading-placeholder span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2));
  background-size: 220% 100%;
  animation: coffee-image-skeleton 1.1s ease-in-out infinite;
}

.image-loading-placeholder small {
  font-size: 0.68rem;
  font-weight: 750;
}

@keyframes coffee-image-skeleton {
  to {
    background-position: -220% 0;
  }
}

.summary-copy {
  min-width: 0;
  padding-right: 42px;
  align-self: center;
}

.summary-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.welcome-dialog {
  width: min(590px, 100%);
  max-height: min(650px, calc(100dvh - 28px));
  padding: clamp(20px, 3vw, 30px);
}

.welcome-dialog h1 {
  max-width: 24ch;
  margin: 14px auto 0;
  font-family: inherit;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.18;
  text-align: center;
}

.welcome-dialog .intro-city-slot {
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .image-loading-placeholder span {
    animation: none;
  }

  .summary-image-wrap img,
  .participant-image-wrap img {
    transition: none;
  }
}

@media (max-width: 860px) {
  .search-panel {
    padding: 8px;
    border: 0;
    box-shadow: 0 9px 24px rgba(21, 31, 12, 0.16);
  }

  .result-row {
    min-height: 32px;
    padding-top: 2px;
  }

  .filter-controls {
    margin-top: 6px;
  }

  .participant-summary {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px 12px;
    width: auto;
    max-height: min(42dvh, 330px);
    padding: 12px;
    overflow-y: auto;
  }

  .summary-image-wrap {
    width: 108px;
  }

  .summary-route-button {
    display: none;
  }

  .summary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-copy {
    padding-right: 38px;
  }
}

@media (max-width: 680px) {
  .welcome-dialog {
    max-height: calc(100dvh - 16px);
    padding: 16px;
    border-radius: 20px;
  }

  .welcome-logo {
    width: min(170px, 48vw);
  }

  .welcome-dialog h1 {
    max-width: 22ch;
    margin-top: 10px;
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .welcome-dialog .intro-city-slot {
    margin-top: 12px;
  }

  .welcome-dialog .intro-city-options {
    gap: 5px;
  }

  .welcome-location-button,
  .welcome-cta {
    min-height: 46px;
  }

  .participant-summary {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 9px 10px;
    max-height: min(40dvh, 315px);
  }

  .summary-image-wrap {
    width: 102px;
  }

  .participant-summary h2 {
    font-size: 1rem;
  }

  .summary-drink {
    margin-top: 6px;
  }

  .summary-description {
    font-size: 0.74rem;
  }
}

/* Optimización móvil de listado, filtros y ficha */

.participant-thumbnail,
.participant-group-thumbnail {
  position: relative;
  display: none;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 170, 66, 0.24), transparent 55%),
    #e9e5d9;
}

.participant-thumbnail img,
.participant-group-thumbnail img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 160ms ease;
}

.participant-thumbnail.has-image img,
.participant-group-thumbnail.has-image img {
  opacity: 1;
}

.thumbnail-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #e3ded1 20%, #f7f2e7 45%, #e3ded1 70%);
  background-size: 220% 100%;
  animation: coffee-image-skeleton 1.1s ease-in-out infinite;
}

.thumbnail-placeholder {
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.filter-active-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 4px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-black);
  font-size: 0.68rem;
  line-height: 1;
}

.filter-active-count[hidden] {
  display: none;
}

.filter-clear-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(32, 49, 18, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.detail-view .participant-image-wrap {
  width: 100%;
  min-height: 210px;
  aspect-ratio: auto;
  padding: 10px;
  background: #e9e5d9;
}

.detail-view .participant-image-wrap.has-image {
  min-height: 0;
}

.detail-view .participant-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62dvh, 680px);
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail-skeleton {
    animation: none;
  }

  .participant-thumbnail img,
  .participant-group-thumbnail img {
    transition: none;
  }
}

@media (max-width: 860px) {
  .search-panel {
    padding: 6px;
    border-radius: 15px;
  }

  .search-bar-row {
    gap: 6px;
  }

  .participant-filter {
    margin-top: 0;
  }

  .participant-filter input,
  .filter-toggle-button {
    min-height: 44px;
  }

  .result-row {
    min-height: 25px;
    padding: 1px 7px 0;
  }

  .result-row #resultCount {
    font-size: 0.72rem;
  }

  .filter-controls {
    margin: 5px -6px -6px;
    padding: 9px 12px 12px;
  }

  .filter-controls .filter-clear-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .side-panel {
    padding-top: 80px;
  }

  #browseView {
    padding: 10px;
  }

  .panel-title-row {
    padding-inline: 2px;
  }

  .participants-list {
    margin-top: 7px;
    gap: 6px;
  }

  .participant-item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 108px;
    gap: 10px;
    align-items: stretch;
    padding: 7px;
    border-radius: 13px;
  }

  .participant-thumbnail,
  .participant-group-thumbnail {
    display: grid;
  }

  .participant-thumbnail {
    width: 98px;
    min-height: 94px;
    border-radius: 10px;
  }

  .participant-card-content {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 2px;
    padding: 3px 4px 3px 0;
  }

  .participant-card-content .participant-name,
  .participant-card-content .participant-site-name,
  .participant-card-content .participant-location,
  .participant-card-content .participant-drink {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .participant-card-content .participant-map-action {
    margin-top: 3px;
  }

  .participant-group-toggle {
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    min-height: 86px;
    gap: 7px;
    padding: 7px;
  }

  .participant-group-thumbnail {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  .participant-group-toggle > .participant-name {
    grid-column: 2;
  }

  .participant-group-count {
    grid-column: 3;
  }

  .participant-group-indicator {
    grid-column: 4;
  }

  .map-stage[data-mobile-view="route"] .search-panel,
  body:has(#mobileDetailHost:not([hidden])) .search-panel {
    display: none;
  }

  body:has(#mobileDetailHost:not([hidden])) .mobile-detail-host {
    max-height: calc(100% - 82px);
  }

  .mobile-detail-host .detail-view {
    max-height: min(84dvh, calc(100dvh - 145px));
  }
}

@media (max-width: 680px) {
  .participant-item {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .participant-thumbnail {
    width: 94px;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .filter-controls {
    position: relative;
  }

  .filter-controls .filter-clear-button {
    position: absolute;
    top: 7px;
    right: 58px;
    width: auto;
    min-height: 36px;
  }

  .detail-view .participant-image-wrap img {
    max-height: 68dvh;
  }
}

/* Flujo territorial de bienvenida y consistencia multisede */

.welcome-dialog {
  display: grid;
  justify-items: stretch;
}

.welcome-logo {
  width: clamp(190px, 58vw, 230px);
  max-width: 70%;
  height: auto;
  justify-self: center;
  object-fit: contain;
  object-position: center;
}

.intro-zone-slot {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.intro-zone-slot[hidden] {
  display: none;
}

.intro-zone-title {
  margin: 0;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.intro-zone-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.intro-zone-option {
  position: relative;
  display: grid;
  min-height: 48px;
  align-content: center;
  gap: 1px;
  padding: 7px 26px 7px 9px;
  border: 1px solid rgba(241, 220, 201, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
}

.intro-zone-option span {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-zone-option small {
  color: inherit;
  font-size: 0.64rem;
  opacity: 0.72;
}

.intro-zone-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-black);
  box-shadow: inset 4px 0 0 var(--green-black);
}

.intro-zone-option[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: 9px;
  top: 50%;
  font-weight: 950;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .participant-group-toggle {
    grid-template-columns: 98px minmax(0, 1fr) auto auto;
    min-height: 122px;
  }

  .participant-thumbnail,
  .participant-group-thumbnail {
    width: 98px;
    height: 108px;
    min-height: 108px;
    border-radius: 10px;
  }

  .participant-group-thumbnail {
    width: 98px;
    height: 108px;
  }
}

@media (max-width: 680px) {
  .welcome-logo {
    width: clamp(190px, 58vw, 220px);
    max-width: 70%;
  }

  .intro-zone-slot {
    margin-top: 10px;
    padding-top: 9px;
  }

  .intro-zone-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .intro-zone-option {
    min-height: 46px;
  }

  .participant-item {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 118px;
  }

  .participant-group-toggle {
    grid-template-columns: 94px minmax(0, 1fr) auto auto;
    min-height: 118px;
  }

  .participant-thumbnail,
  .participant-group-thumbnail {
    width: 94px;
    height: 104px;
    min-height: 104px;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .intro-zone-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Refinamiento de jerarquía, selectores y filtros */

.filter-controls .field-group {
  width: min(100%, 340px);
  margin-inline: auto;
}

.filter-controls:has(.zone-filter[hidden]) .city-filter {
  grid-column: 1 / -1;
}

.filter-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.welcome-dialog h1 {
  max-width: 38ch;
  margin: 15px auto 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 2vw, 1.06rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.welcome-dialog .intro-city-kicker,
.intro-zone-title {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  opacity: 0.78;
}

.welcome-dialog .intro-city-count,
.intro-zone-option small {
  font-size: 0.6rem;
  font-weight: 650;
  opacity: 0.62;
}

.welcome-dialog .intro-city-toggle {
  min-height: 38px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.84;
}

@media (max-width: 860px) {
  .official-site-link {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    font-size: 0;
    text-decoration: none;
  }

  .official-site-link::after {
    margin: 0;
    font-size: 1rem;
  }

  .filter-controls {
    max-height: min(55dvh, 390px);
    gap: 7px;
    padding: 8px 10px 10px;
    overflow-y: auto;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 12px 24px rgba(21, 31, 12, 0.13);
  }

  .filter-panel-heading {
    min-height: 40px;
  }

  .filter-controls .field-group {
    width: min(94%, 360px);
    gap: 3px;
    margin: 0 auto;
    padding: 0;
  }

  .filter-controls .field-group > span {
    padding-left: 3px;
    font-size: 0.64rem;
  }

  .filter-controls select {
    width: 100%;
    min-height: 48px;
  }

  .filter-controls .quick-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    width: min(94%, 360px);
    gap: 7px;
    margin: 1px auto 0;
  }

  .filter-controls .quick-actions > .location-action {
    width: 100%;
    min-height: 46px;
  }

  .filter-secondary-actions {
    gap: 7px;
  }

  .filter-secondary-actions > * {
    min-height: 44px;
    margin: 0;
  }

  .filter-secondary-actions .filter-clear-button {
    grid-column: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .welcome-dialog h1 {
    max-width: 36ch;
    margin-top: 13px;
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    max-height: min(55dvh, 190px);
    gap: 4px 8px;
    padding: 4px 8px 6px;
  }

  .filter-panel-heading {
    min-height: 34px;
  }

  .filter-controls .city-filter,
  .filter-controls .zone-filter {
    grid-row: 2;
    width: 100%;
  }

  .filter-controls:has(.zone-filter[hidden]) .city-filter {
    grid-column: 1 / -1;
  }

  .filter-controls .quick-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .filter-secondary-actions {
    display: contents;
  }

  .filter-controls .filter-clear-button {
    position: static;
    width: auto;
    min-height: 44px;
  }
}

/* Ajustes finales de cascada para la interfaz compacta */

.map-canvas > .map-toolbar {
  left: 424px;
  gap: 7px;
}

.map-tool-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.map-tool-icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-city-option[aria-pressed="true"]::after,
.intro-zone-option[aria-pressed="true"]::after {
  content: none;
}

.intro-city-option,
.intro-zone-option {
  padding-right: 9px;
}

.filter-controls {
  gap: 6px;
  padding-block: 8px;
}

.filter-panel-heading {
  min-height: 36px;
}

.filter-controls .quick-actions {
  display: flex;
  width: min(100%, 340px);
  justify-content: center;
  margin-top: 0;
}

.filter-controls .filter-clear-button {
  width: auto;
  min-height: 40px;
  padding-inline: 12px;
  border-color: transparent;
  font-size: 0.72rem;
}

@media (min-width: 861px) {
  .side-panel {
    display: flex;
  }

  #browseView {
    min-height: 0;
    padding-bottom: 8px;
  }

  #participantsPanelContent {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
  }

  .participants-list {
    flex: 1 1 0;
    height: auto;
    max-height: none;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    padding-right: 3px;
  }

  .participant-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 94px;
    align-items: stretch;
    gap: 9px;
    padding: 6px;
  }

  .participant-thumbnail,
  .participant-group-thumbnail {
    display: grid;
    width: 82px;
    height: 82px;
    min-height: 82px;
    border-radius: 10px;
  }

  .participant-card-content {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 1px;
    padding-right: 4px;
  }

  .participant-card-content .participant-site-name,
  .participant-card-content .participant-location,
  .participant-card-content .participant-drink {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .participant-card-content .participant-drink,
  .participant-card-content .participant-map-action {
    margin-top: 3px;
  }

  .participant-group-toggle {
    grid-template-columns: 82px minmax(0, 1fr) auto auto;
    min-height: 94px;
    gap: 8px;
    padding: 6px;
  }

  .my-route-panel {
    flex: 0 0 auto;
    margin: 0 10px 10px;
    padding: 10px 12px 11px;
    border-radius: 11px;
  }

  .my-route-panel .panel-title-row h2 {
    font-size: 0.86rem;
  }

  .my-route-panel .panel-kicker {
    font-size: 0.62rem;
  }

  .my-route-panel .text-button {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .user-route-list {
    gap: 4px;
    margin-top: 6px;
  }

  .user-route-list p {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .user-route-item {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .my-route-panel .dark-button {
    min-height: 40px;
    margin-top: 7px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1120px) {
  .map-canvas > .map-toolbar {
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    top: 112px;
    gap: 6px;
  }

  body:has(#filterControls:not([hidden])) .map-canvas > .map-toolbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .welcome-dialog h1 {
    max-width: 34ch;
    margin-top: 9px;
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.28;
  }

  .welcome-dialog .intro-city-kicker,
  .intro-zone-title {
    font-size: 0.6rem;
  }

  .welcome-dialog .intro-city-count,
  .intro-zone-option small {
    font-size: 0.56rem;
  }

  .intro-city-name,
  .intro-zone-option span {
    font-size: 0.72rem;
  }

  .filter-controls {
    max-height: min(48dvh, 330px);
    padding-block: 6px 8px;
  }

  .panel-title-row h2 {
    font-size: 0.94rem;
  }

  .participant-name {
    font-size: 0.84rem;
  }

  .participant-site-name,
  .participant-map-action {
    font-size: 0.72rem;
  }
}
