/* =========================================================
   Find Bars CSS
   Compact green/white discovery interface for celticfcbars.com
   ========================================================= */

/* Design Tokens */
:root {
  --finder-green: #0b9f48;
  --finder-green-dark: #06773a;
  --finder-green-deep: #053f2a;
  --finder-green-soft: #dff7ea;
  --finder-white: #ffffff;
  --finder-off-white: #f5f8f4;
  --finder-ink: #07110b;
  --finder-muted: rgba(7, 17, 11, 0.68);
  --finder-soft: rgba(7, 17, 11, 0.52);
  --finder-line: rgba(0, 75, 47, 0.16);
  --finder-line-strong: rgba(0, 155, 58, 0.34);
  --finder-focus: 0 0 0 3px rgba(0, 155, 58, 0.28);
  --finder-shadow: 0 8px 18px rgba(7, 17, 11, 0.07);
  --finder-shadow-tight: 0 4px 12px rgba(7, 17, 11, 0.06);
  --finder-radius-xs: 0.55rem;
  --finder-radius-sm: 0.75rem;
  --finder-radius-md: 1rem;
  --finder-radius-lg: 1.25rem;
  --finder-space-1: 0.35rem;
  --finder-space-2: 0.5rem;
  --finder-space-3: 0.75rem;
  --finder-space-4: 1rem;
  --finder-space-5: 1.25rem;
  --finder-type-xs: clamp(0.68rem, 0.67rem + 0.08vw, 0.74rem);
  --finder-type-sm: clamp(0.78rem, 0.76rem + 0.12vw, 0.86rem);
  --finder-type-base: clamp(0.92rem, 0.9rem + 0.16vw, 1rem);
  --finder-type-lg: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --finder-type-title: clamp(1.9rem, 1.45rem + 2.2vw, 3.1rem);
}

/* Page Shell */
.find-bars-page {
  color: var(--finder-ink);
  background: var(--finder-off-white);
}

.find-bars-page .site-header {
  border-bottom: 1px solid var(--finder-line);
}

.discovery-app {
  min-height: 100vh;
  background: var(--finder-off-white);
}

/* Accessible Focus */
.discovery-app :where(a, button, input, select):focus-visible,
.leaflet-container :where(a, button):focus-visible {
  outline: none;
  box-shadow: var(--finder-focus);
}

.discovery-app :where(button, a, input, select) {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

/* Hero And Summary */
.discovery-hero {
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 var(--finder-space-3);
}

.discovery-hero__inner {
  display: grid;
  gap: var(--finder-space-4);
  padding: clamp(0.9rem, 2vw, 1.2rem);
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-lg);
  background: var(--finder-white);
  box-shadow: var(--finder-shadow-tight);
}

.discovery-hero__copy {
  display: grid;
  gap: var(--finder-space-2);
}

.discovery-hero__copy .eyebrow,
.results-head .eyebrow,
.map-card-head .eyebrow {
  border-color: var(--finder-line);
  background: rgba(0, 155, 58, 0.07);
  color: var(--finder-green-deep);
}

.discovery-hero__copy h1 {
  max-width: 18ch;
  color: var(--finder-ink);
  font-size: var(--finder-type-title);
  line-height: 1;
  letter-spacing: -0.045em;
}

.discovery-hero__copy p:not(.eyebrow) {
  max-width: 48rem;
  color: var(--finder-muted);
  font-size: var(--finder-type-base);
  line-height: 1.5;
}

.discovery-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--finder-space-2);
}

.summary-chip-card {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-sm);
  background: var(--finder-off-white);
}

.summary-label {
  display: block;
  color: var(--finder-soft);
  font-size: var(--finder-type-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.summary-chip-card strong,
.map-card-metric strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--finder-green-deep);
  font-size: var(--finder-type-lg);
  line-height: 1.1;
}

/* Workspace And Utility Bar */
.discovery-workspace-section {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.discovery-workspace {
  display: grid;
  gap: var(--finder-space-3);
}

.discovery-toolbar {
  position: sticky;
  top: calc(var(--header-height) + 0.35rem);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--finder-space-2);
  padding: var(--finder-space-2);
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-md);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--finder-shadow-tight);
  backdrop-filter: blur(14px);
}

