:root {
  --brand-green: #2C5E3B;
  --brand-green-light: #417D53;
  --brand-green-pale: #EBF2ED;
  --accent-terracotta: #D96B43;
  --accent-terracotta-dark: #C0562F;
  --accent-terracotta-pale: #FDF1EC;
  --off-white: #FDFBF7;
  --paper: #F3ECE0;
  --paper-dark: #E6DCCD;
  --charcoal: #242925;
  --muted-gray: #707A72;
  --border-color: #DFD7C9;
  --shadow: 0 12px 40px rgba(44, 94, 59, 0.15);
  --shadow-sm: 0 4px 12px rgba(44, 94, 59, 0.08);
  --font-fancy: 'Fraunces', Georgia, serif;
  --font-sans: 'Quicksand', system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--paper);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  overscroll-behavior-y: none;
}

/* Map Canvas */
#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--paper, #F3ECE0);
  z-index: 1;
}

/* Map bottom-right legal links (sits below all drawers and overlay containers) */
.map-legal-links {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 3px 10px;
  pointer-events: auto;
  line-height: 1.4;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.map-legal-links a {
  text-decoration: none;
  color: var(--charcoal, #333);
  font-size: 10px;
  transition: opacity 0.15s ease;
}

.map-legal-links a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.map-legal-powered {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-decoration: none;
  margin-right: 2px;
}

.map-legal-powered .powered-prefix {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 10px;
  font-weight: 500;
  color: #666;
}

.map-legal-powered .powered-brand {
  font-family: var(--font-fancy, 'Fraunces', Georgia, serif);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-green, #2C5E3B);
  letter-spacing: -0.2px;
}

.map-legal-powered .powered-brand span {
  color: var(--accent-terracotta, #D96B43);
}

.map-legal-powered:hover .powered-brand {
  text-decoration: underline;
}

body.is-custom-domain .map-legal-powered,
html.is-custom-domain .map-legal-powered {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .map-legal-links {
    background: transparent;
  }
  .map-legal-links a {
    color: var(--charcoal, #333) !important;
  }
  .map-legal-powered .powered-prefix {
    color: #666;
  }
  .map-legal-powered .powered-brand {
    color: var(--brand-green, #2C5E3B);
  }
  .map-legal-powered .powered-brand span {
    color: var(--accent-terracotta, #D96B43);
  }
}

/* Overlay Interfaces */
ui-drawer:not(.active),
ui-modal:not(.active),
ui-modal:not(.open) {
  display: none !important;
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Let clicks pass through to map */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interactive {
  pointer-events: auto;
  /* Re-enable clicks for UI elements */
}

/* Floating Search Area Button */
.btn-search-area {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  white-space: nowrap;
  width: auto !important;
  display: inline-block;
  --ui-button-background: var(--off-white);
  --ui-button-color: var(--brand-green);
  --ui-button-border-color: var(--brand-green);
  --ui-button-border-width: 2px;
  --ui-button-border-radius: var(--radius-lg);
  --ui-button-padding: 10px 20px;
  --ui-button-font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-search-area:hover {
  --ui-button-background-hover: var(--brand-green);
  --ui-button-color-hover: var(--off-white);
  transform: translateX(-50%) translateY(-2px);
}

/* Brand Header floating cleanly in top-left with text halo protection */
.top-brand-card {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  height: 44px;
  /* Align height with buttons on the right */
  align-items: center;
  pointer-events: none;
  /* Clicks pass through brand letters straight to map */
}

html.is-roadside-market .top-brand-card,
body.is-roadside-market .top-brand-card {
  display: flex;
}

@media (min-width: 768px) {
  .top-brand-card {
    left: 24px;
    top: 24px;
  }
}

.top-brand-text {
  font-family: var(--font-fancy);
  font-weight: 800;
  font-size: 1.5rem;
  /* Reduced from 1.8rem */
  color: var(--brand-green);
  letter-spacing: -0.5px;
  /* Smooth high-contrast drop-shadow and white outline halo for perfect map-reading */
  text-shadow:
    -2px -2px 0 var(--off-white),
    2px -2px 0 var(--off-white),
    -2px 2px 0 var(--off-white),
    2px 2px 0 var(--off-white),
    0 4px 12px rgba(44, 94, 59, 0.2);
}

.top-brand-text span {
  color: var(--accent-terracotta);
}

/* Floating minimalist top-right settings cog trigger */
.btn-top-settings {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-green);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 768px) {
  .btn-top-settings {
    right: 24px;
    top: 24px;
  }
}

.btn-top-settings:hover {
  transform: scale(1.05);
  background: var(--brand-green-pale);
  border-color: var(--brand-green);
}

.btn-top-settings svg {
  width: 20px;
  height: 20px;
}

/* Bottom Console Command Area */
.bottom-console-wrapper {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* Interactive Filters Panel directly above the search input */
.filter-panel-expanded {
  background: var(--off-white);
  border: 0px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  margin-bottom: -8px; /* Negate the wrapper's gap when closed */
  overflow: hidden;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Smooth transition handling: toggle overflow: visible on complete animation */
.filter-panel-expanded.open {
  opacity: 1;
  max-height: 400px;
  padding: 12px;
  margin-bottom: 0;
  border-width: 2px;
  box-shadow: var(--shadow);
  /* Enhanced height allowance for scrollable items */
  visibility: visible;
  transform: translateY(0);
  overflow: visible;
  /* Let the hover transform pop up over the boundaries cleanly */
}

.filter-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-green);
}

/* Filter chips styled with brand aesthetics */
.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 4px;
  /* Internal vertical padding provides breathing room for scaled hovers */
  margin: -8px -4px;
  /* Pull margin back slightly to preserve structural layout tight fit */
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

/* -- UI Subtabs / Segmented Control Component -- */
ui-subtabs,
ui-segmented-control,
.ui-subtabs {
  display: inline-flex;
  background: var(--off-white, #f4f1ea);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-light, #e2dac9);
  gap: 4px;
  box-sizing: border-box;
}

ui-subtabs button,
ui-segmented-control button,
.ui-subtabs-btn {
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted-gray, #707A72);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

ui-subtabs button:hover,
ui-segmented-control button:hover,
.ui-subtabs-btn:hover {
  color: var(--charcoal, #2c332e);
}

ui-subtabs button.active,
ui-segmented-control button.active,
.ui-subtabs-btn.active {
  background: var(--brand-green, #2c5e3b);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(44, 94, 59, 0.2);
}

/* -- Unified UI Chip Component -- */
.ui-chip-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.ui-chip-container .chip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

/* Variant: filter */
.ui-chip-container.variant-filter {
  background: var(--paper);
  border: 1px solid var(--border-color);
  color: var(--charcoal);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
}

.ui-chip-container.variant-filter:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--brand-green-light);
  box-shadow: 0 4px 12px rgba(44, 94, 59, 0.1);
}

.ui-chip-container.variant-filter.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--off-white);
}

/* Variant: tag */
.ui-chip-container.variant-tag {
  background: var(--chip-bg, var(--brand-green-pale));
  color: var(--chip-text, var(--brand-green));
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--chip-border, transparent);
}

/* Variant: outline */
.ui-chip-container.variant-outline {
  background: var(--chip-bg, var(--paper));
  color: var(--chip-text, var(--charcoal));
  border: 1px solid var(--chip-border, var(--border-color));
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Variant: preset (for form inputs) */
.ui-chip-container.variant-preset {
  background: var(--chip-bg, transparent);
  color: var(--chip-text, var(--charcoal));
  border: 1px dashed var(--chip-border, var(--brand-green));
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.ui-chip-container.variant-preset:hover {
  background: var(--paper);
}

.ui-chip-container.variant-preset.active {
  background: var(--brand-green-pale);
  color: var(--brand-green);
  border-style: solid;
  border-color: var(--border-color);
}

/* Bottom Centered Search Bar structure - Re-designed to be a single, clean pill wrapper */
.bottom-search-card {
  background: var(--off-white);
  border: 2px solid var(--border-color);
  border-radius: 9999px;
  /* Pill Shape */
  box-shadow: var(--shadow);
  padding: 6px 6px 6px 16px;
  /* Snug on the right for the circle button */
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.search-input-field input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
}

.search-input-field svg {
  color: var(--muted-gray);
  flex-shrink: 0;
}

/* Filter Toggle Button inside search layout - Modified to circle with only SVG icon */
.btn-filter-toggle {
  --ui-button-width: 40px;
  --ui-button-height: 40px;
  --ui-button-background: var(--brand-green-pale);
  --ui-button-color: var(--brand-green);
  --ui-button-border-color: var(--border-color);
  --ui-button-border-width: 1px;
  --ui-button-border-radius: 50%;
  --ui-button-padding: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.btn-filter-toggle:hover {
  --ui-button-background-hover: var(--brand-green);
  --ui-button-color-hover: var(--off-white);
  --ui-button-border-color: var(--brand-green);
}

.btn-filter-toggle.active {
  --ui-button-background: var(--brand-green);
  --ui-button-color: var(--off-white);
  --ui-button-border-color: var(--brand-green);
}

/* Floating Action Buttons (FAB) layout updates */
.fab-container {
  position: absolute;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  /* Lifted to stay clean of bottom search console and home indicator */
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 768px) {
  .fab-container {
    right: 24px;
    bottom: 24px;
    /* Static desktop bottom positioning */
  }
}

.btn-fab {
  --ui-button-width: 44px;
  --ui-button-height: 44px;
  --ui-button-border-radius: 50%;
  --ui-button-background: var(--brand-green);
  --ui-button-color: var(--off-white);
  --ui-button-border-color: var(--off-white);
  --ui-button-border-width: 2px;
  --ui-button-padding: 0;
  --ui-button-shadow: var(--shadow);
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.btn-fab:hover {
  --ui-button-background-hover: var(--brand-green-light);
}

.btn-fab.accent {
  --ui-button-background: var(--accent-terracotta);
}

.btn-fab.accent:hover {
  --ui-button-background-hover: var(--accent-terracotta-dark);
}

ui-button#btnCancelAdd {
  --ui-button-background: var(--muted-gray);
  --ui-button-background-hover: var(--border-color);
  --ui-button-border-color: var(--border-color);
  --ui-button-color: var(--off-white);
  --ui-button-color-hover: var(--off-white);
}

.btn-fab svg,
.btn-fab ui-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.btn-fab.inactive {
  --ui-button-background: var(--surface-color, #ffffff);
  --ui-button-color: var(--charcoal, #333333);
  --ui-button-border-color: var(--border-color, #e0e0e0);
}

.btn-fab.inactive:hover {
  --ui-button-background-hover: var(--off-white, #fdfbf7);
  --ui-button-color-hover: var(--charcoal, #333333);
}

.btn-fab.loading svg,
.btn-fab.loading ui-icon {
  animation: pulseSearch 0.8s ease-in-out infinite alternate;
  color: var(--brand-green-pale);
}

@keyframes pulseSearch {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
}

/* Long-press ring that grows while holding the geolocate button */
#btnGeolocate.holding::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid var(--brand-green-light);
  animation: holdRing 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes holdRing {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
    transform: scale(1.25);
  }
}

/* ── Radial satellite location menu ───────────────────────── */

#geolocateWrapper {
  position: relative;
}

/* Each satellite starts collapsed at the center of the main button */
.geo-satellite {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(2px, 2px) scale(0.2);
  /* centered on 44px FAB */
  transition:
    transform 0.3s cubic-bezier(0.55, 0, 1, 0.45),
    opacity 0.2s ease;
  z-index: 10;
}

/* Open: satellites spring out to their arc positions — 95px radius quarter-circle */
/* Satellite 1 (Go Home) — nearly straight up (80° from horizontal) */
#geolocateWrapper.geo-open #geoSatGoHome {
  transform: translate(-16px, -93px) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  transition-delay: 0.1s;
}

/* Satellite 2 (My Location) — diagonal 45° */
#geolocateWrapper.geo-open #geoSatLocate {
  transform: translate(-67px, -67px) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  transition-delay: 0.05s;
}

/* Satellite 3 (Drive Mode) — nearly straight left (10° from horizontal) */
#geolocateWrapper.geo-open #geoSatDrive {
  transform: translate(-93px, -16px) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  transition-delay: 0s;
}

/* Satellite button base */
.btn-geo-satellite {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--brand-green);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(44, 94, 59, 0.35);
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.btn-geo-satellite:active {
  transform: scale(0.88);
}

/* Go Home — warm amber */
#geoSatGoHome .btn-geo-satellite {
  background: #B8731A;
  box-shadow: 0 6px 20px rgba(184, 115, 26, 0.4);
}

#geoSatGoHome .btn-geo-satellite:hover {
  background: #A0611A;
}

/* My Location — brand green (default, no override needed) */
#geoSatLocate .btn-geo-satellite:hover {
  background: var(--brand-green-light);
}

/* Drive Mode — slate blue */
#geoSatDrive .btn-geo-satellite {
  background: #3D6B8E;
  box-shadow: 0 6px 20px rgba(61, 107, 142, 0.4);
}

#geoSatDrive .btn-geo-satellite:hover {
  background: #325C7A;
}

/* Main button icon swap: crosshair ↔ plane ↔ X
       Priority: geo-open > drive-active > default            */
#btnGeolocate .icon-drive {
  display: none;
}

#btnGeolocate .icon-close {
  display: none;
}

/* Drive mode active — show plane, hide crosshair */
#geolocateWrapper.drive-active #btnGeolocate .icon-locate {
  display: none;
}

#geolocateWrapper.drive-active #btnGeolocate .icon-drive {
  display: block;
}

