:root {
  --tx-honey: #FFB000;
  --tx-ink: #111111;
  --tx-muted: #6B6B70;
  --tx-surface: #FFF7E2;
  --tx-line: #E6E6E8;
  --tx-white: #FFFFFF;
  --tx-radius: 12px;
}

.tx-map-section { display: grid; gap: 12px; margin: 24px 0; }
.tx-map-head h2, .tx-map-head h3 { margin: 0 0 4px; }
.tx-map-head p { margin: 0; color: var(--tx-muted); }

.tx-map {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--tx-radius);
  overflow: hidden;
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
}
.tx-map--compact { height: 300px; }
@media (max-width: 640px) {
  .tx-map { height: 360px; }
  .tx-map--compact { height: 260px; }
}
.tx-map-status {
  position: absolute; inset: auto 12px 12px 12px; z-index: 2;
  margin: 0; padding: 10px 12px; border-radius: var(--tx-radius);
  background: var(--tx-white); color: var(--tx-ink); font-size: 14px;
  border: 1px solid var(--tx-line);
}
.tx-map-status[hidden] { display: none; }
.tx-map--failed { height: auto; min-height: 72px; }
.tx-map--failed .tx-map-status { position: static; margin: 12px; }

.tx-map-note { margin: 0; font-size: 13px; color: var(--tx-muted); }

.tx-map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.tx-map-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--tx-line); border-radius: 999px; background: var(--tx-white); cursor: pointer; font-size: 14px;
}
.tx-map-filter input { width: 18px; height: 18px; accent-color: var(--tx-honey); margin: 0; }

.tx-map-dot { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--tx-ink); background: var(--tx-honey); }
.tx-map-item--directory .tx-map-dot, .tx-map-filter--directory .tx-map-dot { background: var(--tx-white); border-color: var(--tx-honey); border-style: dashed; }
.tx-map-item--cellar .tx-map-dot, .tx-map-filter--cellar .tx-map-dot { background: var(--tx-ink); border-color: var(--tx-honey); }
.tx-map-item--experience .tx-map-dot, .tx-map-filter--experience .tx-map-dot { border-radius: 4px; }

.tx-map-marker {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; border: 2px solid var(--tx-ink); background: var(--tx-honey); color: var(--tx-ink);
  box-shadow: 0 1px 4px rgba(17, 17, 17, .25); cursor: pointer;
}
.tx-map-marker { position: relative; }
.tx-map-marker::before { content: ''; position: absolute; inset: -15px; border-radius: 50%; }
.tx-map-marker::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tx-white); }
.tx-map-marker--group::after { display: none; }
.tx-map-marker--group { width: 32px; height: 32px; }
.tx-map-marker-count { font: 800 13px/1 Inter, system-ui, sans-serif; }
.tx-map-marker--directory { background: var(--tx-white); border-color: var(--tx-honey); border-style: dashed; }
.tx-map-marker--directory::after { background: var(--tx-honey); }
.tx-map-marker--cellar { background: var(--tx-ink); border-color: var(--tx-honey); color: var(--tx-white); }
.tx-map-marker--cellar::after { background: var(--tx-honey); }
.tx-map-marker--experience { border-radius: 8px; }
.tx-map-marker.is-demo { opacity: .85; }
.tx-map-marker:focus-visible { outline: 3px solid var(--tx-ink); outline-offset: 2px; }

.tx-map-popup-wrap .maplibregl-popup-content { padding: 14px 14px 12px; border-radius: var(--tx-radius); box-shadow: 0 6px 24px rgba(17, 17, 17, .18); }
.tx-map-popup-wrap .maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 20px; color: var(--tx-ink); }
.tx-map-popup-count { margin: 0 24px 8px 0; font-weight: 800; }
.tx-map-popup-list { max-height: 260px; overflow-y: auto; display: grid; gap: 10px; }

.tx-map-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tx-map-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--tx-radius); background: var(--tx-surface); }
.tx-map-popup .tx-map-item { padding: 0; background: transparent; }
.tx-map-item .tx-map-dot { margin-top: 4px; }
.tx-map-item-body { min-width: 0; }
.tx-map-item-title { margin: 0; font-weight: 800; color: var(--tx-ink); }
.tx-map-item-meta { margin: 2px 0 0; font-size: 14px; color: var(--tx-muted); }
.tx-map-item-demo { margin: 4px 0 0; font-size: 13px; color: var(--tx-ink); }
.tx-map-item-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.tx-map-empty { margin: 0; color: var(--tx-muted); }

.tx-map-section a, .tx-map a, .tx-location a, .tx-directory-status a, .tx-sources a, .tx-map-popup a,
.maplibregl-ctrl-attrib a, .maplibregl-ctrl-attrib-inner a { text-decoration: none; }
.tx-map-item-title a, .tx-sources a { color: var(--tx-ink); }
.tx-map-item-title a:hover, .tx-sources a:hover { color: var(--tx-muted); }
.maplibregl-ctrl-attrib a { color: var(--tx-muted); }

.tx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tx-nav-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--tx-ink); margin-right: 4px; }
.tx-nav-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--tx-radius); border: 1px solid var(--tx-ink); background: var(--tx-white); color: var(--tx-ink); font-weight: 800; font-size: 15px;
}
.tx-nav-btn--primary, .tx-nav .btn-primary.tx-nav-btn { background: var(--tx-honey); border-color: var(--tx-honey); color: var(--tx-ink); }
.tx-nav-btn:focus-visible { outline: 3px solid var(--tx-ink); outline-offset: 2px; }

.tx-location { display: grid; gap: 6px; padding: 16px; border-radius: var(--tx-radius); background: var(--tx-surface); }
.tx-location-title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; }
.tx-location-label { margin: 0; color: var(--tx-ink); }
.tx-location-meta { margin: 0; font-size: 14px; color: var(--tx-muted); }
.tx-location-demo { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; }

.tx-verified { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--tx-radius); border: 1px solid var(--tx-line); background: var(--tx-white); }
.tx-verified-title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; color: #2E7D32; }
.tx-verified-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tx-verified-reasons li { display: flex; align-items: center; gap: 6px; }
.tx-verified-mini { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--tx-white); border: 1px solid var(--tx-line); font-size: 12px; font-weight: 800; color: #2E7D32; vertical-align: middle; }

.tx-directory-status { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--tx-radius); background: var(--tx-surface); }
.tx-directory-status p { margin: 0; }
.tx-directory-status-title { font-weight: 800; }
.tx-directory-status.is-partner { background: var(--tx-white); border: 1px solid var(--tx-honey); }

.tx-sources-title { margin: 0 0 4px; font-weight: 800; }
.tx-sources ul { margin: 0; padding-left: 18px; }

.tx-glass { display: inline-flex; align-items: center; gap: 8px; }
.tx-glass-name { font-size: 14px; color: var(--tx-ink); }

.tx-score { display: inline-flex; align-items: baseline; gap: 4px; color: var(--tx-ink); }
.tx-score span { color: var(--tx-muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .tx-map *, .tx-map-section * { transition: none !important; animation: none !important; }
}