.discovery-toolbar-main {
  display: grid;
  gap: var(--finder-space-2);
}

.discovery-actions-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--finder-space-2);
}

.discovery-advanced-filters {
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-sm);
  background: var(--finder-off-white);
}

.discovery-advanced-filters > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.62rem 0.75rem;
  font-size: var(--finder-type-sm);
  font-weight: 800;
  color: var(--finder-green-deep);
}

.discovery-advanced-filters > summary::-webkit-details-marker {
  display: none;
}

.discovery-advanced-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--finder-space-2);
  padding: 0 var(--finder-space-2) var(--finder-space-2);
}

.discovery-advanced-filters .discovery-filter-pills,
.discovery-advanced-filters .discovery-country-row {
  padding: 0 var(--finder-space-2) var(--finder-space-2);
}

.discovery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--finder-space-2);
  min-width: 0;
}

.discovery-search-input,
.page-select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-sm);
  background: var(--finder-white);
  color: var(--finder-ink);
  font-size: var(--finder-type-sm);
}

.discovery-search-input {
  padding: 0 0.8rem;
}

.discovery-search-input::placeholder {
  color: var(--finder-soft);
}

.page-select {
  padding: 0 2rem 0 0.75rem;
  font-weight: 800;
}

.discovery-search-input:hover,
.page-select:hover {
  border-color: var(--finder-line-strong);
}

.discovery-toolbar .button {
  min-height: 2.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--finder-radius-sm);
  font-size: var(--finder-type-sm);
  line-height: 1;
  white-space: nowrap;
}

/* Filter Rows */
.discovery-filter-pills,
.discovery-country-row {
  display: flex;
  gap: var(--finder-space-2);
  overflow-x: auto;
  padding: 0.05rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.discovery-filter-pills::-webkit-scrollbar,
.discovery-country-row::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.country-pill {
  flex: 0 0 auto;
  min-height: 2.05rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--finder-line);
  border-radius: 999px;
  background: var(--finder-white);
  color: var(--finder-green-deep);
  font-size: var(--finder-type-xs);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.filter-pill:hover,
.country-pill:hover {
  border-color: var(--finder-line-strong);
  transform: translateY(-1px);
}

.filter-pill.is-active,
.country-pill.is-active {
  border-color: rgba(11, 159, 72, 0.42);
  background: var(--finder-green-soft);
  color: var(--finder-green-deep);
}

.discovery-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--finder-muted);
  font-size: var(--finder-type-sm);
  line-height: 1.4;
}

/* Split Workspace */
.discovery-layout {
  display: grid;
  gap: var(--finder-space-3);
  align-items: start;
}

.map-column {
  order: 2;
  min-width: 0;
}

.results-column {
  order: 1;
  min-width: 0;
}

/* Results Header */
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--finder-space-3);
  padding: var(--finder-space-3);
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-md);
  background: var(--finder-white);
  box-shadow: var(--finder-shadow-tight);
}

.results-head h2,
.map-card-head h2 {
  max-width: none;
  margin-top: 0.25rem;
  color: var(--finder-ink);
  font-size: var(--finder-type-lg);
  line-height: 1.1;
}

.results-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--finder-space-2);
}

.results-meta-pill,
.results-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid var(--finder-line);
  border-radius: 999px;
  background: var(--finder-off-white);
  color: var(--finder-muted);
  font-size: var(--finder-type-xs);
  font-weight: 800;
}

.results-toggle {
  color: var(--finder-green-deep);
}

.results-toggle:hover {
  border-color: var(--finder-green);
  background: rgba(0, 155, 58, 0.08);
}

.results-body {
  margin-top: var(--finder-space-2);
}

.results-grid {
  display: grid;
  gap: var(--finder-space-2);
}

/* Venue Cards */
.venue-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid var(--finder-line);
  border-left: 3px solid var(--finder-green-dark);
  border-radius: var(--finder-radius-sm);
  background: var(--finder-white);
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.results-grid .venue-card:nth-child(odd) {
  border-color: rgba(0, 155, 58, 0.52);
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #0b9f48 0%, #06773a 100%);
}

