:root {
  --indigo: #3d2fa0;
  --indigo-light: #5548c8;
  --indigo-dark: #281f6b;
  --purple: #7c3aed;
  --cream: #fdf9f3;
  --warm-white: #ffffff;
  --text: #1a1230;
  --text-muted: #6b6080;
  --border: #e2ddf4;
  --red: #e53e3e;
  --green: #2f855a;
  --blue: #2b6cb0;
  --gray: #718096;
  --pin-red: #e53e3e;
  --pin-green: #38a169;
  --pin-blue: #3182ce;
  --pin-gray: #a0aec0;
  --shadow: 0 4px 24px rgba(61,47,160,0.10);
  --shadow-lg: 0 8px 40px rgba(61,47,160,0.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
/* Prevent any child from causing horizontal scroll */
header, section, footer, .app-layout, .hero, .subscribe-section {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 60%, var(--purple) 100%);
  color: white;
  padding: 0 2rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  width: 100%;
  box-sizing: border-box;
}
/* Push content down so hero doesn't hide behind fixed header */
#gsf-app-wrapper { padding-top: 70px; }

/* When WP admin bar is showing (logged in as WP admin) */
.admin-bar header { top: 32px; }
.admin-bar #gsf-app-wrapper { padding-top: 102px; }

/* When GSF admin bar also showing */
.gsf-admin-bar-active #gsf-app-wrapper { padding-top: 112px; }
.admin-bar.gsf-admin-bar-active #gsf-app-wrapper { padding-top: 144px; }

@media screen and (max-width: 782px) {
  .admin-bar header { top: 46px; }
  .admin-bar #gsf-app-wrapper { padding-top: 116px; }
  .admin-bar.gsf-admin-bar-active #gsf-app-wrapper { padding-top: 158px; }
}
.header-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: white;
}
.logo-icon { font-size: 1.8rem; }
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.logo-text span { color: #ffd700; }
nav { display: flex; gap: 0.5rem; }
#gsf-app-wrapper .nav-btn {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .nav-btn:hover { background: rgba(255,255,255,0.25) !important; }
#gsf-app-wrapper .nav-btn.primary {
  background: #ffd700 !important;
  border-color: #ffd700 !important;
  color: var(--indigo-dark) !important;
  font-weight: 600 !important;
}
#gsf-app-wrapper .nav-btn.primary:hover { background: #ffe44d !important; }

/* LAYOUT */
.app-layout {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: start;
  box-sizing: border-box;
}
.app-layout > div {
  min-width: 0; /* critical — prevents grid children overflowing */
  box-sizing: border-box;
}
.app-layout.form-hidden {
  grid-template-columns: 1fr;
  padding: 1.5rem 2rem;
}
#formColumn {
  display: none;
  animation: slideInLeft 0.25s ease;
}
#formColumn.visible { display: block; }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* PANELS */
.panel {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--indigo);
  font-weight: 700;
}
.panel-body { padding: 1.5rem; }

/* FORM */
.form-group { margin-bottom: 1.1rem; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
label .req { color: var(--red); }
input[type=text], input[type=email], input[type=date], input[type=time], textarea, select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(85,72,200,0.12);
}
textarea { resize: vertical; min-height: 80px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; margin-top: 0.2rem; }
.helper-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

#gsf-app-wrapper .btn,
#gsf-app-wrapper button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .btn-primary,
#gsf-app-wrapper button.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%) !important;
  color: white !important;
  width: 100% !important;
  padding: 0.9rem !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 14px rgba(61,47,160,0.35) !important;
}
#gsf-app-wrapper .btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 6px 20px rgba(61,47,160,0.45) !important; }
#gsf-app-wrapper .btn-sm.btn-primary,
#gsf-app-wrapper button.btn-sm.btn-primary { width: auto !important; padding: 0.4rem 0.9rem !important; font-size: 0.82rem !important; }
#gsf-app-wrapper .btn-secondary,
#gsf-app-wrapper button.btn-secondary {
  background: var(--border) !important;
  color: var(--text) !important;
}
#gsf-app-wrapper .btn-secondary:hover { background: #d0c9ee !important; color: var(--text) !important; }
#gsf-app-wrapper .btn-danger,
#gsf-app-wrapper button.btn-danger { background: #fed7d7 !important; color: var(--red) !important; }
#gsf-app-wrapper .btn-danger:hover { background: #feb2b2 !important; }
#gsf-app-wrapper .btn-sm { padding: 0.4rem 0.8rem !important; font-size: 0.82rem !important; border-radius: 6px !important; }