/* Menu open takes priority over drive icon — show X */
#geolocateWrapper.geo-open #btnGeolocate .icon-locate {
  display: none;
}

#geolocateWrapper.geo-open #btnGeolocate .icon-drive {
  display: none;
}

#geolocateWrapper.geo-open #btnGeolocate .icon-close {
  display: block;
}

/* Drive mode active — slate blue to match the satellite */
#geolocateWrapper.drive-active #btnGeolocate {
  --ui-button-background: #3D6B8E;
  --ui-button-background-hover: #325C7A;
}

/* Pulsing ring when drive mode is active — tight, close to button */
#geolocateWrapper.drive-active #btnGeolocate::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #3D6B8E;
  animation: driveRing 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes driveRing {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.09);
  }
}

/* Subtle darkening of the main button when acting as "close" */
#geolocateWrapper.geo-open #btnGeolocate {
  --ui-button-background: #1d4228;
}

/* Custom Map Markers styles (Optimized: Smaller Pins & Selected Highlights) */
.market-marker {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 8px rgba(44, 94, 59, 0.2));
}

.marker-pin-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.market-marker:hover .marker-pin-wrapper {
  transform: scale(1.1) translateY(-2px);
}

.market-marker.selected .marker-pin-wrapper {
  transform: scale(1.18) translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(44, 94, 59, 0.35));
}

.marker-verified-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.marker-verified-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stand-pin-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
  pointer-events: none;
  flex-shrink: 0;
}

.stand-pin-wrapper img,
.stand-pin-wrapper svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  filter: none;
}

.stand-pin-wrapper .marker-verified-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.stand-pin-wrapper .marker-verified-svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
}

/* Highlighted Selected Pin look and size updates */
.market-marker.selected {
  --selected-z-index: 99999999;
  z-index: var(--selected-z-index) !important;
}

.marker-pin {
  width: 28px;
  height: 28px;
  background: var(--accent-terracotta);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--off-white);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.marker-pin-inner {
  width: 9px;
  height: 9px;
  background: var(--brand-green-pale);
  border-radius: 50%;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.marker-pin-wrapper img,
.marker-pin-wrapper svg,
.marker-pin-img,
.claimed-pin-icon,
.community-pin-icon,
.verified-pin-icon,
.trail-pin-icon,
.market-pin-icon,
.custom-pin-icon,
[class*="-pin-icon"] {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 3px 6px rgba(44, 94, 59, 0.2));
}

.market-marker.selected .claimed-pin-icon,
.market-marker.selected .community-pin-icon,
.market-marker.selected .verified-pin-icon,
.market-marker.selected .trail-pin-icon,
.market-marker.selected .market-pin-icon,
.market-marker.selected .custom-pin-icon,
.market-marker.selected [class*="-pin-icon"] {
  filter: drop-shadow(0 6px 12px rgba(44, 94, 59, 0.35));
}

/* Selected Map Pin Glamour State styles */
.market-marker.selected .marker-pin {
  background: var(--brand-green) !important;
  border-color: var(--accent-terracotta) !important;
  transform: rotate(-45deg) scale(1.3);
  box-shadow:
    0 0 0 6px rgba(44, 94, 59, 0.25),
    0 8px 24px rgba(44, 94, 59, 0.4);
}

.market-marker.selected .marker-pin-inner {
  background: var(--off-white) !important;
}



/* Form and general layout variables */
ui-input,
ui-select {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--ui-input-padding, 10px 14px);
  font-family: var(--font-sans);
  font-size: var(--ui-input-font-size, 0.95rem);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(44, 94, 59, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Date & Time Inputs and Picker Indicators */
input[type="date"].form-control,
input[type="date"],
input[type="time"].form-control,
input[type="time"] {
  color-scheme: light;
  padding: 6px 8px;
  font-size: 0.88rem;
  min-height: 38px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: inline-block !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  opacity: 0.85;
  margin: 0;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  display: inline-block !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  opacity: 0.85;
  margin: 0;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Firefox date and time picker icons */
@-moz-document url-prefix() {
  input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 15px 15px;
    padding-right: 26px;
  }
  input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 15px 15px;
    padding-right: 26px;
  }
}

/* Seasonal Availability Grid Layout */
.seasonal-dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.seasonal-date-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.seasonal-col-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seasonal-date-input,
.seasonal-date-input.form-group {
  margin-bottom: 0 !important;
  width: 100%;
  min-width: 0;
}

@media (max-width: 330px) {
  .seasonal-dates-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-checkbox {
  display: none;
}

.category-label {
  background: var(--paper);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.category-checkbox:checked+.category-label {
  background: var(--brand-green-pale);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* Interactive Buttons layout definitions */
.btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brand-green);
  color: var(--off-white);
}

.btn-primary:hover {
  background: var(--brand-green-light);
}

.btn-secondary {
  background: var(--paper-dark);
  color: var(--charcoal);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-accent {
  background: var(--accent-terracotta);
  color: var(--off-white);
}

.btn-accent:hover {
  background: var(--accent-terracotta-dark);
}

.stand-details-title {
  font-family: var(--font-fancy);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.stand-section {
  padding: 14px 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stand-section+.stand-section {
  border-top: 1px solid var(--border-color);
}

.stand-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}



.unclaimed-prompt {
  display: none !important;
  /* Hidden until account system is built */
  background: var(--accent-terracotta-pale);
  border: 1px dashed var(--accent-terracotta);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 16px;
  flex-direction: column;
  gap: 8px;
}

.unclaimed-prompt p {
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Custom Toast notification layout setup */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-150px);
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, visibility 0.3s ease;
}

.toast-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-container:not(.active) .toast {
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  box-shadow: none;
  max-height: 0;
}

.toast-container.error .toast {
  background: #fa755a;
}

.toast {
  background: var(--charcoal);
  color: var(--off-white);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--brand-green-light);
}



/* Add Stand Crosshair pointer track indicator */
.crosshair-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40px);
  z-index: 2;
  pointer-events: none;
  display: none;
  flex-direction: column;
  align-items: center;
}



.crosshair-label {
  background: var(--charcoal);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  margin-top: 8px;
}

/* Interactive Schedule Row controls */
.schedule-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-remove-row {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
  --ui-button-width: 32px;
  --ui-button-height: 32px;
  --ui-button-background: none;
  --ui-button-background-hover: rgba(255, 77, 77, 0.1);
  --ui-button-border-width: 0px;
  --ui-button-color: #ff4d4d;
  --ui-button-color-hover: #ff3333;
  --ui-button-border-radius: 50%;
  --ui-button-padding: 6px;
}

/* Legal Links Footer inside Settings Modal */
.legal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.legal-link {
  font-size: 0.75rem;
  color: var(--muted-gray);
  text-decoration: underline;
  color: var(--charcoal);
  text-decoration: underline;
}

.legal-link:hover {
  color: var(--brand-green);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(253, 251, 247, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-green-pale);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(253, 251, 247, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Dancing Aurora Blobs */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  z-index: -1;
  opacity: 0.95;
}

.blob-1 {
  width: 160px;
  height: 160px;
  background: var(--brand-green);
  opacity: 0.8;
  animation: danceBlob1 8s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

.blob-2 {
  width: 180px;
  height: 180px;
  background: var(--accent-terracotta);
  animation: danceBlob2 9s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

.blob-3 {
  width: 220px;
  height: 220px;
  background: var(--brand-green-light);
  animation: danceBlob3 10s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

@keyframes danceBlob1 {
  0% {
    transform: translate(-30%, -30%) scale(1);
  }

  50% {
    transform: translate(40%, -10%) scale(1.2) rotate(45deg);
  }

  100% {
    transform: translate(10%, 40%) scale(0.9);
  }
}

@keyframes danceBlob2 {
  0% {
    transform: translate(40%, 20%) scale(0.9);
  }

  50% {
    transform: translate(-20%, 40%) scale(1.1) rotate(-45deg);
  }

  100% {
    transform: translate(-40%, -20%) scale(1.3);
  }
}

@keyframes danceBlob3 {
  0% {
    transform: translate(0%, -40%) scale(1.2);
  }

  50% {
    transform: translate(30%, 30%) scale(0.8);
  }

  100% {
    transform: translate(-30%, 0%) scale(1.1) rotate(90deg);
  }
}

.loading-logo {
  width: 320px;
  height: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 12px rgba(44, 94, 59, 0.2));
  position: relative;
  z-index: 2;
}

.loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.loading-dots div {
  width: 16px;
  height: 16px;
  background-color: var(--brand-green);
  border-radius: 50%;
  animation: bounce 0.5s infinite alternate cubic-bezier(0.5, 0.05, 1, 0.5);
}

.loading-dots div:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots div:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-12px);
  }
}

ui-list-item {
  padding: 5px 5px 5px 10px;
  box-sizing: border-box;
}

/* --- Passport Stamp Book --- */
.stamp-book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 8px 2px;
}

.stamp-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.passport-stamp {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px double currentColor;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.passport-stamp:hover {
  transform: scale(1.15) rotate(0deg) !important;
  opacity: 1;
}

.stamp-icon-svg {
  width: 20px;
  height: 20px;
  margin-bottom: 1px;
}

.stamp-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stamp-initials {
  font-family: var(--font-fancy), "Fraunces", serif;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stamp-date {
  font-family: var(--font-sans), "Quicksand", sans-serif;
  font-size: 0.45rem;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.75;
  text-transform: uppercase;
}

/* Rubber Ink Colors */
.stamp-ink-green {
  color: #2c5e3b;
}

.stamp-ink-terracotta {
  color: #b84a39;
}

.stamp-ink-indigo {
  color: #2b4560;
}

.stamp-ink-gold {
  color: #a37f1a;
}

/* Stamp Badges & Dots */
.stamp-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: #c48c3a;
  /* Gold ink color */
  border-radius: 50%;
  z-index: 5;
}

.stamp-badge-reviewed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(135deg) translateY(-34px) rotate(-135deg);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c48c3a;
  /* Gold ink border */
  color: #c48c3a;
  /* Gold star */
  background-color: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  z-index: 5;
}

/* --- Achievements / Trail Badges --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trail-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.trail-badge-card:hover {
  transform: scale(1.12);
}

.trail-badge-icon {
  font-size: 3.8rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-badge-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* In-progress (grayscale) badges */