.results-grid .venue-card:nth-child(even) {
  background: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-card-title,
.results-grid .venue-card:nth-child(odd) .venue-card-location,
.results-grid .venue-card:nth-child(odd) .venue-card-note,
.results-grid .venue-card:nth-child(odd) .venue-card-foot .text-link,
.results-grid .venue-card:nth-child(odd) .text-link {
  color: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-card-foot {
  border-top-color: rgba(255, 255, 255, 0.36);
}

.results-grid .venue-card:nth-child(odd) .venue-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-tag--csc {
  background: #ffffff;
  color: var(--finder-green-deep);
}

.results-grid .venue-card:nth-child(odd) .venue-tag--warn {
  background: rgba(255, 255, 255, 0.9);
  color: #1f3f31;
}

.results-grid .venue-card:nth-child(odd) .venue-btn--primary {
  background: #ffffff;
  color: var(--finder-green-deep);
}

.results-grid .venue-card:nth-child(odd) .venue-btn--primary:hover {
  background: #eef8f1;
}

.results-grid .venue-card:nth-child(odd) .venue-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.results-grid .venue-card:nth-child(odd) .venue-btn--csc {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-btn--csc:hover {
  background: rgba(255, 255, 255, 0.28);
}

.results-grid .venue-card:nth-child(odd) .venue-quick-btn {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.results-grid .venue-card:nth-child(odd) .venue-quick-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.venue-card--official {
  border-left-color: var(--finder-green-deep);
}

.venue-card:hover,
.venue-card:focus-within {
  border-color: var(--finder-line-strong);
  box-shadow: var(--finder-shadow-tight);
}

.venue-card.is-focused {
  border-color: var(--finder-green);
  box-shadow: var(--finder-focus);
}

.venue-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
}

.venue-card-main {
  min-width: 0;
}

.venue-card-headline {
  display: grid;
  gap: 0.28rem;
}

.venue-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.venue-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(0, 155, 58, 0.1);
  color: var(--finder-green-deep);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.venue-tag--csc {
  background: var(--finder-green-deep);
  color: var(--finder-white);
}

.venue-tag--warn {
  background: rgba(7, 17, 11, 0.08);
  color: var(--finder-soft);
}

.venue-tag--distance {
  background: rgba(0, 75, 47, 0.12);
  color: var(--finder-green-deep);
}

.venue-tag--status {
  background: rgba(0, 155, 58, 0.16);
  color: var(--finder-green-deep);
  border-color: rgba(0, 155, 58, 0.28);
}

.venue-card-title {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--finder-ink);
  font-size: clamp(0.92rem, 0.9rem + 0.12vw, 1.02rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.venue-card-location {
  margin: 0.22rem 0 0;
  color: var(--finder-muted);
  font-size: var(--finder-type-xs);
  line-height: 1.35;
}

.venue-card-note {
  margin: 0.22rem 0 0;
  color: var(--finder-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.venue-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex-shrink: 0;
}

.venue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 1.75rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--finder-radius-xs);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.venue-btn--primary {
  background: var(--finder-green);
  color: var(--finder-white);
}

.venue-btn--primary:hover {
  background: var(--finder-green-dark);
}

.venue-btn--ghost {
  border-color: var(--finder-line);
  background: var(--finder-off-white);
  color: var(--finder-green-deep);
}

.venue-btn--ghost:hover {
  border-color: var(--finder-green);
  background: rgba(0, 155, 58, 0.08);
}

.venue-btn--csc {
  border-color: rgba(0, 155, 58, 0.34);
  background: rgba(0, 155, 58, 0.12);
  color: var(--finder-green-deep);
}

.venue-btn--csc:hover {
  border-color: var(--finder-green);
  background: rgba(0, 155, 58, 0.2);
}

.venue-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--finder-line);
}

.venue-card-foot .text-link {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.venue-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-xs);
  background: var(--finder-off-white);
  color: var(--finder-green-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.venue-quick-btn:hover {
  border-color: var(--finder-line-strong);
  background: var(--finder-green-soft);
}

/* Keep inline community accordions on-brand within find-bars cards */
.find-bars-page .listing-accordion {
  margin-top: 0.45rem;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-sm);
  background: var(--finder-off-white);
}

.find-bars-page .listing-accordion > summary {
  padding: 0.58rem 0.68rem;
  color: var(--finder-green-deep);
  font-size: var(--finder-type-sm);
  font-weight: 900;
}

.find-bars-page .listing-accordion-body {
  padding: 0 0.68rem 0.7rem;
  gap: 0.45rem;
}

.find-bars-page .listing-accordion-body p,
.find-bars-page .listing-accordion-body .section-copy {
  color: var(--finder-muted);
  font-size: var(--finder-type-xs);
  line-height: 1.35;
}

.find-bars-page .listing-accordion .card-actions {
  margin-top: 0.2rem;
}

.find-bars-page .listing-accordion .button.button-secondary {
  min-height: 2rem;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-xs);
  background: var(--finder-white);
  color: var(--finder-green-deep);
  font-size: var(--finder-type-xs);
  font-weight: 900;
}

.find-bars-page .listing-accordion .button.button-secondary:hover {
  border-color: var(--finder-line-strong);
  background: var(--finder-green-soft);
}

.text-link,
.venue-card-foot .text-link,
.map-popup-links a {
  color: var(--finder-green-deep);
  font-size: var(--finder-type-xs);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.venue-card-foot .text-link:hover,
.map-popup-links a:hover {
  color: var(--finder-green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Map Shell */
.map-card {
  overflow: hidden;
  border: 1px solid var(--finder-line);
  border-radius: var(--finder-radius-lg);
  background: var(--finder-green-deep);
  box-shadow: var(--finder-shadow-tight);
}

.map-card-head,
.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--finder-space-3);
  padding: var(--finder-space-3);
  background: var(--finder-green-deep);
  color: var(--finder-white);
}

.map-card-head .eyebrow {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--finder-white);
}

.map-card-head h2,
.map-card-head .text-link,
.map-card-footer .summary-label,
.map-card-footer strong {
  color: var(--finder-white);
}

.map-card-head .text-link {
  white-space: nowrap;
}

.map-card-stage {
  position: relative;
  padding: var(--finder-space-2);
  background: var(--finder-green-deep);
}

.interactive-map {
  width: 100%;
  height: clamp(22rem, 58vw, 44rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--finder-radius-md);
  background: var(--finder-green-deep);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--finder-space-3);
  padding: var(--finder-space-2) 0.15rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--finder-type-xs);
  font-weight: 800;
}