/* Icon buttons — edit/delete on cards */
#gsf-app-wrapper .icon-btn {
  background: white !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 7px !important;
  padding: 0.35rem 0.55rem !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .icon-btn:hover { background: var(--border) !important; color: var(--text) !important; }
#gsf-app-wrapper .icon-btn.del:hover { background: #fff5f5 !important; border-color: #fed7d7 !important; color: var(--red) !important; }

/* Refresh button */
#gsf-app-wrapper .btn-refresh {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: var(--indigo) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.45rem 0.9rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .btn-refresh:hover { background: var(--indigo-light) !important; }

/* MAP */
#map {
  height: 460px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.map-controls {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.map-controls .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
.search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
}
.search-bar input {
  flex: 1;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

/* LEGEND */
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  background: rgba(61,47,160,0.04);
  border-radius: 10px;
  margin: 0.8rem 0;
  align-items: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.dot-red { background: var(--pin-red); }
.dot-green { background: var(--pin-green); }
.dot-blue { background: var(--pin-blue); }
.dot-gray { background: var(--pin-gray); }

/* STATUS BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-red { background: #fff5f5; color: var(--red); border: 1px solid #fed7d7; }
.badge-green { background: #f0fff4; color: var(--green); border: 1px solid #c6f6d5; }
.badge-blue { background: #ebf8ff; color: var(--blue); border: 1px solid #bee3f8; }
.badge-gray { background: #f7fafc; color: var(--gray); border: 1px solid #e2e8f0; }

/* "New" listing badge — gold accent, eye-catching but not garish */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fffbe6 0%, #fff3cc 100%);
  color: #7a5a00;
  border: 1px solid #ffd700;
  white-space: nowrap;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
  50%       { box-shadow: 0 0 0 4px rgba(255,215,0,0.25); }
}

/* SALE CARDS */
.stats-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.stat-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.stat-chip:hover { opacity: 0.8; }
.stat-chip.active { border-color: currentColor; }
.chip-red { background: #fff5f5; color: var(--red); }
.chip-green { background: #f0fff4; color: var(--green); }
.chip-blue { background: #ebf8ff; color: var(--blue); }
.chip-gray { background: #f7fafc; color: var(--gray); }

.sale-list { display: flex; flex-direction: column; gap: 1rem; max-height: 600px; overflow-y: auto; padding-right: 2px; }
.sale-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
  text-align: left !important; /* override any GP centring */
}
.sale-card:hover { box-shadow: var(--shadow); border-color: var(--indigo-light); }
.sale-card.expired { opacity: 0.55; }
.sale-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  text-align: left !important;
}
.sale-address {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: left !important;
}
.sale-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.5rem;
  text-align: left !important;
}
.sale-items {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.4rem;
  text-align: left !important;
}
.sale-special {
  font-size: 0.82rem;
  color: var(--indigo);
  font-style: italic;
  text-align: left !important;
}
.sale-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  justify-content: flex-start !important;
}

/* Sale list */
.icon-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: var(--text-muted);
}
.icon-btn:hover { background: var(--border); color: var(--text); }
.icon-btn.del:hover { background: #fff5f5; border-color: #fed7d7; color: var(--red); }

/* Social share icon buttons */
.social-icon-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.2s, transform 0.15s !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
.social-icon-btn:hover { opacity: 0.85 !important; transform: scale(1.1) !important; }
.si-fb { background: #1877f2 !important; }
.si-x  { background: #000 !important; }
.si-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }

/* This Weekend filter button */
.btn-weekend-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: white !important;
  color: var(--indigo) !important;
  border: 1.5px solid var(--indigo) !important;
  border-radius: 20px !important;
  padding: 0.35rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  -webkit-font-smoothing: antialiased !important;
}
.btn-weekend-filter:hover {
  background: #f0edff !important;
  color: var(--indigo) !important;
}
/* Active state: indigo background, white text — !important on all colour props
   to override GeneratePress button styles that set color on button elements */
button.btn-weekend-filter.active,
.btn-weekend-filter.active,
.btn-weekend-filter.active:link,
.btn-weekend-filter.active:visited {
  background: var(--indigo) !important;
  background-color: var(--indigo) !important;
  color: #ffffff !important;
  border-color: var(--indigo) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #ffffff !important;
}
button.btn-weekend-filter.active:hover,
.btn-weekend-filter.active:hover {
  background: var(--indigo-light) !important;
  background-color: var(--indigo-light) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--indigo-light) !important;
}