.trail-badge-card.in-progress img,
.trail-badge-card.in-progress .trail-badge-icon {
  filter: grayscale(100%) opacity(55%) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* --- Farm Updates & Feed Styles --- */

/* Pulsing Glow for Map Markers with Recent Updates */
.market-marker.has-update {
  animation: marker-glow 2s infinite ease-in-out;
}

@keyframes marker-glow {
  0% {
    filter: drop-shadow(0 2px 4px rgba(44, 94, 59, 0.2)) drop-shadow(0 0 1px rgba(34, 197, 94, 0.45));
  }

  50% {
    filter: drop-shadow(0 3px 6px rgba(44, 94, 59, 0.2)) drop-shadow(0 0 6px rgba(34, 197, 94, 0.85));
  }

  100% {
    filter: drop-shadow(0 2px 4px rgba(44, 94, 59, 0.2)) drop-shadow(0 0 1px rgba(34, 197, 94, 0.45));
  }
}


/* Feed Cards */
.feed-card {
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(44, 94, 59, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(44, 94, 59, 0.1);
  border-color: var(--brand-green-light);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.feed-card-title {
  font-family: var(--font-fancy);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green);
  margin: 0;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feed-card-distance {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-green-light);
  background: var(--brand-green-pale);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-card-body {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.feed-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted-gray);
  min-width: 0;
}

/* Stand updates timeline section in details view */
.stand-updates-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
  width: 100%;
}

.update-bubble {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 8px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.update-bubble-message {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.update-bubble-time {
  font-size: 0.75rem;
  color: var(--muted-gray);
  align-self: flex-end;
}

/* Post update form inside details drawer */
.post-update-box {
  background: var(--off-white);
  border: 1px dashed var(--brand-green-light);
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  margin-top: 14px;
}

.post-update-box h4 {
  margin: 0 0 8px 0;
  color: var(--brand-green);
  font-family: var(--font-fancy);
  font-size: 1rem;
}

/* Floating minimalist top-right feed megaphone trigger */
.btn-top-feed {
  position: absolute;
  top: 20px;
  right: 76px;
  /* 20px settings right margin + 44px settings width + 12px gap */
  z-index: 10;
  border-radius: 50%;
  /* Allow shadow animation to outline circle perfectly */
  --ui-button-width: 44px;
  --ui-button-height: 44px;
  --ui-button-border-radius: 50%;
  --ui-button-background: var(--off-white);
  --ui-button-color: var(--brand-green);
  --ui-button-border-color: var(--border-color);
  --ui-button-border-width: 2px;
  --ui-button-padding: 0;
  --ui-button-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-top-feed:hover {
  --ui-button-background-hover: var(--brand-green-pale);
  transform: scale(1.05);
}

.btn-top-feed svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .btn-top-feed {
    right: 80px;
    /* 24px settings right margin + 44px settings width + 12px gap */
    top: 24px;
  }
}




.market-marker.closed-stand img,
.market-marker.closed-stand svg,
.market-marker.closed-stand .marker-pin-wrapper,
.market-marker.closed-stand .custom-pin-icon,
.custom-pin-icon.is-closed {
  filter: grayscale(100%) !important;
  opacity: 0.6 !important;
}

/* Site Footer & Minimalist Responsive Bar Styles */
.site-footer-container {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #e2dac9);
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  width: 100%;
  box-sizing: border-box;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-gray, #6b7280);
}

.footer-brand-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand-green-pale, #e5efe7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-fancy, Fraunces, serif);
  font-weight: 700;
  color: var(--brand-green, #2c5e3b);
}

.footer-brand-name span {
  color: var(--accent-terracotta, #c85a32);
}

.footer-copy a {
  color: var(--brand-green, #2c5e3b);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.site-footer-nav a {
  color: var(--charcoal, #2c332e);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer-nav a:hover {
  color: var(--brand-green, #2c5e3b);
  text-decoration: underline;
}

.nav-sep {
  color: var(--border-color, #d1d5db);
  font-size: 0.75rem;
}

/* System Info Full Page Styles (Privacy, Terms, Help, Directory) */


body.sys-page {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--off-white, #fdfbf7);
  color: var(--charcoal, #2c332e);
  margin: 0;
  padding: 0;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  line-height: 1.6;
}

.sys-header {
  border-bottom: 1px solid var(--border-color, #e2dac9);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sys-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.sys-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sys-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.sys-nav-link {
  color: var(--charcoal, #2c332e);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.sys-nav-link:hover,
.sys-nav-link.active {
  color: var(--brand-green, #2c5e3b);
  text-decoration: underline;
}

.sys-nav-sep {
  color: var(--border-color, #d1d5db);
  font-size: 0.75rem;
}

.sys-back-btn {
  color: var(--brand-green, #2c5e3b);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--brand-green-pale, #e5efe7);
  transition: all 0.2s ease;
}

.sys-back-btn .back-btn-icon {
  display: inline-block;
  height: 22.5px;
  vertical-align: middle;
}

.sys-back-btn .back-btn-icon svg {
  height: 20px;
}

@media (max-width: 425px) {
  .sys-back-btn .back-btn-text {
    display: none;
  }
}

.sys-back-btn:hover {
  background: #d4e6d9;
}

.sys-container {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  box-sizing: border-box;
}

.sys-container h1 {
  font-family: var(--font-fancy, Fraunces, serif);
  font-size: 2.2rem;
  color: var(--brand-green, #2c5e3b);
  margin-top: 0;
  margin-bottom: 4px;
}

.sys-subtitle {
  color: var(--muted-gray, #6b7280);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.sys-container h2 {
  font-size: 1.35rem;
  color: var(--brand-green, #2c5e3b);
  margin-top: 32px;
  margin-bottom: 12px;
}

.sys-container p,
.sys-container li {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
}

.sys-container a {
  color: var(--brand-green, #2c5e3b);
  font-weight: 600;
}

.sys-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color, #e2dac9);
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sys-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted-gray, #6b7280);
  box-sizing: border-box;
}

.sys-footer a {
  color: var(--charcoal, #2c332e);
  text-decoration: none;
  font-weight: 500;
}

.sys-footer a:hover {
  color: var(--brand-green, #2c5e3b);
  text-decoration: underline;
}

.sys-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Directory & System Section Grid */
.sys-section {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2dac9);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sys-section h2 {
  color: var(--brand-green, #2c5e3b);
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #e2dac9);
}

.sys-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.sys-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fdfbf7;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: var(--brand-green, #2c5e3b);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.sys-link-item:hover {
  border-color: var(--brand-green, #2c5e3b);
  background: #f0fdf4;
}

/* Pick Mode glow for selected map pins */
.market-marker.pick-selected {
  z-index: 9999;
}

.market-marker.pick-selected img {
  filter: drop-shadow(0 0 3px rgba(29, 78, 216, 1.0)) drop-shadow(0 0 3px rgba(29, 78, 216, 1.0)) drop-shadow(0 0 3px rgba(29, 78, 216, 1.0)) !important;
  transform: scale(1.1) !important;
  transition: all 0.2s ease-in-out;
}
ui-button * {
  pointer-events: none;
}


/* Almanac / Blog Content Styling */
.blog-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
}
.blog-content p {
  margin-bottom: 1.5rem;
}
.blog-content h3 {
  font-size: 1.3rem;
  color: var(--brand-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.blog-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 2px dashed var(--border-color);
}
.blog-content strong {
  color: var(--brand-green);
}


/* Directory & Almanac Card UI (Grid Layouts) */
.sys-card-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.sys-card-layout:not(:has(.sys-card-thumb)) {
  grid-template-columns: 1fr;
}
.sys-card-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--off-white, #eee);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
}
.sys-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sys-card-content {
  display: grid;
  min-width: 0;
}
.sys-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sys-card-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sys-card-meta {
  font-size: 0.8rem;
  color: var(--muted-gray);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Almanac Post Layout */
.almanac-recent-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}
.almanac-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.almanac-post-subtitle {
  margin-top: -10px;
  margin-bottom: 20px;
  font-weight: normal;
  color: var(--muted-gray);
  font-size: 1.2rem;
}
.almanac-post-meta {
  margin-bottom: 32px;
}

/* ─── Shop & Store UI ────────────────────────────────────────────────────── */
.shop-product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  background: white;
  height: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
}

.shop-product-image-container {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--border-color);
  margin-bottom: 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.shop-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.shop-product-title {
  font-size: 1.0rem;
  line-height: 1.25;
  margin: 0;
  color: var(--brand-green);
}

.shop-product-desc {
  color: var(--charcoal);
  line-height: 1.4;
  margin: 0;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-top: 4px;
  margin-bottom: 4px;
}

.btn-add-to-cart {
  --ui-button-padding: 8px 12px;
  --ui-button-font-size: 0.9rem;
  width: 100%;
  display: block;
  white-space: nowrap;
}

.shop-product-card.product-owned {
  background: var(--off-white, #fcfbf9);
  border-color: rgba(44, 94, 59, 0.25);
}

.shop-product-card.product-owned .shop-product-image-container {
  border-style: solid;
  border-color: rgba(44, 94, 59, 0.2);
}

.btn-product-owned {
  width: 100%;
  cursor: default !important;
  color: var(--brand-green, #2c5e3b) !important;
  font-weight: 600;
  border-color: rgba(44, 94, 59, 0.3) !important;
  background: rgba(44, 94, 59, 0.08) !important;
}

.shop-drop-chip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--brand-green, #2c5e3b) 0%, #1f422a 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  line-height: 1.2;
}

.shop-drop-chip-low-stock {
  background: linear-gradient(135deg, #c9592b 0%, #a83c16 100%);
}

.shop-product-image-container.has-drop-banner .shop-product-image {
  padding-top: 32px;
  padding-bottom: 12px;
}

.shop-product-card.product-sold-out {
  opacity: 0.75;
}

.btn-product-soldout {
  width: 100%;
  cursor: default !important;
  color: var(--muted-gray, #707a72) !important;
  font-weight: 600;
  border-color: var(--border-light, #e2dac9) !important;
  background: var(--bg-tertiary, #f0ede6) !important;
}

.shop-sticky-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: sticky;
  top: 65px;
  z-index: 100;
  margin-bottom: 24px;
  pointer-events: none;
}

.shop-checkout-heading {
  margin: 0;
  pointer-events: auto;
  display: none;
  background: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  grid-column: 1;
}

.shop-cart-btn {
  position: relative;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-green);
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  transform-origin: top right;
}

.shop-cart-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-terracotta);
  color: white;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.shop-footer-note {
  text-align: center;
  padding: 32px 24px 0 24px;
  border-top: none;
  color: var(--muted-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.shop-footer-rhif {
  margin-top: 16px;
  font-style: italic;
}

.shop-rhif-link {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
  font-style: normal;
}

/* Cart Render */
.shop-cart-empty { color: var(--muted-gray); text-align: center; padding: 32px 0; }
.shop-cart-item-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.shop-cart-item-name { font-weight: 600; margin-bottom: 4px; }
.shop-cart-item-price { font-size: 0.88rem; color: var(--muted-gray); }
.shop-cart-qty-row { display: grid; grid-template-columns: auto auto auto auto; align-items: center; gap: 8px; }
.shop-cart-qty-btn { --ui-button-width: 28px; --ui-button-height: 28px; --ui-button-padding: 0; font-size: 1.2rem; line-height: 1; }
.shop-cart-qty-val { min-width: 20px; text-align: center; font-weight: 600; }
.shop-cart-rm-btn { --ui-button-width: 32px; --ui-button-height: 32px; --ui-button-padding: 0; --ui-button-border-color: transparent; --ui-button-background: transparent; margin-left: 8px; }
.shop-summary-row { display: flex; justify-content: space-between; font-size: 0.95rem; }
.shop-no-img { color: var(--muted-gray); font-size: 0.9rem; }
.shop-empty-grid { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--muted-gray); }
.shop-error-grid { grid-column: 1 / -1; text-align: center; padding: 48px; color: #dc2626; }

/* Shop Cart Drawer */
.shop-cart-header-row {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-cart-title {
  margin: 0 !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.shop-cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted-gray);
}
.shop-cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.shop-cart-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}
.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.w-full { width: 100%; }

/* Shop Checkout */
.shop-checkout-wrapper {
  display: none;
  max-width: 580px;
  margin: 0 auto 24px;
}
.shop-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding: 0;
}
.shop-checkout-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  background: white;
}
.shop-checkout-title {
  margin-bottom: 4px;
  font-size: 1.25rem;
}
.shop-checkout-subtitle {
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.shop-order-summary-box {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.shop-order-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-order-total-row {
  
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
}
.shop-section-wrap {
  margin-bottom: 24px;
}
.shop-section-header {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.shop-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.shop-form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 12px;
}
.shop-label {
  display: block;
  font-size: 0.82rem;
  color: var(--charcoal);
  margin-bottom: 4px;
  font-weight: 500;
}
.shop-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.shop-input.uppercase { text-transform: uppercase; }
.shop-stripe-container {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  min-height: 44px;
}
.shop-error-text {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}
.shop-main-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 12px;
  display: none;
}
.shop-secure-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-gray);
  margin-top: 12px;
}

/* Shop Success */
.shop-success-wrapper {
  display: none;
  max-width: 480px;
  margin: 48px auto;
  text-align: center;
}
.shop-success-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
}
.shop-success-icon-box {
  width: 64px;
  height: 64px;
  background: var(--brand-green-pale, #e5efe7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.shop-success-title { margin-bottom: 8px; font-size: 1.5rem; }
.shop-success-text {
  color: var(--charcoal);
  line-height: 1.6;
}
.shop-success-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: none;
}

/* ─── Shop Filters & Search Component ───────────────────────────────────── */
.shop-filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .shop-filter-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.shop-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.shop-filter-chips::-webkit-scrollbar {
  display: none;
}

.shop-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.shop-filter-chip:hover {
  border-color: var(--brand-green-light);
}

.shop-filter-chip.active {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}

.shop-search-box {
  min-width: 200px;
}

.shop-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.shop-search-input:focus {
  border-color: var(--brand-green);
}

/* ─── Stand Customization Drawer Components ──────────────────────────────── */
.stand-custom-section {
  margin-top: 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.stand-custom-title {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.stand-custom-subtitle {
  font-size: 0.82rem;
  color: var(--muted-gray);
  margin-top: 0;
  margin-bottom: 12px;
}

.stand-custom-subsection {
  margin-bottom: 14px;
}

.stand-custom-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* ─── Stand Customization Live Preview Card ──────────────────────────────── */
.stand-preview-container {
  margin-bottom: 16px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--border-color, #e2dac9);
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stand-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--off-white, #fdfbf7);
  border-bottom: 1px solid var(--border-color, #e2dac9);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-gray, #666);
}

.stand-preview-theme-title {
  color: var(--brand-green, #2c5e3b);
  font-weight: 700;
}

.stand-preview-stage {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  background: var(--preview-bg, #fcfbf9);
  background-image: var(--preview-pattern, none);
  color: var(--preview-text, #2d3748);
}

.stand-preview-pin-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  border: 1px solid var(--preview-border, #e2dac9);
}

.stand-preview-pin-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.stand-preview-pin-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--charcoal, #242925);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.stand-preview-drawer-sample {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--preview-card-bg, #ffffff);
  border: 1px solid var(--preview-border, #e2dac9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stand-preview-drawer-sample-title {
  font-family: var(--font-fancy, 'Fraunces', serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--preview-title, #1b4332);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-preview-drawer-sample-desc {
  font-size: 0.72rem;
  color: var(--preview-text, #4a5568);
  opacity: 0.85;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-preview-drawer-sample-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--preview-accent, #2d6a4f);
  color: white;
}

.stand-preview-pin-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.stand-preview-pin-wrap .marker-verified-badge {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stand-custom-selectors-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Stand & Business Drawer Theming
   Cascades theme palette into all drawer children & interactive views
   ========================================================================== */

ui-drawer[data-theme] {
  color-scheme: light;
  --brand-green: var(--drawer-title);
  --brand-green-light: var(--drawer-accent);
  --brand-green-pale: color-mix(in srgb, var(--drawer-title) 14%, var(--drawer-bg, #ffffff));
  --accent-terracotta: var(--drawer-accent);
  --accent-terracotta-pale: color-mix(in srgb, var(--drawer-accent) 14%, var(--drawer-bg, #ffffff));
  --charcoal: var(--drawer-text);
  --off-white: var(--drawer-bg);
  --paper: var(--drawer-card-bg);
  --paper-dark: var(--drawer-border);
  --border-color: var(--drawer-border);
  --muted-gray: var(--drawer-muted, color-mix(in srgb, var(--drawer-text) 60%, transparent));
}

ui-drawer[data-theme="midnight_market"] {
  color-scheme: dark;
}

ui-drawer[data-theme] #detailsContent,
ui-drawer[data-theme] #businessDetailsContent {
  background: var(--drawer-bg);
  color: var(--drawer-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

ui-drawer[data-theme] .stand-section-title,
ui-drawer[data-theme] .format-season-date-span-20,
ui-drawer[data-theme] .format-season-date-span-24 {
  color: var(--drawer-title) !important;
}

ui-drawer[data-theme] .stand-section + .stand-section,
ui-drawer[data-theme] .format-season-date-div-19,
ui-drawer[data-theme] .schedule-row {
  border-color: var(--drawer-border) !important;
}

ui-drawer[data-theme] .format-season-date-span-21,
ui-drawer[data-theme] .format-season-date-span-23,
ui-drawer[data-theme] .format-season-date-span-25,
ui-drawer[data-theme] .business-contact-link,
ui-drawer[data-theme] .business-profile-ui-p-58 {
  color: var(--drawer-text) !important;
}

ui-drawer[data-theme] .view-stand-details-span-18 {
  background: color-mix(in srgb, var(--drawer-title) 14%, var(--drawer-bg, #ffffff)) !important;
  color: var(--drawer-title) !important;
}

ui-drawer[data-theme] .action-edit-stand-26 {
  --ui-button-border-color: var(--drawer-border);
  color: var(--drawer-title) !important;
}

ui-drawer[data-theme] .business-contact-row {
  border-bottom-color: var(--drawer-border) !important;
}

ui-drawer[data-theme] .business-contact-row ui-icon {
  color: var(--drawer-accent) !important;
}

ui-drawer[data-theme] .format-season-date-svg-38 {
  color: var(--drawer-accent) !important;
}


/* Customization section styles under drawer themes */
ui-drawer[data-theme] .stand-custom-section {
  background: var(--drawer-card-bg, #ffffff);
  border-color: var(--drawer-border, #e2dac9);
}

ui-drawer[data-theme] .stand-custom-title {
  color: var(--drawer-title);
}

ui-drawer[data-theme] .stand-custom-subtitle {
  color: var(--drawer-muted, var(--drawer-text));
}

ui-drawer[data-theme] .stand-custom-field-label {
  color: var(--drawer-text);
}

.stand-custom-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color, #e2dac9);
  background-color: var(--drawer-card-bg, #ffffff);
  color: var(--drawer-text, var(--charcoal, #242925));
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.stand-custom-select:focus {
  border-color: var(--drawer-accent, var(--brand-green, #2c5e3b));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--drawer-accent, #2c5e3b) 20%, transparent);
}

/* Ensure dropdown options never wash out across OS/browser themes */
.stand-custom-select option,
select.form-control option {
  background-color: var(--drawer-card-bg, #ffffff);
  color: var(--drawer-text, #242925);
}

/* All form controls, inputs, textareas under themed drawers */
ui-drawer[data-theme] .form-control,
ui-drawer[data-theme] input,
ui-drawer[data-theme] textarea,
ui-drawer[data-theme] select,
ui-drawer[data-theme] input.form-control,
ui-drawer[data-theme] textarea.form-control,
ui-drawer[data-theme] select.form-control,
ui-drawer[data-theme] .stand-custom-select {
  background-color: var(--drawer-card-bg, #ffffff) !important;
  color: var(--drawer-text, #242925) !important;
  border-color: var(--drawer-border, #e2dac9) !important;
}

ui-drawer[data-theme] .form-control::placeholder,
ui-drawer[data-theme] input::placeholder,
ui-drawer[data-theme] textarea::placeholder,
ui-drawer[data-theme] input.form-control::placeholder,
ui-drawer[data-theme] textarea.form-control::placeholder {
  color: var(--drawer-muted, color-mix(in srgb, var(--drawer-text) 50%, transparent)) !important;
}

ui-drawer[data-theme] .form-control:focus,
ui-drawer[data-theme] input:focus,
ui-drawer[data-theme] textarea:focus,
ui-drawer[data-theme] select:focus,
ui-drawer[data-theme] input.form-control:focus,
ui-drawer[data-theme] textarea.form-control:focus,
ui-drawer[data-theme] select.form-control:focus,
ui-drawer[data-theme] .stand-custom-select:focus {
  border-color: var(--drawer-accent, var(--drawer-title)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--drawer-accent, var(--drawer-title)) 25%, transparent) !important;
}

/* Labels and helper texts adapt to drawer themes */
ui-drawer[data-theme] .form-group label,
ui-drawer[data-theme] label,
ui-drawer[data-theme] [style*="color: var(--charcoal)"] {
  color: var(--drawer-title) !important;
}

ui-drawer[data-theme] .checkbox-label {
  color: var(--drawer-text) !important;
}

ui-drawer[data-theme] .form-section-heading {
  color: var(--drawer-title) !important;
}

ui-drawer[data-theme] .form-section-helper,
ui-drawer[data-theme] .form-group p,
ui-drawer[data-theme] .form-group span,
ui-drawer[data-theme] p,
ui-drawer[data-theme] [style*="color: var(--muted-gray)"]:not([style*="background"]):not(.closed-banner) {
  color: var(--drawer-muted, var(--drawer-text)) !important;
}

/* Category & payment checkboxes under themed drawers */
ui-drawer[data-theme] .category-label {
  background: var(--drawer-card-bg, #ffffff) !important;
  border-color: var(--drawer-border, #e2dac9) !important;
  color: var(--drawer-text, #242925) !important;
}

ui-drawer[data-theme] .category-checkbox:checked + .category-label {
  background: color-mix(in srgb, var(--drawer-title) 18%, var(--drawer-bg, #ffffff)) !important;
  border-color: var(--drawer-title) !important;
  color: var(--drawer-title) !important;
}

/* Preset & custom tag chips under themed drawers */
ui-drawer[data-theme] .tag-chip,
ui-drawer[data-theme] .ui-chip-container.variant-preset,
ui-drawer[data-theme] .preset-tag {
  background: var(--drawer-card-bg, #ffffff) !important;
  color: var(--drawer-text, #242925) !important;
  border: 1px dashed var(--drawer-border, #e2dac9) !important;
}

ui-drawer[data-theme] .ui-chip-container.variant-preset.active,
ui-drawer[data-theme] .preset-tag.active {
  background: color-mix(in srgb, var(--drawer-title) 20%, var(--drawer-bg, #ffffff)) !important;
  color: var(--drawer-title) !important;
  border: 1.5px solid var(--drawer-title) !important;
  font-weight: 700 !important;
}

ui-drawer[data-theme] select option,
ui-drawer[data-theme] select.form-control option,
ui-drawer[data-theme] .stand-custom-select option {
  background-color: var(--drawer-card-bg, #ffffff) !important;
  color: var(--drawer-text, #242925) !important;
}

/* Dedicated dark mode overrides for midnight_market */
ui-drawer[data-theme="midnight_market"],
ui-drawer[data-theme="midnight_market"] form {
  color-scheme: dark !important;
  color: #f1f5f9 !important;
}

ui-drawer[data-theme="midnight_market"] .form-control,
ui-drawer[data-theme="midnight_market"] input,
ui-drawer[data-theme="midnight_market"] textarea,
ui-drawer[data-theme="midnight_market"] select,
ui-drawer[data-theme="midnight_market"] input.form-control,
ui-drawer[data-theme="midnight_market"] textarea.form-control,
ui-drawer[data-theme="midnight_market"] select.form-control,
ui-drawer[data-theme="midnight_market"] .stand-custom-select {
  color-scheme: dark !important;
  background-color: #212a36 !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

ui-drawer[data-theme="midnight_market"] input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  opacity: 0.9 !important;
  cursor: pointer;
}

ui-drawer[data-theme="midnight_market"] input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
  opacity: 0.9 !important;
  cursor: pointer;
}

@-moz-document url-prefix() {
  ui-drawer[data-theme="midnight_market"] input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  }
  ui-drawer[data-theme="midnight_market"] input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
  }
}

/* Theme-specific picker indicators */
ui-drawer[data-theme="cider_mill"] input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23873418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
}
ui-drawer[data-theme="cider_mill"] input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23873418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
}

ui-drawer[data-theme="harvest_gold"] input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f4b06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
}
ui-drawer[data-theme="harvest_gold"] input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f4b06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
}

ui-drawer[data-theme="midnight_market"] input::file-selector-button {
  background: #2a3441 !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
  border-radius: var(--radius-sm, 6px);
  padding: 4px 10px;
  margin-right: 8px;
  cursor: pointer;
}

ui-drawer[data-theme="midnight_market"] .form-control::placeholder,
ui-drawer[data-theme="midnight_market"] input::placeholder,
ui-drawer[data-theme="midnight_market"] textarea::placeholder,
ui-drawer[data-theme="midnight_market"] input.form-control::placeholder,
ui-drawer[data-theme="midnight_market"] textarea.form-control::placeholder {
  color: #94a3b8 !important;
}

ui-drawer[data-theme="midnight_market"] select option,
ui-drawer[data-theme="midnight_market"] select.form-control option,
ui-drawer[data-theme="midnight_market"] .stand-custom-select option {
  color-scheme: dark;
  background-color: #212a36 !important;
  color: #f1f5f9 !important;
}

ui-drawer[data-theme="midnight_market"] .category-label {
  background: #212a36 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

ui-drawer[data-theme="midnight_market"] .category-checkbox:checked + .category-label {
  background: rgba(251, 191, 36, 0.18) !important;
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

ui-drawer[data-theme="midnight_market"] .checkbox-label {
  color: #f1f5f9 !important;
}

ui-drawer[data-theme="midnight_market"] .form-group label,
ui-drawer[data-theme="midnight_market"] label,
ui-drawer[data-theme="midnight_market"] [style*="color: var(--charcoal)"] {
  color: #fbbf24 !important;
}

ui-drawer[data-theme="midnight_market"] .form-group p,
ui-drawer[data-theme="midnight_market"] .form-group span,
ui-drawer[data-theme="midnight_market"] p,
ui-drawer[data-theme="midnight_market"] [style*="color: var(--muted-gray)"]:not([style*="background"]):not(.closed-banner) {
  color: #94a3b8 !important;
}

ui-drawer[data-theme="midnight_market"] .ui-chip-container.variant-preset,
ui-drawer[data-theme="midnight_market"] .preset-tag {
  background: #212a36 !important;
  color: #f1f5f9 !important;
  border: 1px dashed #fbbf24 !important;
}

ui-drawer[data-theme="midnight_market"] .ui-chip-container.variant-preset:hover,
ui-drawer[data-theme="midnight_market"] .preset-tag:hover {
  background: #2a3441 !important;
  color: #ffffff !important;
}

ui-drawer[data-theme="midnight_market"] .ui-chip-container.variant-preset.active,
ui-drawer[data-theme="midnight_market"] .preset-tag.active {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
  border-style: solid !important;
  border-color: #fbbf24 !important;
}

ui-drawer[data-theme="midnight_market"] ui-button[variant="secondary"],
ui-drawer[data-theme="midnight_market"] .btn-remove-row {
  --ui-button-background: #212a36;
  --ui-button-color: #f1f5f9;
  --ui-button-border-color: #334155;
  --ui-button-background-hover: #2a3441;
  --ui-button-color-hover: #ffffff;
}

.stand-custom-shop-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color, #e2dac9);
  font-size: 0.8rem;
}

.stand-custom-shop-text {
  color: var(--muted-gray, #666);
}

ui-drawer[data-theme] .stand-custom-shop-text {
  color: var(--drawer-muted, var(--drawer-text));
}

.stand-custom-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--brand-green, #2c5e3b);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

ui-drawer[data-theme] .stand-custom-shop-link {
  color: var(--drawer-accent);
}

.stand-custom-shop-link:hover {
  background: rgba(44, 94, 59, 0.08);
  text-decoration: underline;
}

.stand-custom-pin-upload-group {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm, 8px);
  border: 1px dashed var(--border-color, #e2dac9);
}

ui-drawer[data-theme] .stand-custom-pin-upload-group {
  background: var(--drawer-card-bg, #ffffff);
  border-color: var(--drawer-border, #e2dac9);
}

ui-drawer[data-theme="midnight_market"] .stand-custom-pin-upload-group {
  background: #212a36 !important;
  border-color: #334155 !important;
}

.stand-custom-pin-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stand-custom-pin-preview-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2dac9);
  padding: 4px;
}

ui-drawer[data-theme] .stand-custom-pin-preview-wrapper {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--drawer-border, #e2dac9);
}

ui-drawer[data-theme="midnight_market"] .stand-custom-pin-preview-wrapper {
  background: #18202b !important;
  border-color: #334155 !important;
}

.stand-custom-pin-preview-wrapper svg {
  width: 36px;
  height: 36px;
  display: block;
}

.stand-custom-pin-upload-controls {
  flex: 1;
  min-width: 0;
}

.stand-custom-pin-hint {
  font-size: 0.75rem;
  color: var(--muted-gray, #666);
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.3;
}

ui-drawer[data-theme] .stand-custom-pin-hint {
  color: var(--drawer-muted, var(--drawer-text));
}

ui-drawer[data-theme="midnight_market"] .stand-custom-pin-hint {
  color: #94a3b8 !important;
}

.stand-custom-color-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e2dac9);
}

ui-drawer[data-theme] .stand-custom-color-section {
  border-color: var(--drawer-border, #e2dac9);
}

ui-drawer[data-theme="midnight_market"] .stand-custom-color-section {
  border-color: #334155 !important;
}

.stand-custom-color-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.stand-color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.stand-color-picker::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.stand-color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.stand-color-text-input {
  width: 86px !important;
  font-family: monospace;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  padding: 6px 8px !important;
  height: 36px !important;
  flex-shrink: 0;
}

.stand-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stand-color-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.stand-color-swatch-btn:hover {
  transform: scale(1.15);
}

.stand-color-swatch-btn.active {
  border-color: var(--brand-green, #2c5e3b);
  transform: scale(1.15);
}

/* ─── Theme & Pin Grid Cards ─────────────────────────────────────────────── */
.stand-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.stand-theme-card {
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: var(--card-bg, #fff);
  color: var(--card-text, var(--charcoal));
  border: 2px solid var(--card-border, var(--border-color));
}

.stand-theme-card.selected {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px var(--brand-green);
}

.stand-theme-card.locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.stand-theme-card-name {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--card-title, var(--charcoal));
}

.stand-theme-card-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.stand-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.stand-theme-dot-accent {
  background: var(--card-accent, var(--brand-green));
}

.stand-theme-dot-card {
  background: var(--card-inner-bg, #fff);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.stand-theme-badge {
  margin-left: auto;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.stand-theme-badge-locked {
  color: var(--muted-gray);
}

.stand-theme-badge-active {
  color: var(--brand-green);
  font-weight: 700;
}

.stand-pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.stand-pin-card {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
}

.stand-pin-card.selected {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px var(--brand-green);
}

.stand-pin-card.locked {
  cursor: not-allowed;
  opacity: 0.65;
}

.stand-pin-card-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.stand-pin-card-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-pin-locked-badge {
  font-size: 0.68rem;
  color: var(--muted-gray);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stand-pin-active-badge {
  font-size: 0.68rem;
  color: var(--brand-green);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* RHIF Grid Layout Utilities */
.rhif-grid-col-8 {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.rhif-grid-col-16 {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.rhif-grid-row-12 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.rhif-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   Semantic Component Styles (Grid-First)
   ========================================================================== */

/* Shared Drawer Header */
.drawer-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  padding-right: 12px;
}

.drawer-title {
  font-family: var(--font-fancy);
  color: var(--brand-green);
  margin: 0;
  font-size: 1.4rem;
}

/* Standard small select dropdown */
.select-sm {
  font-family: var(--font-main);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
}

/* Filter Panel Semantic Styles */
.filter-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 8px;
}

.filter-clear-link {
  font-size: 0.75rem;
  color: var(--muted-gray);
  text-decoration: underline;
  font-weight: 700;
}

.filter-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-gray);
  margin-bottom: 6px;
}

.filter-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
}

/* Shared Forms Semantic Styles */
.checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 20px;
}

.form-actions-single {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 20px;
  padding-bottom: 20px;
}

/* Business Profile Image Dropzone */
.form-logo-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.form-logo-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
}
.form-logo-dropzone {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 16px;
  border: 2px dashed var(--border-color);
  background: var(--off-white);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-logo-placeholder {
  display: grid;
  gap: 6px;
  color: var(--muted-gray);
  padding: 12px;
  text-align: center;
  place-items: center;
}
.form-logo-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Section Headings inside forms */
.form-section-heading {
  font-family: var(--font-fancy);
  color: var(--brand-green);
  margin: 20px 0 4px 0;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}
.form-section-helper {
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-bottom: 12px;
}

/* Trail Mode Banner */
.trail-mode-banner {
  display: none;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--brand-green);
  color: white;
  padding: 6px 12px 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: min(480px, calc(100vw - 32px));
  box-sizing: border-box;
}
.trail-mode-banner.active {
  display: grid;
}
.trail-switch-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}
#currentTrailName {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trail-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trail-exit-btn {
  --ui-button-background: transparent;
  --ui-button-border-color: transparent;
  --ui-button-color: white;
  --ui-button-padding: 4px;
  border-radius: 50%;
  min-width: 0;
  width: 24px;
  height: 24px;
}

/* Hide trail mode banner when picking stands to prevent overlapping */
body.pick-mode-active #trailModeBanner,
body.trip-pick-mode-active #trailModeBanner {
  display: none !important;
}

/* On mobile screens, hide floating banners when a drawer is open so stand details & map are unobstructed */
@media (max-width: 767px) {
  body.drawer-open .trail-mode-banner,
  body.drawer-open .trail-pick-banner {
    display: none !important;
  }
}

.trip-pick-done-btn {
  background: #ffffff;
  color: #166534;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s, opacity 0.15s, background-color 0.15s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.trip-pick-done-btn:hover {
  background: #f0fdf4;
  transform: scale(1.02);
}
.trip-pick-done-btn:active {
  transform: scale(0.98);
}

ui-list-item.trip-stop-item {
  width: 100%;
  box-sizing: border-box;
}

.trip-drag-handle {
  cursor: grab;
  touch-action: none;
}

.trip-drag-handle:active {
  cursor: grabbing;
}

/* Map Controls Floating Container */
.map-controls-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.map-controls-container > * {
  pointer-events: auto;
}

/* Base generic column grids (replaces flex-direction: column) */
.grid-col-gap-12 {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.grid-col-gap-16 {
  display: grid;
  gap: 16px;
  padding: 16px;
}


/* Sticky Drawer Header */
.sticky-drawer-header {
  padding: 20px 16px 16px 16px;
  position: sticky;
  top: -20px;
  margin: -20px -20px 0 -20px;
  background: var(--off-white);
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.trail-search-group {
  display: grid;
  gap: 8px;
}

.trail-search-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.btn-near-me {
  --ui-button-border-color: var(--brand-green);
  --ui-button-color: var(--brand-green);
  --ui-button-padding: 12px 0;
  white-space: nowrap;
}

.btn-clear-trail-filters {
  font-size: 0.75rem;
  color: var(--muted-gray);
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
}

.trail-switcher-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.home-location-card {
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.home-location-status {
  font-size: 0.88rem;
  color: var(--text-color);
  font-weight: 500;
}

.btn-action-small {
  --ui-button-font-size: 0.82rem;
  --ui-button-padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-action-small.danger {
  color: var(--accent-terracotta);
}

.action-buttons-row {
  display: flex;
  gap: 8px;
}
.action-buttons-row > * {
  flex: 1;
}

.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Refactored inline styles from stands.ts */
.payment-badges-span-1 {
  color: var(--muted-gray);
  font-size: 0.9rem;
}

.payment-badges-div-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* Unified UI Payment Chip Component */
ui-payment-chip,
.ui-payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  gap: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  vertical-align: middle;
  border-width: 1px;
  border-style: solid;
  user-select: none;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

ui-payment-chip[variant="link"],
ui-payment-chip[variant="action"],
ui-payment-chip[variant="selectable"] {
  cursor: pointer;
}

ui-payment-chip[variant="link"]:hover,
ui-payment-chip[variant="action"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

ui-payment-chip[variant="selectable"]:hover {
  border-color: var(--brand-green, #16a34a);
}

ui-payment-chip .payment-chip-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}

ui-payment-chip .payment-chip-label {
  display: inline-block;
  line-height: 1;
}

ui-payment-chip .payment-chip-action-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.75;
}

.payment-badges-a-3 {
  text-decoration: none;
}

.payment-badges-chip-4 {
  background-color: #E6F0FA;
  border-color: #A9D1F7;
  color: #008CFF;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.payment-badges-span-5 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.payment-badges-chip-6 {
  background-color: #EBF7EE;
  border-color: #A3DFB3;
  color: #00B050;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.payment-badges-chip-7 {
  background-color: #EBEDF5;
  border-color: #A3B2D6;
  color: #001C6A;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.payment-badges-span-8 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-badges-chip-9 {
  border-radius: var(--radius-sm);
}

.payment-badges-chip-10 {
  background-color: #F3E8FF;
  border-color: #D8B4FE;
  color: #7E22CE;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.view-stand-details-div-11 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#drawerFooterAction:empty {
  display: none;
}

.drawer-planning-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--off-white, #fdfbf7);
  border-top: 1px solid var(--border-color, #e2dac9);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.drawer-planning-footer-info {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-planning-footer-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--charcoal, #2d312e);
  line-height: 1.2;
}

.drawer-planning-footer-desc {
  font-size: 0.75rem;
  color: var(--muted-gray, #7d8b82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.drawer-planning-footer-btn {
  --ui-button-padding: 8px 16px;
  --ui-button-font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .drawer-planning-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .drawer-planning-footer-btn {
    width: 100%;
  }
}

.view-stand-details-chip-13 {
  --chip-bg: var(--brand-green-pale, #e5efe7);
  --chip-text: var(--brand-green);
  border-color: var(--brand-green);
  padding: 4px 8px;
  font-size: 0.75rem;
}

.view-stand-details-span-14 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-stand-details-chip-15 {
  --chip-bg: var(--paper-dark);
  --chip-text: var(--muted-gray);
  border-color: var(--border-color);
  padding: 4px 8px;
  font-size: 0.75rem;
}

.action-view-business-16 {
  --ui-button-padding: 4px 8px;
  --ui-button-font-size: 0.8rem;
  width: fit-content;
  margin: 0;
  height: auto;
}

.view-stand-details-span-17 {
  font-size:0.8rem;
  font-weight:700;
  color:var(--muted-gray);
  text-transform:uppercase;
}

.view-stand-details-span-18 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.format-season-date-div-19 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px dashed var(--border-color);
  margin-top: 4px;
}

.format-season-date-span-20 {
  font-weight: 700;
  color: var(--brand-green);
  font-size: 0.9rem;
}

.format-season-date-span-21 {
  font-size: 0.9rem;
  color: var(--charcoal);
  text-align: right;
}

.format-season-date-div-22 {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: none;
}

.format-season-date-span-23 {
  font-size: 0.9rem;
  color: var(--charcoal);
}

.format-season-date-span-24 {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.9rem;
  opacity: 0.7;
}

.format-season-date-span-25 {
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.7;
}

.action-edit-stand-26 {
  margin-top: 12px;
  --ui-button-border-style: dashed;
  --ui-button-border-color: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.format-season-date-div-27 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.action-claim-stand-28 {
  font-size: 0.8rem;
  color: var(--brand-green);
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-report-stand-29 {
  font-size: 0.8rem;
  color: var(--muted-gray);
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.format-season-date-div-30 {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.format-season-date-div-31 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.format-season-date-p-32 {
  font-size: 0.8rem;
  color: var(--muted-gray);
  font-style: italic;
  text-align: center;
  margin: 0;
}

.stand-section-33 {
  margin-top: 24px;
}

.format-season-date-div-34 {
  margin-top: 6px;
}

.format-season-date-img-35 {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.format-season-date-div-36 {
  margin-top: 12px;
}

.format-season-date-div-37 {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.format-season-date-svg-38 {
  color: #f59e0b;
  margin-right: 4px;
}

.format-season-date-p-39 {
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.action-add-review-40 {
  margin-bottom: 16px;
  width: 100%;
}

.format-season-date-div-41 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-load-more-reviews-42 {
  margin-top: 12px;
  width: 100%;
  --ui-button-border-color: var(--border-color);
  background: transparent;
  padding: 8px;
}

.format-season-date-div-43 {
  display: flex;
  flex-direction: column;
}

.stand-details-title-44 {
  margin-bottom: 0;
}

.format-season-date-div-45 {
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 2px;
}

.format-season-date-span-46 {
  color: #D97706;
  font-weight: 600;
}

.format-season-date-a-47 {
  color: var(--brand-green, #2D6A4F);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.format-season-date-div-48 {
  font-size: 0.85rem;
  color: var(--brand-green);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-container-49 {
  margin-top: 4px;
}

.format-season-date-div-50 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.format-season-date-p-51 {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
}

.stand-section-52 {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.format-season-date-div-53 {
  display:flex;
  gap:8px;
  width: 100%;
}

.action-share-stand-54 {
  flex:1;
  --ui-button-border-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.action-checkin-stand-55 {
  flex:1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.business-profile-ui-div-56 {
  margin: -20px -20px 16px -20px;
  overflow: hidden;
}

.business-profile-ui-img-57 {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.business-profile-ui-p-58 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

.business-profile-ui-a-59 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FDF2F8;
  border: 1px solid #FBCFE8;
  transition: transform 0.2s;
}

.business-profile-ui-a-60 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  transition: transform 0.2s;
}

.business-profile-ui-a-61 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  transition: transform 0.2s;
}

.business-profile-ui-a-62 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  transition: transform 0.2s;
}

.business-profile-ui-a-63 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s;
}

.business-profile-ui-div-64 {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.business-profile-ui-div-65 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.business-profile-ui-div-66 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.business-profile-ui-p-67 {
  margin: 4px 0;
  color: var(--muted-gray);
  font-style: italic;
}

.business-profile-ui-h4-68 {
  margin-bottom: 10px;
  color: var(--brand-green);
  font-family: var(--font-fancy);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
}

.business-other-stands-69 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

.business-profile-ui-p-70 {
  color:var(--muted-gray);
  font-size:0.85rem;
}

.business-attended-markets-71 {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.business-profile-ui-h4-72 {
  margin: 0 0 10px 0;
  color: var(--brand-green);
  font-family: var(--font-fancy);
}

.business-markets-list-73 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stand-list-item-heading-div-74 {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.stand-list-item-heading-div-75 {
  width:32px;
  height:32px;
  border-radius:6px;
  overflow:hidden;
  flex-shrink:0;
  background:#f3f4f6;
}

.stand-list-item-heading-img-76 {
  width:100%;
  height:100%;
  object-fit:cover;
}

.stand-list-item-heading-span-77 {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.business-stand-item-78 {
  padding: 8px 10px;
  border: 1px dashed var(--brand-green);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.business-stands-list-span-79 {
  font-size: 0.75rem;
  color: var(--muted-gray);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
}

.business-stands-list-icon-80 {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.business-stands-list-p-81 {
  color:var(--muted-gray);
  font-size:0.85rem;
  font-style:italic;
}

.business-attended-markets-div-82 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.business-attended-markets-div-83 {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #EBF2ED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.business-attended-markets-img-84 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-attended-markets-icon-85 {
  width: 22px;
  height: 22px;
  color: var(--brand-green);
}

.business-attended-markets-div-86 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  text-align: left;
}

.business-attended-markets-span-87 {
  font-weight: 700;
  color: var(--charcoal, #2c332e);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-attended-markets-span-88 {
  font-size: 0.75rem;
  color: var(--muted-gray, #6b7280);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-business-profile-div-89 {
  padding: 20px;
  text-align: center;
  color: var(--muted-gray);
  font-size: 0.9rem;
}

.single-review-p-90 {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-review-div-91 {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-review-div-92 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.single-review-span-93 {
  font-weight: 600;
}

.single-review-span-94 {
  display: flex;
}

.single-review-img-95 {
  width: 100%;
  border-radius: 6px;
  max-height: 150px;
  object-fit: cover;
  cursor: pointer;
}

.load-favorites-list-p-96 {
  color:red;
  font-size:0.85rem;
}

.load-claims-list-svg-97 {
  pointer-events: none;
}

.show-connect-sticker-flow-div-98 {
  text-align: center;
  margin-bottom: 20px;
}

.show-connect-sticker-flow-div-99 {
  width: 64px;
  height: 64px;
  background: rgba(44, 94, 59, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--brand-green);
}

.show-connect-sticker-flow-h3-100 {
  font-family: var(--font-fancy, serif);
  color: var(--brand-green);
  margin: 0 0 6px 0;
  font-size: 1.25rem;
}

.show-connect-sticker-flow-p-101 {
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin: 0;
}

.show-connect-sticker-flow-code-102 {
  background: var(--paper, #f4eee1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color, #e2dac9);
  font-weight: 600;
}

.show-connect-sticker-flow-div-103 {
  background: var(--paper, #f4eee1);
  border: 1px solid var(--border-color, #e2dac9);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.show-connect-sticker-flow-h4-104 {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  color: var(--charcoal, #2d312e);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.show-connect-sticker-flow-div-105 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.show-connect-sticker-flow-div-106 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.show-connect-sticker-flow-div-107 {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green, #2c5e3b);
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.show-connect-sticker-flow-div-108 {
  font-size: 0.85rem;
  color: var(--charcoal, #2d312e);
}

.show-connect-sticker-flow-span-109 {
  color: var(--muted-gray, #7d8b82);
}

.show-connect-sticker-flow-div-110 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sticker-login-111 {
  width: 100%;
}

.show-connect-sticker-flow-p-112 {
  color: var(--muted-gray);
  font-size: 0.85rem;
  text-align: center;
}

.show-connect-sticker-flow-div-113 {
  background: var(--paper, #f4eee1);
  border: 1px solid var(--border-color, #e2dac9);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.show-connect-sticker-flow-p-114 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal, #2d312e);
}

.show-connect-sticker-flow-p-115 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-gray, #7d8b82);
}

.show-connect-sticker-flow-div-116 {
  margin-bottom: 20px;
}

.show-connect-sticker-flow-label-117 {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal, #2d312e);
  margin-bottom: 8px;
}

.connect-sticker-select-118 {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2dac9);
  background: var(--off-white, #fdfbf7);
  font-size: 0.95rem;
  color: var(--charcoal, #2d312e);
  font-family: inherit;
}


/* account_page.ts extractions */
.top-brand-text { text-decoration: none; }
.acc-header-actions { display: flex; align-items: center; gap: 12px; }
.acc-header-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.acc-icon-badge.icon-honor-box { background-color: #fce4ec; color: #c2185b; }
.acc-avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.acc-avatar-wrapper { position: relative; width: 84px; height: 84px; cursor: pointer; }
.acc-avatar-circle { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--brand-green-light, #b2d8bc); background: var(--off-white, #fdfbf7); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08)); }
.acc-avatar-square { width: 100%; height: 100%; border-radius: 12px; border: 2px solid var(--border-color, #e2dac9); background: var(--off-white, #fdfbf7); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08)); transition: border-color 0.2s ease; }
.acc-avatar-wrapper:hover .acc-avatar-square { border-color: var(--brand-green); }
.acc-avatar-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--brand-green-pale, #e5efe7); color: var(--brand-green); font-size: 1.8rem; font-weight: 700; font-family: var(--font-fancy); }
.acc-avatar-edit-badge { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-green); color: white; border: 2px solid white; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.acc-avatar-title { margin: 0 0 4px 0; color: var(--charcoal); font-size: 1.05rem; }
.acc-avatar-subtitle { margin: 0; font-size: 0.85rem; color: var(--muted-gray); }
.acc-form-grid { display: flex; gap: 16px; }
.acc-form-grid ui-input { flex: 1; }
.acc-form-grid ui-input[disabled] { opacity: 0.7; }
.mt-28 { margin-top: 28px; }
.mb-8 { margin-bottom: 8px; }
.icon-sm { width: 18px; height: 18px; pointer-events: none; }
.text-green { color: var(--brand-green); }
.acc-form-group { display: flex; flex-direction: column; margin-bottom: 24px; }
.acc-banner-upload { position: relative; width: 100%; height: 140px; border-radius: 16px; border: 2px dashed var(--border-color, #e2dac9); background: var(--off-white, #fdfbf7); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transition: border-color 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.acc-banner-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted-gray); padding: 12px; text-align: center; }
.acc-banner-text { font-size: 0.82rem; font-weight: 600; }

/* Wallet Semantic Classes */
.wallet-muted-text {
  color: var(--muted-gray);
  font-size: 0.9rem;
}
.wallet-error-text {
  color: #fa755a;
  font-size: 0.9rem;
}
.wallet-card-container {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-card-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-green);
  pointer-events: none;
}
.wallet-card-last4 {
  font-weight: 600;
  color: var(--charcoal);
}
.wallet-card-expiry {
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-left: auto;
}
.wallet-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.wallet-add-card-btn {
  margin-top: 12px;
}
.wallet-tx-item {
  margin-bottom: 8px;
  cursor: pointer;
}
.wallet-tx-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.wallet-tx-amount {
  font-weight: 600;
  color: var(--charcoal);
}
.wallet-tx-subtitle {
  font-size: 0.8rem;
  color: var(--muted-gray);
}
.wallet-receipt-loading {
  text-align: center;
  padding: 20px;
}
.wallet-receipt-header {
  text-align: center;
  margin-bottom: 24px;
}
.wallet-receipt-amount {
  font-size: 3rem;
  font-weight: bold;
  color: var(--charcoal);
  font-family: var(--font-fancy);
}
.wallet-receipt-title {
  color: var(--muted-gray);
  font-size: 0.9rem;
}
.wallet-receipt-body {
  border-top: 1px dashed var(--border-light);
  padding-top: 20px;
  margin-bottom: 20px;
}
.wallet-receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wallet-receipt-label {
  color: var(--muted-gray);
  font-size: 0.9rem;
}
.wallet-receipt-value {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9rem;
}
.wallet-receipt-value-capitalize {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: capitalize;
}
.wallet-receipt-value-id {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.8rem;
  word-break: break-all;
}
.wallet-receipt-shipping {
  margin-bottom: 24px;
}
.wallet-receipt-section-title {
  margin: 0 0 12px 0;
  font-family: var(--font-fancy);
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
}
.wallet-receipt-shipping-status {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.wallet-receipt-shipping-row {
  font-size: 0.9rem;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.wallet-receipt-shipping-address {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-top: 12px;
}
.wallet-receipt-address-label {
  color: var(--muted-gray);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 4px;
}
.wallet-receipt-address-value {
  white-space: pre-line;
}
.wallet-receipt-items {
  margin-bottom: 20px;
}
.wallet-receipt-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.wallet-receipt-item-name {
  color: var(--charcoal);
  font-size: 0.9rem;
}
.wallet-receipt-item-price {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Trail Creator Styles */

.trail-btn-buy-new {
  margin-left: auto;
  --ui-button-width: max-content;
}

.trail-empty-state {
  text-align: center;
  padding: 40px 0;
}

.trail-empty-state-text {
  color: var(--muted-gray);
  margin-bottom: 12px;
}

.trail-payment-pending {
  color: var(--accent-terracotta);
}

.trail-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trail-card-icon {
  flex-shrink: 0;
}

.trail-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trail-card-title {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trail-card-subtitle {
  font-size: 0.75rem;
  color: var(--muted-gray);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trail-btn-map {
  margin-right: 4px;
}

.trail-icon-small {
  width: 18px;
  height: 18px;
  color: var(--brand-green);
  pointer-events: none;
}

.trail-icon-medium {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.trail-icon-small-base {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.trail-stand-item {
  margin-bottom: 8px;
}

.trail-builder-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trail-builder-section {
  margin-bottom: 32px;
}

.trail-form-grid {
  display: flex;
  gap: 16px;
}

.trail-form-input-flex {
  flex: 1;
}

.trail-badge-section {
  margin-bottom: 24px;
}

.trail-badge-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.trail-badge-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trail-badge-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--brand-green-light, #b2d8bc);
  background: var(--off-white, #fdfbf7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}

.trail-badge-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-green);
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.trail-badge-info {
  flex: 1;
}

.trail-badge-helper {
  font-size: 0.75rem;
  color: var(--muted-gray);
  margin: 0;
}

.trail-stops-container {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}

.trail-stops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trail-stops-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-green);
}

.trail-btn-select-stands {
  background: none;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.trail-stops-empty {
  color: var(--muted-gray);
  font-size: 0.85rem;
  margin: 0;
}

.trail-bottom-bar {
  margin-top: 24px;
}

.trail-publish-warning {
  font-size: 0.8rem;
  color: var(--muted-gray);
  text-align: center;
  margin-bottom: 8px;
}

.trail-action-buttons {
  display: flex;
  gap: 12px;
}

.trail-btn-flex {
  flex: 1;
}

.trail-btn-danger-full {
  color: #c0392b;
  border-color: #c0392b;
  width: 100%;
}

.trail-top-actions {
  display: flex;
  gap: 8px;
}

.trail-btn-top {
  --ui-button-padding: 6px 14px;
  font-size: 0.85rem;
}

.trail-btn-top-danger {
  --ui-button-padding: 6px 14px;
  font-size: 0.85rem;
  color: #c0392b;
  border-color: #c0392b;
}

.trail-pick-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(44, 94, 59, 0.2);
  border-radius: 32px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.trail-pick-btn-done {
  margin: 0;
  --ui-button-border-radius: 32px;
  --ui-button-padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trail-pick-btn-count {
  opacity: 0.85;
  font-size: 0.85rem;
  font-weight: 500;
}


.trail-stand-item-dynamic {
  margin-bottom: 8px;
}

.trail-badge-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trail-badge-placeholder-box {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--brand-green-pale, #e5efe7);
  color: var(--brand-green);
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-fancy);
}

.trail-badge-btn-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
}

/* Refactored from markets.ts */
.market-vendors-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color, #e5e7eb); }
.market-vendors-loading { color: var(--muted-gray); font-size: 0.9rem; margin-bottom: 12px; }
.market-vendors-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.market-vendors-title { margin-bottom: 0; }
.market-vendors-subrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-vendors-pending-btn { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.market-join-btn-approved { background: #EBF2ED; color: #2D6A4F; border: 1px solid #A3D9B1; padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: default; display: flex; align-items: center; gap: 4px; }
.market-join-icon-approved { width: 14px; height: 14px; color: #2D6A4F; }
.market-join-btn-pending { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: default; display: flex; align-items: center; gap: 4px; }
.market-join-icon-pending { width: 14px; height: 14px; color: #92400E; }
.market-join-btn-active { background: var(--primary-color, #2D6A4F); color: #fff; border: none; padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.market-join-icon-active { width: 14px; height: 14px; color: #fff; }
.market-cards-grid { display: flex; flex-direction: column; gap: 6px; }
.vendor-card-container { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.vendor-card-logo-wrapper { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #EBF2ED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vendor-card-logo { width: 100%; height: 100%; object-fit: cover; }
.vendor-card-icon-store { width: 22px; height: 22px; color: var(--brand-green); }
.vendor-card-info { display: flex; flex-direction: column; overflow: hidden; min-width: 0; text-align: left; }
.vendor-card-name { font-weight: 700; color: var(--charcoal, #2c332e); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vendor-card-desc { font-size: 0.75rem; color: var(--muted-gray, #6b7280); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vendor-card-list-item { margin-bottom: 6px; }
.vendor-action-icon-arrow { width: 18px; height: 18px; color: var(--brand-green); pointer-events: none; }
.market-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.market-modal-container { background: #fff; border-radius: 12px; max-width: 500px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.market-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.market-modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.market-modal-close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #666; }
.vendor-card-logo-wrapper-sm { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #EBF2ED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vendor-card-icon-store-sm { width: 20px; height: 20px; color: var(--brand-green); }
.vendor-card-name-sm { font-weight: 700; color: var(--charcoal, #2c332e); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vendor-card-list-item-full { margin-bottom: 8px; width: 100%; }
.vendor-action-icon-x { width: 18px; height: 18px; pointer-events: none; }
.vendor-action-icon-check { width: 18px; height: 18px; color: var(--brand-green); pointer-events: none; }
.vendor-markets-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color, #e5e7eb); }
.vendor-markets-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text-color, #111827); }
.vendor-markets-list { display: flex; flex-direction: column; gap: 8px; }
.btn-vendor-market-renew { background: #2D6A4F; color: #fff; border: none; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-right: 4px; }
.vendor-action-icon-market-pin { width: 20px; height: 20px; pointer-events: none; }
.market-modal-container-md { background: #fff; border-radius: 12px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.market-join-item-card { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafafa; cursor: pointer; transition: background 0.15s; }
.market-join-item-card.hover { background: #f0fdf4; }
.market-join-info-div { display: flex; flex-direction: column; gap: 2px; }
.market-join-name { font-size: 0.95rem; color: #111827; }
.market-join-desc { font-size: 0.8rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.btn-market-join-request { background: #2D6A4F; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.market-modal-container-md-alt { background: #fff; border-radius: 12px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.market-modal-title-alt { margin: 0; font-size: 1.1rem; font-weight: 700; color: #111827; }
.market-modal-empty-state { text-align: center; padding: 20px; color: #666; font-size: 0.9rem; }
.market-modal-prompt { text-align: center; padding: 24px 16px; color: #4b5563; font-size: 0.9rem; }
.market-modal-prompt-title { font-weight: 700; font-size: 1.05rem; color: #111827; margin-bottom: 8px; }
.market-modal-prompt-text { margin-bottom: 20px; line-height: 1.4; }
.market-join-business-card { padding: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.market-join-business-avatar { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #EBF2ED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.market-join-business-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.market-join-business-info { flex: 1; min-width: 0; }
.market-join-business-name { font-weight: 700; font-size: 1rem; color: #111827; }
.market-join-business-desc { font-size: 0.82rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.market-join-status-div { padding: 12px; border-radius: 8px; text-align: center; font-size: 0.9rem; font-weight: 600; }
.market-join-status-approved { background: #ECFDF5; color: #065F46; }
.market-join-status-msg { display: inline-flex; align-items: center; gap: 6px; }
.market-join-status-icon-approved { width: 16px; height: 16px; color: #065F46; }
.market-join-status-pending { background: #FEF3C7; color: #92400E; }
.market-join-status-icon-pending { width: 16px; height: 16px; color: #92400E; }
.market-join-status-error { background: #FEE2E2; color: #991B1B; }
.market-join-prompt { font-size: 0.9rem; color: #4b5563; margin-bottom: 16px; line-height: 1.4; }
.btn-market-join-submit { width: 100%; background: #2D6A4F; color: #fff; border: none; padding: 10px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; }

/* Auth Drawer Styles */
.auth-drawer-greeting {
  padding-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: var(--brand-green);
}

.auth-form-container {
  display: block;
  margin-bottom: 16px;
}

.auth-password-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 10px;
}

.auth-mode-help-container {
  padding-top: 10px;
  font-size: 11px;
  text-align: center;
}

.auth-mode-toggle-link {
  color: var(--brand-green);
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.user-profile-summary {
  margin-bottom: 20px;
  text-align: center;
}

.user-avatar-wrapper {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 4px auto 20px auto;
}

.user-avatar-container {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--brand-green-pale);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: var(--font-fancy);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.user-identicon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-subscriber-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-green);
  color: white;
  font-size: 0.55rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 2px solid white;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-display-name {
  margin: 0;
  color: var(--text-color);
}

.user-display-email {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: var(--muted-gray);
}

.user-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.passport-action-btn {
  color: var(--accent-terracotta);
}

.manage-account-link {
  text-decoration: none;
  display: block;
}

.manage-account-btn {
  color: var(--brand-green);
  width: 100%;
}

.logout-action-container {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.logout-action-btn {
  color: #ff4d4d;
}

.drawer-footer-links {
  margin-top: 0;
  padding-top: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pref-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.drawer-legal-link {
  text-decoration: none;
  color: var(--muted-gray);
  font-size: 0.85rem;
}

.footer-bullet {
  color: var(--border-color);
  font-size: 0.75rem;
}
.market-pending-list { display: flex; flex-direction: column; gap: 12px; }
.vendor-markets-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* Semantic classes extracted from inline styles in stands.ts */
.closed-banner {
  color: #ffffff !important;
  background-color: #4b5563;
  padding: 12px 20px;
  margin: -20px -20px 0 -20px;
  font-size: 0.95rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 20;
}

.closed-banner span,
.closed-banner ui-icon {
  color: inherit !important;
}

.closed-banner.closed-hours {
  background-color: #4b5563;
  color: #ffffff !important;
}

.closed-banner.closed-special {
  background-color: var(--accent-terracotta, #c65135);
  color: #ffffff !important;
}

/* Themed drawer adjustments for closed banners */
ui-drawer[data-theme] .closed-banner {
  color: #ffffff !important;
}

ui-drawer[data-theme] .closed-banner.closed-hours {
  background-color: color-mix(in srgb, var(--drawer-text) 82%, #000000);
  color: #ffffff !important;
}

ui-drawer[data-theme] .closed-banner.closed-special {
  background-color: var(--drawer-accent, var(--accent-terracotta));
  color: #ffffff !important;
}

ui-drawer[data-theme="midnight_market"] .closed-banner.closed-hours {
  background-color: #242f3d;
  border-bottom: 1px solid #334155;
  color: #f1f5f9 !important;
}

ui-drawer[data-theme="midnight_market"] .closed-banner.closed-special {
  background-color: #d97706;
  color: #ffffff !important;
}

.payment-badge-chip {
  border-radius: var(--radius-sm);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}

.stand-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: -20px;
  background: var(--off-white, #fdfbf7);
  z-index: 10;
  padding: 16px 20px 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.favorite-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  background: var(--bg-color);
}

.business-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.business-contact-link {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  display: inline-block;
}

/* Fixes for missing CSS from agent clobbering */
.rhif-new-app-btn {
  margin-left: auto;
  --ui-button-width: max-content;
  --ui-button-padding: 6px 12px;
  font-size: 0.85rem;
}

.honor-box-top-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.honor-box-amount-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border-bottom: 2px dashed var(--border-light);
  padding-bottom: 4px;
}
.honor-box-currency {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand-green);
  font-family: var(--font-fancy);
}
.honor-box-amount-input {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand-green);
  font-family: var(--font-fancy);
  width: 4ch;
  min-width: 2ch;
  max-width: 5ch;
  text-align: left;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
}
.honor-box-freq-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.honor-box-freq-btn-layout {
  width: 100px;
  justify-content: center;
}
.honor-box-slider {
  width: 100%;
  accent-color: var(--brand-green);
  cursor: pointer;
}
.honor-box-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-top: 8px;
}
.honor-contribute-btn {
  width: 100%;
}
.honor-stripe-container {
  margin-bottom: 32px;
}
.honor-stripe-title {
  font-size: 1rem;
  margin-bottom: 12px;
}
.honor-stripe-element-wrap {
  min-height: 44px;
}

.btn-top-settings {
  border-radius: 50%;
  overflow: hidden;
}



.rhif-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.rhif-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-gray);
  padding: 4px;
}
.rhif-editor-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--charcoal);
}
.rhif-amount-hint {
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-bottom: 24px;
}

.wallet-methods-container {
  padding-top: 16px;
  
  margin-bottom: 32px;
}
.acc-avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Missing Trails CSS */
.passport-status-msg { color: var(--muted-gray); font-size: 0.9rem; text-align: center; }
.passport-stats-container { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.passport-stat-card { flex: 1; min-width: 90px; text-align: center; padding: 12px; background: var(--off-white); border-radius: 8px; border: 1px solid var(--border-light); }
.passport-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--brand-green); }
.passport-stat-label { font-size: 0.75rem; color: var(--muted-gray); margin-top: 4px; }
.passport-section { margin-bottom: 24px; }
.passport-section-title { color: var(--brand-green); margin-top: 0; margin-bottom: 8px; }
.passport-empty-state { color: var(--muted-gray); font-size: 0.85rem; background: var(--off-white); padding: 12px; border-radius: 8px; border: 1px solid var(--border-light); margin: 0; }
.trail-badge-card { cursor: pointer; position: relative; }
.trail-badge-card.in-progress { filter: grayscale(1); opacity: 0.5; }
.ended-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); color: #c0392b; border: 3px solid #c0392b; border-radius: 8px; padding: 4px 12px; font-weight: 900; font-size: 11px; text-align: center; opacity: 0.85; z-index: 2; pointer-events: none; font-family: 'Courier New', Courier, monospace; filter: url(#stamp-distress-2); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.05); text-transform: uppercase; }
.passport-section.large-margin { margin-bottom: 24px; }
.passport-stamp-title { color: var(--brand-green); margin-top: 0; margin-bottom: 8px; }
.passport-empty-stamps { color: var(--muted-gray); font-size: 0.85rem; background: var(--off-white); padding: 12px; border-radius: 8px; border: 1px solid var(--border-light); margin: 0; }
.passport-start-trail-btn { --ui-button-padding: 4px 10px; --ui-button-font-size: 0.8rem; width: fit-content; margin: 0; height: auto; }
.trail-switcher-status-msg { color: var(--muted-gray); font-size: 0.9rem; text-align: center; }
.trail-list-item { margin-bottom: 6px; }
.trail-list-item-header { display: flex; align-items: center; gap: 8px; }
.trail-list-item-icon { flex-shrink: 0; }
.trail-list-item-text-container { display: flex; flex-direction: column; overflow: hidden; line-height: 1.2; }
.trail-list-item-title { font-weight: 600; color: var(--charcoal); font-size: 0.95rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trail-list-item-subtitle { font-size: 0.75rem; color: var(--muted-gray); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-trail-card { padding: 12px; margin-bottom: 8px; border: 1px dashed var(--brand-green); border-radius: var(--radius-sm, 8px); display: flex; justify-content: space-between; align-items: center; background: white; }
.active-trail-info { overflow: hidden; }
.active-trail-title { color: var(--brand-green); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-trail-subtitle { font-size: 0.75rem; color: var(--muted-gray); }
.active-trail-badge { font-size: 0.75rem; color: var(--brand-green); font-weight: 600; white-space: nowrap; }

/* Missing Identity CSS */
.home-icon-svg { display: inline-block; vertical-align: middle; margin-right: 4px; }
.home-location-title { font-weight: 600; color: var(--brand-green); margin-bottom: 2px; display: flex; align-items: center; }
.home-location-coords { font-size: 0.8rem; color: var(--muted-gray); }
.business-profile-item-header { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.business-profile-item-icon-wrapper { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #EBF2ED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.business-profile-item-icon { width: 20px; height: 20px; color: var(--brand-green); }
.business-profile-item-title { font-weight: 700; color: var(--charcoal, #2c332e); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-profile-action-icon { width: 18px; height: 18px; color: var(--brand-green); pointer-events: none; }

/* Hide spin buttons for honor box amount */
.honor-box-amount-input::-webkit-outer-spin-button,
.honor-box-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.honor-box-amount-input[type=number] {
  -moz-appearance: textfield;
}

/* Missing RHIF Form CSS */
.rhif-image-upload-row { display: flex; align-items: center; gap: 16px; }
.rhif-image-placeholder { width: 80px; height: 80px; border-radius: 8px; border: 2px dashed var(--border-light); display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--off-white); }
.rhif-image-preview { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid var(--border-light); }
.rhif-links-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rhif-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.rhif-link-row ui-input,
.rhif-link-row ui-input.form-group {
  flex: 1;
  margin-bottom: 0 !important;
  width: 100%;
}
.rhif-link-row .btn-remove-row {
  flex-shrink: 0;
}
.rhif-add-link-btn { align-self: flex-start; }
.rhif-error-msg {
  background: #fef2f2;
  border: 1px solid #f87171;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rhif-error-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b91c1c;
  font-size: 0.98rem;
}
.rhif-error-body {
  color: #7f1d1d;
  font-size: 0.9rem;
}
.rhif-error-list {
  margin: 4px 0 0 0;
  padding-left: 20px;
  color: #991b1b;
}
.rhif-error-list li {
  margin-bottom: 4px;
}
.rhif-error-action-row {
  margin-top: 6px;
  display: flex;
  gap: 10px;
}
.rhif-error-action-btn {
  background: #b91c1c;
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.rhif-error-action-btn:hover {
  background: #991b1b;
}
.rhif-notice-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 0.9rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rhif-notice-banner.warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #f59e0b;
  color: #92400e;
}
.rhif-notice-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.rhif-notice-list {
  margin: 4px 0 0 0;
  padding-left: 20px;
}
.rhif-field-error {
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}
ui-input.has-error input.form-control,
ui-input.has-error textarea.form-control,
.form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
  background-color: #fffbfa !important;
}
.rhif-terms-container { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; margin-bottom: 12px; background: var(--off-white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-light); transition: border-color 0.2s, background 0.2s; }
.rhif-terms-container.has-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}
.rhif-terms-checkbox { margin-top: 4px; width: 18px; height: 18px; cursor: pointer; }
.rhif-terms-label { font-size: 0.95rem; color: var(--charcoal); line-height: 1.5; cursor: pointer; }
.rhif-terms-link { color: var(--brand-green); text-decoration: none; font-weight: 600; }
.rhif-action-buttons { display: flex; gap: 12px; margin-top: 16px; }
.rhif-action-btn { flex: 1; }
.rhif-closed-message { color: var(--accent-terracotta); font-weight: 500; text-align: center; margin-top: 16px; }

/* Missing Modal CSS */
.modal-padded-content-center { padding: 16px; text-align: center; }
.modal-confirm-text { color: var(--charcoal); font-size: 0.95rem; }
.modal-confirm-subtext { color: var(--muted-gray); font-size: 0.85rem; }
.modal-actions-row { display: flex; gap: 12px; margin-top: 24px; }
.modal-btn-cancel { flex: 1; background: white; border: 1px solid var(--border-light); border-radius: 8px; padding: 10px; font-weight: 600; cursor: pointer; }
.modal-btn-confirm { flex: 1; background: var(--brand-green); color: white; border: none; border-radius: 8px; padding: 10px; font-weight: 600; cursor: pointer; }
.modal-danger-text { color: #c0392b; font-size: 0.95rem; font-weight: 600; }
.modal-btn-danger { flex: 1; background: #c0392b; color: white; border: none; border-radius: 8px; padding: 10px; font-weight: 600; cursor: pointer; }

/* Missing Trail Purchase CSS */
.payment-tab-btn { background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted-gray); font-weight: 600; padding: 8px 0; cursor: pointer; }
.payment-tab-btn.active { border-bottom-color: var(--brand-green); color: var(--charcoal); }
.saved-card-container { padding: 12px; border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 16px; background: var(--off-white); display: flex; align-items: center; gap: 12px; }
.saved-card-icon { width: 20px; height: 20px; color: var(--brand-green); pointer-events: none; }
.saved-card-number { font-weight: 600; color: var(--charcoal); }
.saved-card-exp { font-size: 0.85rem; color: var(--muted-gray); margin-left: auto; }
.stripe-card-element-wrap { padding: 12px; border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 12px; background: white; }
.btn-trail-purchase { width: 100%; background: var(--brand-green); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* Missing RHIF Part 2 CSS */
.rhif-new-app-btn { margin-left: auto; --ui-button-width: max-content; --ui-button-padding: 6px 12px; font-size: 0.85rem; }
.rhif-editor-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.rhif-back-btn { position: static; }
.rhif-editor-title { margin: 0; border: none; padding: 0; }
.rhif-form-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.rhif-amount-hint { margin: -8px 0 0 0; font-size: 0.8rem; color: var(--muted-gray); }
.rhif-field-group { margin-top: 8px; }
.rhif-field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.rhif-top-actions { margin-left: auto; }
.trail-builder-top-actions { margin-left: auto; }
.trail-builder-content { padding: 24px; }
.receipt-content-wrap { padding: 0 10px; }
.create-business-prompt-text { font-size: 0.82rem; color: var(--muted-gray, #717d74); margin: 0; line-height: 1.4; }
.create-business-link { color: var(--brand-green, #2c5e3b); font-weight: 600; text-decoration: underline; display: inline-block; margin-top: 2px; }
.modal-padded-content { padding: 16px; }
.trail-purchase-desc { color: var(--muted-gray); font-size: 0.9rem; margin-top: 0; margin-bottom: 24px; }
.payment-tabs-container { margin-bottom: 16px; }
.payment-tabs-row { display: flex; border-bottom: 1px solid var(--border-light); gap: 24px; }
.market-marker .temp-pin { filter: hue-rotate(240deg) saturate(2) brightness(1.2) drop-shadow(0 4px 6px rgba(220, 102, 6, 0.2)); }
.market-marker.selected .temp-pin { transform: scale(1.25) translateY(-4px); filter: hue-rotate(240deg) saturate(2) brightness(1.2) drop-shadow(0 8px 16px rgba(220, 102, 6, 0.4)); }
.temp-pin { 
  filter: hue-rotate(240deg) saturate(2) brightness(1.2) drop-shadow(0 4px 6px rgba(220, 102, 6, 0.2)); 
}

/* Icon Utility Classes */
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.icon-36 { width: 36px; height: 36px; }

.inline-block { display: inline-block; }
.no-pointer { pointer-events: none; }
.mr-2 { margin-right: 2px; }

.color-current { color: currentColor; }
.color-muted { color: var(--muted-gray); }
.color-green { color: var(--brand-green); }
.color-pink { color: #DB2777; }
.color-blue { color: #2563EB; }
.color-dark { color: #111827; }
.color-black { color: #09090B; }
.color-amber { color: #f59e0b; }

/* Text & Layout Utility Classes */
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-italic { font-style: italic; }
.text-bold { font-weight: 600; }
.text-sm { font-size: 0.85em; }
.text-muted { color: var(--muted-gray); }
.text-error { color: var(--status-error); }
.text-green { color: var(--brand-green); }
.mt-2 { margin-top: 2px; }

/* In-App Browser Escape Header */
.iab-top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10001;
  background: var(--brand-green-pale);
  color: var(--charcoal);
  box-shadow: 0 1px 3px rgba(44, 94, 59, 0.06);
  border-bottom: 1px solid rgba(44, 94, 59, 0.15);
  font-family: var(--font-sans);
}

.iab-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iab-banner-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--charcoal);
  min-width: 0;
  flex: 1;
}

.iab-banner-message strong {
  color: var(--brand-green);
  font-weight: 700;
}

.iab-banner-text-short {
  display: none;
}

@media (max-width: 640px) {
  .iab-banner-inner {
    padding: 5px 12px;
    gap: 8px;
  }
  .iab-banner-text-full {
    display: none;
  }
  .iab-banner-text-short {
    display: inline;
  }
}

.iab-banner-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-green);
}

.iab-banner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.iab-banner-cta {
  background: var(--brand-green);
  color: var(--off-white);
  border: none;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(44, 94, 59, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}

.iab-banner-cta:hover {
  background: var(--brand-green-light);
  transform: translateY(-1px);
}

.iab-banner-cta:active {
  transform: scale(0.97);
}

.iab-banner-close {
  background: none;
  border: none;
  color: var(--muted-gray);
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iab-banner-close:hover {
  color: var(--charcoal);
  background-color: rgba(44, 94, 59, 0.08);
}

html.has-iab-banner .top-brand-card {
  top: calc(20px + var(--iab-banner-height, 38px)) !important;
}

html.has-iab-banner .btn-top-feed,
html.has-iab-banner .btn-top-settings {
  top: calc(20px + var(--iab-banner-height, 38px)) !important;
}

html.has-iab-banner .btn-search-area {
  top: calc(24px + var(--iab-banner-height, 38px)) !important;
}

@media (min-width: 768px) {
  html.has-iab-banner .top-brand-card {
    top: calc(24px + var(--iab-banner-height, 38px)) !important;
  }
  html.has-iab-banner .btn-top-feed,
  html.has-iab-banner .btn-top-settings {
    top: calc(24px + var(--iab-banner-height, 38px)) !important;
  }
}

html.has-iab-banner ui-page-header,
html.has-iab-banner .sys-header {
  margin-top: var(--iab-banner-height, 38px) !important;
}

html.has-iab-banner ui-drawer[position="right"],
html.has-iab-banner #userMenuDrawer {
  top: calc(80px + var(--iab-banner-height, 38px)) !important;
  max-height: calc(100vh - 100px - var(--iab-banner-height, 38px)) !important;
}

/* On system pages, ensure user menu drawer sits cleanly below the page header */
body.sys-page ui-drawer[position="right"],
body.sys-page #userMenuDrawer {
  top: calc(105px + var(--iab-banner-height, 0px)) !important;
  max-height: calc(100vh - 120px - var(--iab-banner-height, 0px)) !important;
}

@media (max-width: 767px) {
  html.has-iab-banner ui-drawer[position="right"],
  html.has-iab-banner #userMenuDrawer,
  body.sys-page ui-drawer[position="right"],
  body.sys-page #userMenuDrawer {
    top: auto !important;
    bottom: 0 !important;
    max-height: calc(100vh - 120px - var(--iab-banner-height, 38px)) !important;
    max-height: calc(100dvh - 120px - var(--iab-banner-height, 38px)) !important;
  }
}

/* In-App Browser Escape Guide Modal */
.iab-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: rgba(18, 22, 19, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: iabFadeIn 0.25s ease-out;
}

.iab-modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

@keyframes iabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.iab-pointer-arrow {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 100002;
  pointer-events: none;
  animation: iabBounce 1.6s ease-in-out infinite;
}

.iab-pointer-bubble {
  background: var(--accent-terracotta);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(217, 107, 67, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
}

.iab-pointer-svg {
  width: 18px;
  height: 18px;
}

@keyframes iabBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.iab-modal-card {
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: iabSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 100001;
}

@keyframes iabSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.iab-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-terracotta-pale);
  color: var(--accent-terracotta-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.iab-badge-icon {
  width: 14px;
  height: 14px;
}

.iab-modal-title {
  font-family: var(--font-fancy);
  font-size: 1.45rem;
  color: var(--charcoal);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.iab-modal-desc {
  font-size: 0.9rem;
  color: var(--muted-gray);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.iab-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
}

.iab-step-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.iab-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.iab-step-text {
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.4;
}

.iab-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iab-btn-primary {
  width: 100%;
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.iab-btn-primary:hover {
  background: var(--brand-green-light);
}

.iab-btn-copy {
  width: 100%;
  background: var(--brand-green-pale);
  color: var(--brand-green);
  border: 1px solid rgba(44, 94, 59, 0.25);
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.iab-btn-copy.copied {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.iab-btn-icon {
  width: 16px;
  height: 16px;
}

.iab-btn-dismiss {
  width: 100%;
  background: transparent;
  color: var(--muted-gray);
  border: none;
  padding: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

.iab-btn-dismiss:hover {
  color: var(--charcoal);
}

/* In-App Browser Callout inside Auth Drawer */
.iab-auth-card {
  background: var(--accent-terracotta-pale);
  border: 1px solid rgba(217, 107, 67, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.iab-auth-blocked-card {
  padding: 16px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.iab-blocked-heading {
  font-family: var(--font-fancy);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 6px 0 8px 0;
}

.iab-auth-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.color-terracotta {
  color: var(--accent-terracotta);
}

.iab-auth-title {
  font-family: var(--font-fancy);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}

.iab-auth-desc {
  font-size: 0.84rem;
  color: var(--charcoal);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.iab-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iab-btn-auth-primary {
  width: 100%;
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.iab-btn-auth-primary:hover {
  background: var(--brand-green-light);
}

.iab-btn-auth-secondary {
  width: 100%;
  background: white;
  color: var(--charcoal);
  border: 1px solid var(--border-color);
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.iab-btn-auth-secondary:hover {
  background: var(--paper);
}

/* -------------------------------------------------------------
 * Business View & Embed Mode (Standalone Landing & Scoped Map)
 * ------------------------------------------------------------- */
body.is-business-view .top-brand-card,
html.is-business-view .top-brand-card,
body.is-custom-domain .top-brand-card,
html.is-custom-domain .top-brand-card,
body.is-embed-mode #btnOpenFeed,
html.is-embed-mode #btnOpenFeed,
body.is-business-view #feedDistanceFilter,
html.is-business-view #feedDistanceFilter,
body.is-business-view #btnAddStand,
html.is-business-view #btnAddStand,
body.is-business-view #btnCancelAdd,
html.is-business-view #btnCancelAdd,
body.is-business-view #btnSearchArea,
html.is-business-view #btnSearchArea,
body.is-business-view #crosshairTracker,
html.is-business-view #crosshairTracker,
body.is-business-view #navigationConsole,
html.is-business-view #navigationConsole,
body.is-embed-mode #btnSettings,
html.is-embed-mode #btnSettings,
body.is-embed-mode #geolocateWrapper,
html.is-embed-mode #geolocateWrapper {
  display: none !important;
}

body.is-embed-mode,
html.is-embed-mode {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-color: transparent !important;
}

body.is-embed-mode #map {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* -------------------------------------------------------------
 * Custom Domain SSO Authorization Page (/auth/authorize)
 * ------------------------------------------------------------- */
.auth-sso-layout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: calc(100vh - 120px);
  background: var(--off-white, #fdfbf7);
  box-sizing: border-box;
}

.auth-sso-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  box-sizing: border-box;
}

.auth-sso-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-sso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-green, #2c5e3b);
  background: rgba(44, 94, 59, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.auth-sso-title {
  font-family: var(--font-fancy, 'Fraunces', serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--charcoal, #1f2937);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.auth-sso-subtitle {
  font-size: 0.92rem;
  color: var(--muted-gray, #6b7280);
  margin: 0;
  line-height: 1.4;
}

.auth-sso-status-box {
  text-align: center;
  padding: 28px 16px;
  background: rgba(44, 94, 59, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(44, 94, 59, 0.15);
  margin-bottom: 16px;
}

.auth-sso-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(44, 94, 59, 0.2);
  border-top-color: var(--brand-green, #2c5e3b);
  border-radius: 50%;
  animation: ssoSpin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes ssoSpin {
  to { transform: rotate(360deg); }
}

.auth-sso-status-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal, #1f2937);
  margin: 0 0 6px 0;
}

.auth-sso-status-sub {
  font-size: 0.88rem;
  color: var(--muted-gray, #6b7280);
  margin: 0 0 14px 0;
}

.auth-sso-manual-link {
  font-size: 0.85rem;
  color: var(--brand-green, #2c5e3b);
  text-decoration: underline;
  font-weight: 600;
}

.auth-sso-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px;
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 20px;
}

.auth-sso-error-text {
  margin: 0;
}

.auth-sso-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.auth-sso-cancel {
  font-size: 0.88rem;
  color: var(--muted-gray, #6b7280);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-sso-cancel:hover {
  color: var(--charcoal, #1f2937);
}

.is-hidden {
  display: none;
}

/* -------------------------------------------------------------
 * Custom Domain Drawer SSO Prompt
 * ------------------------------------------------------------- */
.auth-sso-drawer-prompt {
  padding: 8px 0 16px 0;
  text-align: center;
}

.auth-sso-drawer-text {
  font-size: 0.92rem;
  color: var(--muted-gray, #6b7280);
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.auth-sso-drawer-link {
  display: block;
  text-decoration: none;
}

.auth-sso-drawer-btn {
  width: 100%;
}

.feed-status-msg {
  color: var(--muted-gray);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 20px;
}