.legend-dot {
  display: inline-flex;
  width: 0.68rem;
  height: 0.68rem;
  margin-right: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  vertical-align: -0.04rem;
}

.legend-dot--official {
  background: var(--finder-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.legend-dot--bar {
  background: var(--finder-green);
  box-shadow: 0 0 0 3px rgba(0, 155, 58, 0.24);
}

.map-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.map-card-metric {
  min-width: 0;
}

.map-card-metric strong {
  overflow: hidden;
  font-size: var(--finder-type-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Leaflet Overrides */
.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  margin-top: -7.5px;
  border: 2px solid var(--finder-white);
  border-radius: 999px;
  background: var(--finder-green-dark);
  box-shadow: 0 0 0 4px rgba(0, 155, 58, 0.18);
}

.map-marker--official {
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  background: var(--finder-green-deep);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(0, 75, 47, 0.22);
}

.marker-cluster div {
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: var(--finder-green-deep);
  color: var(--finder-white);
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--finder-shadow-tight);
}

.leaflet-control-zoom a,
.leaflet-control-attribution {
  border-color: var(--finder-line) !important;
  background: var(--finder-white) !important;
  color: var(--finder-green-deep) !important;
}

.leaflet-control-zoom a {
  font-weight: 900;
}

.leaflet-control-zoom a:hover {
  background: var(--finder-off-white) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid var(--finder-line);
  background: var(--finder-white);
  color: var(--finder-ink);
  box-shadow: 0 10px 24px rgba(7, 17, 11, 0.16);
}

.leaflet-popup-content {
  min-width: 14rem;
  margin: 0.8rem;
}

.map-popup-title {
  color: var(--finder-ink);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.map-popup-copy {
  margin-top: 0.32rem;
  color: var(--finder-muted);
  font-size: var(--finder-type-sm);
  line-height: 1.35;
}

.map-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--finder-space-2);
  margin-top: var(--finder-space-3);
}

/* Tablet */
@media (min-width: 42rem) {
  .discovery-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .discovery-actions-inline {
    grid-template-columns: auto auto minmax(11rem, 0.4fr);
  }

  .discovery-advanced-grid {
    grid-template-columns: repeat(3, minmax(10rem, 1fr)) auto;
    align-items: center;
  }
}

/* Desktop Split View */
@media (min-width: 64rem) {
  .discovery-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.8fr);
    align-items: end;
  }

  .discovery-summary {
    align-self: stretch;
  }

  .discovery-layout {
    grid-template-columns: minmax(18rem, 0.54fr) minmax(0, 1.46fr);
  }

  .results-column {
    position: sticky;
    top: calc(var(--header-height) + 5.2rem);
    order: 1;
    max-height: calc(100vh - var(--header-height) - 5.8rem);
    overflow: hidden;
  }

  .results-body {
    max-height: calc(100vh - var(--header-height) - 12rem);
    overflow: auto;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 75, 47, 0.26) transparent;
  }

  .map-column {
    position: sticky;
    top: calc(var(--header-height) + 5.2rem);
    order: 2;
  }

  .interactive-map {
    height: calc(100vh - var(--header-height) - 12rem);
    min-height: 33rem;
  }
}