/* Get Directions button */
#gsf-app-wrapper .btn-directions {
  background: #f0fdf4 !important;
  color: #276749 !important;
  border: 1.5px solid #9ae6b4 !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .btn-directions:hover {
  background: #c6f6d5 !important;
  transform: translateY(-1px) !important;
}

#gsf-app-wrapper .btn-share-sale {
  background: #f0edff !important;
  color: var(--indigo) !important;
  border: 1.5px solid #d4ccf5 !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .btn-share-sale:hover {
  background: #e0daff !important;
  transform: translateY(-1px) !important;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 0.8rem; }

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,18,48,0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  top: 0 !important;
}
.modal-overlay.open { display: flex; }
/* Delete modal sits above all other modals */
#deleteModal { z-index: 999999; }
.modal {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

/* Fix GP overriding link colours inside app */
#gsf-app-wrapper a,
#gsf-app-wrapper a:visited,
#gsf-app-wrapper a:hover,
#gsf-app-wrapper a:link {
  color: inherit !important;
  text-decoration: none !important;
}

/* Fix GP overriding table/text colours in admin dashboard */
#gsf-app-wrapper .admin-table,
#gsf-app-wrapper .admin-table td,
#gsf-app-wrapper .admin-table td * {
  color: var(--text) !important;
}
#gsf-app-wrapper .admin-table th {
  color: var(--indigo) !important;
}
#gsf-app-wrapper .admin-table .badge,
#gsf-app-wrapper .admin-table .card-tag {
  color: inherit !important;
}

/* Fix modal text colours */
#gsf-app-wrapper .modal,
#gsf-app-wrapper .modal * {
  color: var(--text) !important;
}
#gsf-app-wrapper .modal .modal-title { color: var(--indigo) !important; }
#gsf-app-wrapper .modal .badge { color: inherit !important; }
#gsf-app-wrapper .modal h2,
#gsf-app-wrapper .modal h3 { color: var(--text) !important; }

/* Fix purge button yellow override */
#gsf-app-wrapper .purge-btn {
  background: #fff5f5 !important;
  border: 1.5px solid #fed7d7 !important;
  color: var(--red) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  box-shadow: none !important;
}
#gsf-app-wrapper .purge-btn:hover { background: #fed7d7 !important; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--indigo); }
.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.2rem;
}
.close-btn:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--indigo-dark);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
  max-width: 300px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes fadeInUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* DISTANCE */
.distance-tag {
  font-size: 0.75rem;
  background: var(--indigo);
  color: white;
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
  font-weight: 600;
}

/* POPUP */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 240px !important;
}
.popup-inner { padding: 1rem; }
.popup-addr { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--text); }
.popup-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.popup-items { font-size: 0.82rem; color: var(--text); line-height: 1.4; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.8rem 0; }
  .logo-text { font-size: 1.1rem; }
  .app-layout { padding: 1rem; }
  .row-2 { grid-template-columns: 1fr; }
}

/* SEARCH SECTION */
.search-section {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(61,47,160,0.04);
  border-radius: 10px;
}
.search-section label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.88rem; }
.search-section input { max-width: 200px; padding: 0.45rem 0.7rem; font-size: 0.88rem; }
.distance-select { max-width: 140px; padding: 0.45rem 0.7rem; font-size: 0.88rem; }

/* Search toolbar — half width on desktop, full width on mobile */
.search-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  width: 50%;
  min-width: 300px;
}
.search-postal-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.9rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  outline: none !important;
  background: white !important;
  color: var(--text) !important;
  box-sizing: border-box;
}
.search-postal-input:focus {
  border-color: var(--indigo) !important;
  box-shadow: 0 0 0 3px rgba(61,47,160,0.1) !important;
}
.search-radius-select {
  flex-shrink: 0;
  width: auto;
  padding: 0.6rem 0.4rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  background: white !important;
  color: var(--text) !important;
  cursor: pointer !important;
}
.search-btn { flex-shrink: 0; white-space: nowrap !important; }
#searchSection .btn { white-space: nowrap !important; flex-shrink: 0; }

.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.2rem;
}
.tab {
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab.active { color: var(--indigo); border-bottom-color: var(--indigo); }

.scroll-hint { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding: 0.5rem; }

/* TAGS */
.tag-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.tag-pill:hover { border-color: var(--indigo-light); color: var(--indigo); background: #f3f0ff; }
.tag-pill.selected { background: var(--indigo); border-color: var(--indigo); color: white; }
.tag-pill.selected:hover { background: var(--indigo-light); }
.tag-custom-row { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.tag-custom-row input { flex: 1; padding: 0.38rem 0.7rem; font-size: 0.82rem; }
.tag-custom-row button { padding: 0.38rem 0.8rem; font-size: 0.82rem; white-space: nowrap; }
.tag-limit { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* TAG DISPLAY on cards */
.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0; }
.card-tag {
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ede9ff;
  color: var(--indigo);
  border: 1px solid #d0c7ff;
}

/* TAG FILTER BAR */
.tag-filter-bar {
  padding: 1rem 1.2rem 0.9rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf8ff 100%);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1.5px solid #e8e2ff;
}
.tag-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.tag-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tag-filter-label::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--indigo);
  border-radius: 2px;
}
.tag-filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  line-height: 1;
}
.tag-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #d4ccf5;
  background: white;
  color: var(--indigo);
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.tag-filter-pill:hover { border-color: var(--indigo); background: #f0edff; }
.tag-filter-pill.active { background: var(--indigo); border-color: var(--indigo); color: white; }
.tag-filter-clear {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  color: var(--indigo);
  cursor: pointer;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1.5px dashed var(--indigo);
  white-space: nowrap;
  transition: all 0.15s;
}
.tag-filter-clear:hover { background: #f0edff; }

/* LEGEND BADGES */
.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.legend-badge.badge-red  { background:#fff0f0; color:#c53030; border:1px solid #fed7d7; }
.legend-badge.badge-green{ background:#f0fff4; color:#276749; border:1px solid #c6f6d5; }
.legend-badge.badge-blue { background:#ebf8ff; color:#2c5282; border:1px solid #bee3f8; }
.legend-badge.badge-gray { background:#f7fafc; color:#4a5568; border:1px solid #e2e8f0; }

/* PULSE for Happening Now pins */
.legend-pulse {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e53e3e;
  box-shadow: 0 0 0 0 rgba(229,62,62,0.6);
  animation: pulse-ring 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(229,62,62,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(229,62,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); }
}

/* Taller map */
#map { height: 520px; border-radius: 10px; border: 1px solid var(--border); }
.map-wrapper { position: relative; }
.map-search-btn {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--indigo);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.map-search-btn:hover { background: var(--indigo); color: white; }
.map-search-btn.visible { display: flex; animation: fadeInUp 0.2s ease; }
.map-area-label {
  position: absolute;
  bottom: 28px;
  left: 10px;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--indigo);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  pointer-events: none;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2a1f5e;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('https://garagesalefinder.ca/hero-bg.jpg?v=2');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.55);
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(40,31,107,0.45) 0%,
    rgba(61,47,160,0.25) 50%,
    rgba(124,58,237,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease both;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,215,0,0.18);
  border: 1px solid rgba(255,215,0,0.45);
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title span { color: #ffd700; }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.hero-btn-primary {
  background: #ffd700;
  color: var(--indigo-dark);
  box-shadow: 0 4px 18px rgba(255,215,0,0.35);
}
.hero-btn-primary:hover { background: #ffe44d; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,215,0,0.45); }
.hero-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.hero-search {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-search input {
  flex: 3;
  padding: 0.85rem 1.1rem;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
  color: var(--text);
}
.hero-search select {
  flex: 0 0 110px;
  padding: 0.85rem 0.5rem;
  border: none;
  border-left: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  outline: none;
  background: white;
  color: var(--text);
  cursor: pointer;
}
.hero-search button {
  padding: 0.85rem 1.3rem;
  background: var(--indigo);
  color: white;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--indigo-light); }
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat { color: rgba(255,255,255,0.75); font-size: 0.82rem; text-align: center; }
.hero-stat strong { display: block; font-family: 'Fraunces', serif; font-size: 1.4rem; color: white; line-height: 1; margin-bottom: 0.2rem; }
/* Season total chip — gold accent to stand out from the live stats */
.hero-stat-season { border-left: 1px solid rgba(255,215,0,0.35); padding-left: 2rem; }
.hero-stat-season strong { color: #ffd700; }
@media (max-width: 600px) {
  .hero { min-height: 360px; }
  .hero-search { flex-wrap: wrap; border-radius: 10px; }
  .hero-search input, .hero-search select, .hero-search button { border-radius: 0; }
}
.gsf-admin-bar {
  background: linear-gradient(90deg, #1a1230 0%, #281f6b 100%);
  color: #ffd700 !important;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: fixed;
  top: 70px; /* directly below 70px header */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9998; /* below header but above content */
}
/* When WP admin bar also showing, offset our admin bar down */
.admin-bar .gsf-admin-bar { top: 102px; }

/* Push page content down when gsf admin bar is active */
.gsf-admin-bar-active #gsf-app-wrapper {
  padding-top: 112px !important; /* 70px header + 42px admin bar */
}
.admin-bar.gsf-admin-bar-active #gsf-app-wrapper {
  padding-top: 144px !important;
}
.gsf-admin-bar button {
  background: rgba(255,215,0,0.15) !important;
  border: 1px solid rgba(255,215,0,0.4) !important;
  color: #ffd700 !important;
  padding: 0.25rem 0.8rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.gsf-admin-bar button:hover { background: rgba(255,215,0,0.25) !important; }

/* ADMIN DASHBOARD */
.admin-modal { max-width: 780px; }
.admin-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.2rem; }
.admin-tab {
  padding: 0.6rem 1.2rem; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.admin-tab.active { color: var(--indigo); border-bottom-color: var(--indigo); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th {
  background: #f5f3ff; color: var(--indigo); font-weight: 700;
  padding: 0.55rem 0.8rem; text-align: left; border-bottom: 2px solid var(--border);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.admin-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:hover td { background: #faf8ff; }
.admin-table tr.expired-row td { opacity: 0.55; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-box {
  background: #f5f3ff; border-radius: 12px; padding: 1rem;
  text-align: center; border: 1.5px solid var(--border);
}
.stat-box .num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; color: var(--indigo); line-height: 1; }
.stat-box .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 600; }
.admin-action-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.28rem 0.55rem; cursor: pointer; font-size: 0.8rem;
  transition: all 0.15s; color: var(--text-muted); margin-right: 0.25rem;
}
.admin-action-btn:hover { background: var(--border); color: var(--text); }
.admin-action-btn.del:hover { background: #fff5f5; border-color: #fed7d7; color: var(--red); }
.purge-btn {
  background: #fff5f5; border: 1.5px solid #fed7d7; color: var(--red);
  padding: 0.5rem 1.2rem; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: all 0.2s;
}
.purge-btn:hover { background: #fed7d7; }

/* ═══════════════════════════════════════════════════
   MOBILE & RESPONSIVE — comprehensive fixes
   ═══════════════════════════════════════════════════ */

/* Tablet — 768px and below */
@media (max-width: 768px) {
  body { font-size: 15px; }

  /* Header — force full width, no overflow */
  header {
    padding: 0 1rem !important;
    width: 100vw !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  .header-inner {
    height: auto;
    padding: 0.6rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }
  /* Hide Proudly Canadian and social icons from header on mobile */
  .header-inner > span,
  .header-inner .social-icon-btn { display: none !important; }

  /* Logo — smaller on mobile */
  .logo img { height: 28px !important; }
  .logo-text { font-size: 0.9rem; }

  /* Nav buttons — compact, side by side */
  .header-inner nav { gap: 0.4rem; flex-wrap: nowrap; }
  #gsf-app-wrapper .nav-btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
  #gsf-app-wrapper .nav-btn.primary {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.72rem !important;
  }

  /* Hero — reduce height on mobile */
  .hero { min-height: 260px; box-sizing: border-box; width: 100vw !important; }
  .hero-content { padding-top: 4rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 0.88rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat strong { font-size: 1.6rem; }

  /* App layout — full width, zero padding on mobile */
  .app-layout,
  .app-layout.form-hidden {
    grid-template-columns: 1fr !important;
    padding: 0.5rem !important;
    gap: 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .app-layout > div,
  .app-layout > div > .panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Map panel — contained but NOT overflow:hidden (clips Leaflet pins) */
  #map { height: 350px; width: 100% !important; }
  .map-wrapper { width: 100% !important; }
  #searchSection {
    padding: 0.6rem 0.8rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Mobile: full width, wrap to two rows */
  .search-toolbar {
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }
  .search-postal-input {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .search-radius-select { flex: 0 0 auto !important; }
  .search-btn { flex: 1 !important; }

  /* Legend — wrap tightly */
  .legend-badge { font-size: 0.72rem; padding: 0.2rem 0.55rem; }

  /* Panel */
  .panel { border-radius: 12px; }
  .panel-header { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .panel-body { padding: 0.8rem; }
  .panel-title { font-size: 0.95rem; }

  /* Sale cards */
  .sale-card { padding: 0.9rem; }
  .sale-address { font-size: 0.9rem; }
  .sale-list { max-height: 500px; }

  /* Stat chips — wrap */
  .stats-row { flex-wrap: wrap; gap: 0.3rem; }
  .stat-chip { font-size: 0.72rem; padding: 0.2rem 0.55rem; }

  /* Tag filter */
  .tag-filter-bar { padding: 0.8rem; }
  .tag-filter-pills-wrap { gap: 0.3rem 0.35rem; }
  .tag-filter-pill { font-size: 0.73rem; padding: 0.25rem 0.6rem; }

  /* Form */
  .row-2 { grid-template-columns: 1fr; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; } /* prevents iOS zoom */

  /* Modals */
  .modal { width: 95vw; padding: 0; margin: 1rem; }
  .modal-body { padding: 1rem; }
  .modal-footer { padding: 0.8rem 1rem; }
  .admin-modal { max-width: 95vw; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Map search button */
  .map-search-btn { font-size: 0.8rem; padding: 0.45rem 1rem; }
  .map-area-label { font-size: 0.7rem; }
}

/* Phone — 480px and below */
@media (max-width: 480px) {
  header {
    padding: 0 0.75rem !important;
    width: 100vw !important;
    box-sizing: border-box;
  }
  .hero { width: 100vw !important; box-sizing: border-box; }
  .header-inner > span { display: none; } /* hide Proudly Canadian on very small screens */
  .hero-title { font-size: 1.6rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-stat { font-size: 0.72rem; }

  .app-layout { padding: 0.5rem; }

  #map { height: 300px; }

  /* Search toolbar — same two-row layout on small phones */
  .search-toolbar { flex-wrap: wrap !important; }
  .search-postal-input { width: 100% !important; flex: 0 0 100% !important; }
  .search-radius-select { flex: 0 0 auto !important; }
  .search-btn { flex: 1 !important; }

  .panel-header { flex-direction: column; align-items: flex-start; }

  /* Admin table — scrollable */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 600px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-box .num { font-size: 1.5rem; }

  /* Map count badge inline */
  #mapCountBadge { font-size: 0.7rem; }

  /* Legend wraps to 2 per row */
  .legend-badge { font-size: 0.7rem; }

  /* Toast */
  .toast { font-size: 0.82rem; min-width: 200px; }
}

.tag-filter-pill.dim { opacity: 0.4; cursor: default; }
.tag-filter-pill.dim:hover { border-color: var(--border); background: white; }

/* ═══════════════════════════════════════════════════
   SUBSCRIBE SECTION
   ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   SUBSCRIBE SECTION — centered card, split layout
   ═══════════════════════════════════════════════════ */
.subscribe-section {
  background: var(--cream);
  padding: 3rem 2rem;
  position: relative;
}
.subscribe-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 55%, var(--purple) 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(61,47,160,0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.subscribe-card::before {
  content: '🍁';
  position: absolute;
  font-size: 14rem;
  opacity: 0.05;
  bottom: -3rem;
  right: -2rem;
  pointer-events: none;
  line-height: 1;
}
.subscribe-left {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.subscribe-right {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.subscribe-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.subscribe-title {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}
.subscribe-title span { color: #ffd700; }
.subscribe-sub {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.subscribe-perks {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.subscribe-perks li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.subscribe-perks li::before {
  content: '✓';
  background: rgba(255,215,0,0.2);
  color: #ffd700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.subscribe-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
}
.subscribe-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.subscribe-input-wrap input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: white;
  transition: border-color 0.2s;
}
.subscribe-input-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.subscribe-input-wrap input:focus { border-color: rgba(255,215,0,0.6); background: rgba(255,255,255,0.18); }
.subscribe-input-wrap button {
  width: 100%;
  padding: 0.85rem;
  background: #ffd700;
  color: var(--indigo-dark);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.subscribe-input-wrap button:hover { background: #ffe44d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.subscribe-input-wrap button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.subscribe-note {
  color: rgba(255,255,255,0.4);
  font-size: 0.73rem;
  margin-top: 0.6rem;
  text-align: center;
}
.subscribe-success {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  color: white;
  font-size: 0.95rem;
  text-align: center;
  display: none;
  line-height: 1.5;
}
.subscribe-success.visible { display: block; animation: fadeInUp 0.3s ease; }

@media (max-width: 700px) {
  .subscribe-card {
    grid-template-columns: 1fr !important;
    border-radius: 16px;
  }
  .subscribe-left {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 1.8rem 1.5rem 1.5rem !important;
  }
  .subscribe-right { padding: 1.5rem !important; }
  .subscribe-title { font-size: 1.5rem !important; }
  .subscribe-section { padding: 1.5rem 1rem !important; }
}

/* MAP STAT COUNTERS */
.map-stat-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: white;
  border-bottom: 1px solid var(--border);
}
.map-stat-counter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.map-stat-counter:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.map-stat-counter.active { border-color: currentColor; }
.map-stat-counter.counter-red   { background: #fff5f5; color: #c53030; }
.map-stat-counter.counter-green { background: #f0fff4; color: #276749; }
.map-stat-counter.counter-blue  { background: #ebf8ff; color: #2c5282; }
.map-stat-counter.counter-gray  { background: #f7fafc; color: #4a5568; }
.map-stat-counter.counter-red.active   { background: #fed7d7; }
.map-stat-counter.counter-green.active { background: #c6f6d5; }
.map-stat-counter.counter-blue.active  { background: #bee3f8; }
.map-stat-counter.counter-gray.active  { background: #e2e8f0; }
.map-stat-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-now   { background: #e53e3e; box-shadow: 0 0 0 0 rgba(229,62,62,0.4); animation: pulse-ring 1.6s ease-out infinite; }
.dot-upcoming { background: #38a169; }
.dot-active   { background: #3182ce; }
.dot-expired  { background: #a0aec0; }
.map-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}
.map-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .map-stat-counters { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem !important; padding: 0.6rem !important; }
  .map-stat-num { font-size: 1.2rem !important; }
  .map-stat-label { font-size: 0.7rem !important; }
  .map-stat-counter { padding: 0.5rem 0.6rem !important; gap: 0.4rem !important; }
}
@media (max-width: 600px) {
  .map-stat-counters { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem !important; padding: 0.5rem !important; }
  .map-stat-num { font-size: 1.1rem !important; }
  .map-stat-label { font-size: 0.68rem !important; }
  .map-stat-counter { padding: 0.45rem 0.5rem !important; gap: 0.35rem !important; }
}

/* Search toolbar — two rows always, looks fine on both */

/* Search bar — wider input on desktop keeps everything on one line */
@media (min-width: 769px) {
  .search-postal-input { min-width: 220px !important; }
}

/* ── Tier compare table header — white text, overrides theme CSS ── */
#gsf-app-wrapper #tierCompareTable thead th,
#gsf-app-wrapper #tierCompareTable thead th span,
#gsf-app-wrapper #tierCompareTable thead th * {
  color: white !important;
}
#gsf-app-wrapper #tierCompareTable thead th.muted-header,
#gsf-app-wrapper #tierCompareTable thead th.muted-header span,
#gsf-app-wrapper #tierCompareTable thead th.muted-header * {
  color: rgba(255,255,255,0.6) !important;
}

/* ── Tier modal: Most Popular banner — white text forced ── */
#gsf-app-wrapper #tierModal .tier-popular-banner {
  color: white !important;
}

/* ── Tier 1 Select button hover — white text forced ── */
#gsf-app-wrapper #tierBtn1:hover {
  background: #3d2fa0 !important;
  color: white !important;
}

/* ── Compare table: price row sub-text and strikethrough ── */
#gsf-app-wrapper #tierCompareTable td small {
  display: block;
  font-size: 0.68rem !important;
  color: #888 !important;
  font-weight: 400 !important;
  margin-top: 1px;
}
#gsf-app-wrapper #tierCompareTable td s {
  color: #aaa !important;
  font-size: 0.75rem !important;
  margin-right: 2px;
}

/* ── Terms of Use link in consent checkbox — force underline ── */
#gsf-app-wrapper #consentSection a {
  text-decoration: underline !important;
  color: var(--indigo) !important;
}