@media (min-width: 82rem) {
  .discovery-layout {
    grid-template-columns: minmax(23rem, 0.56fr) minmax(0, 1.44fr);
  }
}

/* Small Screens */
@media (max-width: 63.9375rem) {
  .discovery-toolbar {
    position: static;
    top: auto;
  }

  .discovery-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .discovery-actions-inline {
    grid-template-columns: 1fr 1fr;
  }

  .discovery-actions-inline .page-select {
    grid-column: 1 / -1;
  }

  .results-column {
    border: 1px solid var(--finder-line);
    border-radius: var(--finder-radius-md);
    background:
      radial-gradient(circle at top right, rgba(0, 155, 58, 0.08), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
    box-shadow: var(--finder-shadow);
  }

  .results-head {
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--finder-line);
    border-radius: var(--finder-radius-md) var(--finder-radius-md) 0 0;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
  }

  .results-head .eyebrow {
    display: none;
  }

  .results-head h2 {
    margin-top: 0;
    color: var(--finder-ink);
  }

  .results-meta-pill,
  .results-toggle {
    border-color: var(--finder-line);
    background: var(--finder-off-white);
    color: var(--finder-muted);
  }

  .results-toggle {
    color: var(--finder-green-deep);
  }

  .results-body {
    margin-top: 0;
    padding: 0.55rem;
  }

  .results-grid {
    gap: 0.45rem;
  }

  .venue-card {
    padding: 0.55rem 0.6rem;
    border-color: var(--finder-line);
  }

  .venue-card-title {
    color: var(--finder-ink);
  }

  .venue-card-location {
    color: var(--finder-muted);
  }

  .venue-card-foot {
    border-top-color: var(--finder-line);
  }

  .venue-card-foot .text-link {
    color: var(--finder-green-deep);
  }

  .venue-tag--warn {
    background: rgba(7, 17, 11, 0.08);
    color: var(--finder-soft);
  }

  .venue-btn--ghost {
    border-color: var(--finder-line);
    background: var(--finder-off-white);
    color: var(--finder-green-deep);
  }

  .interactive-map {
    height: clamp(16rem, 42vw, 22rem);
  }
}

@media (max-width: 41.9375rem) {
  .discovery-search {
    grid-template-columns: 1fr;
  }

  .discovery-search .button {
    width: 100%;
  }

  .discovery-actions-inline {
    grid-template-columns: 1fr;
  }

  .discovery-advanced-grid {
    grid-template-columns: 1fr;
  }

  .results-head,
  .map-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-head-actions {
    width: 100%;
  }

  .venue-card-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .venue-card-actions {
    flex-direction: row;
    width: 100%;
  }

  .venue-btn {
    flex: 1 1 0;
  }

  .venue-quick-btn {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-app *,
  .leaflet-container * {
    transition-duration: 0.01ms !important;
  }
}
