/* ── Custom Properties ── */
:root {
  --green-dark:   #2d6a4f;
  --green-mid:    #40916c;
  --green-light:  #d8f3dc;
  --blue-dark:    #1e3a5f;
  --blue-mid:     #457b9d;
  --blue-light:   #e0f0ff;
  --sand:         #f4a261;
  --sand-light:   #fef3e2;
  --bg:           #f8f6f0;
  --surface:      #ffffff;
  --border:       #e0ddd5;
  --text:         #2c2c2c;
  --text-muted:   #6b6b6b;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.14);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Header ── */
#app-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand h1 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.header-brand .tagline { font-size: 0.75rem; opacity: 0.8; }

/* ── Auth header area ── */
.auth-header-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.auth-signin-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.auth-signin-btn:hover { background: rgba(255,255,255,0.25); }

.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.user-chip:hover { background: rgba(255,255,255,0.2); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-mid);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-name { font-size: 0.8rem; font-weight: 600; color: #fff; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.user-menu-email {
  padding: 10px 14px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}
.user-menu-item:hover { background: var(--bg); }

/* ── Login modal ── */
.login-modal {
  max-width: 380px;
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
}
.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.login-brand { margin-bottom: 24px; }
.login-logo { font-size: 2.2rem; margin-bottom: 10px; }
.login-title { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.login-subtitle { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.login-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.login-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
.login-provider-btn:hover { background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.login-provider-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.login-apple-btn { background: #000; color: #fff; border-color: #000; }
.login-apple-btn:hover { background: #1a1a1a; }

.login-skip { margin-top: 4px; }
.login-skip-btn { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.weather-widget {
  flex: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.weather-day {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 7px 14px;
  text-align: center;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.weather-day:hover { background: rgba(255,255,255,0.22); }
.weather-day .w-label { font-size: 0.62rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.weather-day .w-temp { font-size: 1.05rem; font-weight: 700; }
.weather-loading { font-size: 0.8rem; opacity: 0.7; }
.icon-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  color: #fff;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Section Nav ── */
#section-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 57px;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-link {
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--green-dark); }
.nav-link.active { color: var(--green-dark); border-bottom-color: var(--green-dark); }
@media (max-width: 600px) {
  #section-nav { top: 56px; }
  .nav-link { padding: 10px 16px; font-size: 0.82rem; }
}

/* ── Main Layout ── */
main { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

/* ── Sections ── */
.section { padding: 32px 0 0; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section h2 { font-size: 1.4rem; color: var(--blue-dark); margin-bottom: 20px; }
.section-header h2 { margin-bottom: 0; }
.season-badge {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* ── Plan Form ── */
.plan-form {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--blue-dark); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-season-group { display: flex; flex-direction: column; gap: 6px; }
.activity-season-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-season-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.checkbox-pill input[type="checkbox"] { display: none; }
.checkbox-pill span {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
  user-select: none;
  color: var(--text-muted);
}
.checkbox-pill span:hover { border-color: var(--green-mid); color: var(--green-dark); background: var(--green-light); }
.checkbox-pill input:checked + span {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border-color: #2d6a4f;
  color: #fff;
  box-shadow: 0 2px 6px rgba(45,106,79,0.25);
}
.toggle-group { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); width: fit-content; }
.toggle-group input[type="radio"] { display: none; }
.toggle-group label {
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: all 0.15s;
}
.toggle-group label:last-of-type { border-right: none; }
.toggle-group input:checked + label { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.select-input {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  min-width: 160px;
}
.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  resize: vertical;
}
.text-input:focus, .select-input:focus { outline: none; border-color: var(--green-dark); }
.btn-primary {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(45,106,79,0.3);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--border); cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.btn-secondary {
  background: var(--surface);
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--green-light); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ── Plan Results ── */
.plan-results {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.plan-results h3 { color: var(--blue-dark); margin-bottom: 12px; }
.plan-weather-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-weather-day { background: var(--green-light); color: var(--text); }
.plan-weather-day .w-label { opacity: 1; color: var(--green-dark); }
.plan-weather-day .w-precip { font-size: 0.75rem; color: var(--text-muted); }
.recommendation-card {
  border-left: 4px solid var(--green-mid);
  background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px;
  margin-bottom: 12px;
}
.recommendation-card h4 { color: var(--green-dark); margin-bottom: 4px; }
.recommendation-card .day-badge {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.checklist-section { margin-top: 20px; }
.checklist-section h4 { color: var(--blue-dark); margin-bottom: 10px; font-size: 1rem; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.food-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 8px; }
.food-table th { background: var(--green-light); padding: 8px 12px; text-align: left; color: var(--green-dark); }
.food-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); }
.food-table tr:last-child td { border-bottom: none; }

/* ── Search & Filter Bar ── */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.search-input:focus { outline: none; border-color: var(--green-dark); }
.filter-select {
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
}
.filter-select:focus { outline: none; border-color: var(--green-dark); }
.filter-toggle {
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s;
}
.filter-toggle.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.results-count { font-size: 0.8rem; color: var(--text-muted); align-self: center; padding: 0 4px; }

/* ── Distance Slider ── */
.filter-dist-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  min-width: 170px;
}
.dist-slider-icon { font-size: 0.8rem; flex-shrink: 0; }
.distance-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.distance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.distance-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.distance-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green-dark);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.filter-dist-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}

/* ── Cards Grid ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.location-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.13); }
.card-image {
  height: 160px;
  background: linear-gradient(160deg, #2d6a4f, #74c69d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Location type gradients */
.card-img-park         { background: linear-gradient(160deg, #1b4332 0%, #40916c 55%, #95d5b2 100%); }
.card-img-trail        { background: linear-gradient(160deg, #2d5a27 0%, #52883e 55%, #a7c957 100%); }
.card-img-conservation { background: linear-gradient(160deg, #0a3322 0%, #2d6a4f 60%, #74c69d 100%); }
.card-img-beach        { background: linear-gradient(160deg, #0077b6 0%, #00b4d8 55%, #ade8f4 100%); }
.card-img-lake         { background: linear-gradient(160deg, #023e8a 0%, #0096c7 55%, #90e0ef 100%); }
.card-img-river        { background: linear-gradient(160deg, #1d3557 0%, #457b9d 60%, #a8dadc 100%); }
.card-img-winter       { background: linear-gradient(160deg, #1d2d6e 0%, #4361ee 55%, #b5c7f5 100%); }

.card-image-icon {
  font-size: 4rem;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.2));
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.location-card:hover .card-image-icon { transform: scale(1.12); }
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.badge-local { background: var(--green-dark); color: #fff; }
.badge-daytrip { background: var(--blue-mid); color: #fff; }
.badge-free { background: rgba(212,237,218,0.95); color: #155724; }
.badge-paid { background: rgba(255,243,205,0.95); color: #856404; }
.badge-parks { background: rgba(204,229,255,0.95); color: #004085; }
.badge-reservation { background: rgba(248,215,218,0.95); color: #721c24; }
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  z-index: 2;
}
.card-fav-btn:hover { transform: scale(1.18); background: rgba(255,255,255,1); }
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--blue-dark); line-height: 1.3; }
.card-distance {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.dist-pin { font-size: 0.7rem; }

/* Trail row — card */
.card-trail {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  font-size: 0.75rem;
}
.trail-icon { font-size: 0.8rem; }
.trail-km { color: var(--text-main); font-weight: 600; }
.trail-diff {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  padding: 1px 7px;
}
.trail-diff-easy     { background: #d8f3dc; color: #1b4332; }
.trail-diff-moderate { background: #fff3cd; color: #7d5a00; }
.trail-diff-hard     { background: #fde8e8; color: #7b1f1f; }

/* Trail row — modal */
.detail-trail .trail-detail-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.trail-detail-km { font-size: 1rem; font-weight: 700; color: var(--text-main); }

.card-activities { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.activity-icon {
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.72rem;
  background: var(--bg);
  color: var(--text-muted);
  white-space: nowrap;
}
.activity-icon-water   { background: #dff3ff; color: #0077b6; }
.activity-icon-nature  { background: #e8f5e9; color: #2d6a4f; }
.activity-icon-sport   { background: #fff3e0; color: #c2501f; }
.activity-icon-winter  { background: #e8eaf6; color: #3949ab; }
.activity-icon-cycling { background: #fffde7; color: #b45309; }
.card-meta { display: flex; gap: 8px; align-items: center; margin-top: auto; font-size: 0.78rem; color: var(--text-muted); }
.rating-stars { font-size: 0.85rem; }
.rating-value { font-weight: 600; color: var(--text); }
.crowd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.crowd-quiet { background: #28a745; }
.crowd-moderate { background: #ffc107; }
.crowd-busy { background: #dc3545; }
.crowd-label { text-transform: capitalize; }
.dog-icon { font-size: 0.9rem; margin-left: 2px; }

/* ── Empty State ── */
.empty-state { color: var(--text-muted); font-style: italic; padding: 16px 0; }

/* ── Detail Modal ── */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-header h3 { font-size: 1.2rem; color: var(--blue-dark); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.modal-body { padding: 16px 24px 24px; }
.detail-field { margin-bottom: 12px; font-size: 0.9rem; }
.detail-field strong { color: var(--blue-dark); display: block; margin-bottom: 2px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}
.detail-link:hover { background: #c0ddf5; }
.notes-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  margin-top: 4px;
}
.notes-input:focus { outline: none; border-color: var(--green-dark); }
.visited-input {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 4px;
}
.visited-input:focus { outline: none; border-color: var(--green-dark); }
.btn-save-notes {
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-save-notes:hover { background: var(--green-mid); }

/* ── Settings Panel ── */
.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  overflow-y: auto;
  padding: 24px;
}
.settings-panel h3 { color: var(--blue-dark); margin-bottom: 4px; font-size: 1.1rem; }
.settings-subtitle { font-size: 0.83rem; color: var(--text-muted); margin: 0 0 20px; display: block; }
.settings-field { margin-bottom: 20px; }
.settings-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: var(--blue-dark); }
.pref-who-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pref-act-chips { flex-wrap: wrap; }
.pref-who-chip { background: var(--surface); border: 2px solid var(--border); border-radius: 999px; padding: 7px 18px; font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--text); }
.pref-who-chip.pref-who-selected { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; font-weight: 600; }
.pref-dog-chip { background: var(--surface); border: 2px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; cursor: pointer; transition: all 0.15s; color: var(--text); white-space: nowrap; }
.pref-dog-chip.pref-dog-selected { background: #fff3e0; border-color: #f59e0b; color: #92400e; font-weight: 600; }
.pref-dist-select { width: 100%; padding: 9px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; background: var(--surface); color: var(--text); font-family: var(--font); }
.btn-close-settings {
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.btn-save-settings {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  margin-bottom: 8px;
}
.btn-save-settings:hover { background: var(--green-mid); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .header-content { flex-wrap: wrap; }
  .header-brand { flex: 0 0 auto; }
  .weather-widget { order: 3; width: 100%; }
  main { padding: 0 12px 40px; }
  .locations-grid { grid-template-columns: 1fr; }
  .settings-panel { width: 100%; }
}

/* ── Recent Plans ── */
.recent-plans { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.recent-plans-toggle { background: none; border: none; padding: 6px 4px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; transition: color 0.15s; cursor: pointer; }
.recent-plans-toggle:hover { color: var(--green-dark); }
.recent-plans-chevron { margin-left: auto; font-size: 0.8rem; transition: transform 0.2s; display: inline-block; }
.recent-plans-toggle[aria-expanded="true"] .recent-plans-chevron { transform: rotate(180deg); }
.recent-plans-list { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.recent-plan-row { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.82rem; color: var(--text); display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; transition: background 0.15s, border-color 0.15s; cursor: pointer; overflow: hidden; }
.recent-plan-row:hover { background: var(--green-light); border-color: var(--green-mid); }
.recent-plan-date { font-weight: 600; color: var(--blue-dark); white-space: nowrap; flex-shrink: 0; }
.recent-plan-dot { color: var(--border); flex-shrink: 0; }
.recent-plan-activities { color: var(--green-dark); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.recent-plan-locations { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ── Weather Badges ── */
.badge-weather-risk { background: linear-gradient(135deg, #f4a261, #e76f51); color: #fff; }
.badge-weather-good { background: linear-gradient(135deg, #b7e4c7, #52b788); color: #1b4332; }
.modal-weather-badges { padding: 0 24px 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge-weather-risk, .badge-weather-good { animation: badge-fadein 0.2s ease; }
@keyframes badge-fadein { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ── Browse Header ── */
.section-header-browse { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-header-browse h2 { margin: 0; }
.browse-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-surprise { padding: 8px 16px; font-size: 0.85rem; }
.view-toggle { display: flex; border: 2px solid var(--green-dark); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle-btn { background: var(--surface); color: var(--green-dark); border: none; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; transition: background 0.15s, color 0.15s; cursor: pointer; border-right: 1px solid var(--green-dark); }
.view-toggle-btn:last-child { border-right: none; }
.view-toggle-btn.active { background: var(--green-dark); color: #fff; }
.view-toggle-btn:not(.active):hover { background: var(--green-light); }
.map-container { height: 520px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.map-popup { padding: 12px 14px; min-width: 160px; }
.map-popup-name { font-weight: 700; font-size: 0.9rem; color: #1e3a5f; margin-bottom: 2px; }
.map-popup-distance { font-size: 0.75rem; color: #6b6b6b; margin-bottom: 8px; }
.map-popup-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.map-popup-open { display: block; width: 100%; padding: 7px 0; background: #2d6a4f; color: #fff; border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.map-popup-open:hover { background: #40916c; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; }
.leaflet-popup-content { margin: 0 !important; }
@media (max-width: 600px) {
  .browse-header-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
  .map-container { height: 360px; }
  .section-header-browse { gap: 8px; }
}

/* ── Surprise Me & Toast ── */
.card-highlight { box-shadow: 0 0 0 3px #40916c, 0 8px 24px rgba(0,0,0,0.14) !important; transform: translateY(-2px); animation: card-glow 0.3s ease forwards; }
@keyframes card-glow { 0% { box-shadow: 0 0 0 0px #40916c; } 50% { box-shadow: 0 0 0 5px #40916c; } 100% { box-shadow: 0 0 0 3px #40916c; } }
#toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.toast { background: var(--blue-dark); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.14); opacity: 0; animation: toast-show 3s ease forwards; white-space: nowrap; }
@keyframes toast-show { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: translateY(0); } 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 600px) { #toast-container { bottom: 16px; left: 12px; right: 12px; transform: none; align-items: stretch; } .toast { text-align: center; white-space: normal; } }

/* ── Help Button ── */
#help-btn {
  font-size: 1rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
#help-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Help Modal ── */
#help-overlay[hidden] { display: none; }
.help-modal { max-width: 520px; }
.help-body { display: flex; flex-direction: column; gap: 18px; }
.help-section { display: flex; gap: 14px; align-items: flex-start; }
.help-icon { font-size: 1.4rem; flex-shrink: 0; width: 32px; text-align: center; margin-top: 2px; }
.help-section strong { display: block; font-weight: 700; color: var(--blue-dark); margin-bottom: 3px; font-size: 0.95rem; }
.help-section p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.help-section em { color: var(--green-dark); font-style: normal; font-weight: 600; }

/* ── Bottom Nav (mobile only) ── */
#bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  #section-nav { display: none; }

  #bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.09);
  }

  .bottom-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 3px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-link.active {
    color: var(--green-dark);
  }

  .bottom-nav-icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .bottom-nav-label {
    font-size: 0.68rem;
    letter-spacing: 0.01em;
  }

  /* Extra bottom padding so content isn't hidden behind nav */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Bottom Sheet Modal (mobile) ── */
.modal-drag-handle {
  display: none;
}

@media (max-width: 768px) {
  #modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  #detail-modal {
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    animation: sheet-up 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  @keyframes sheet-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .modal-drag-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 12px;
    flex-shrink: 0;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }
}

/* ── Share Button ── */
.btn-share { display: inline-flex; align-items: center; gap: 6px; }

/* ── Sun Times ── */
.detail-sun-times {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.sun-times-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #b45309;
  margin-bottom: 8px;
}
.sun-times-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
}
.sun-day {
  font-weight: 600;
  color: #92400e;
  min-width: 26px;
}
.sun-item { color: #78350f; }

/* ── Near Me ── */
.near-me-section { margin-bottom: 12px; }
.near-me-enable-btn {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(45,106,79,0.25);
  transition: filter 0.15s, transform 0.15s;
}
.near-me-enable-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.near-me-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.near-me-label { font-weight: 700; font-size: 0.9rem; color: var(--green-dark); }
.near-me-close {
  background: none; border: none; font-size: 1rem;
  color: var(--text-muted); cursor: pointer; padding: 0 4px;
}
.near-me-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.near-me-strip::-webkit-scrollbar { display: none; }
.near-me-card {
  flex: 0 0 160px;
  background: linear-gradient(135deg, var(--green-light), #f0faf4);
  border: 1px solid #b7e4c7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.near-me-card:hover { box-shadow: 0 2px 10px rgba(45,106,79,0.18); }
.near-me-name { font-weight: 600; font-size: 0.82rem; color: var(--blue-dark); line-height: 1.3; margin-bottom: 4px; }
.near-me-dist { font-size: 0.75rem; color: var(--green-dark); margin-bottom: 4px; }
.near-me-acts { font-size: 0.78rem; color: var(--text-muted); }

/* ── Browse Section Header ── */
.browse-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
  margin-bottom: 4px;
}
.browse-section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

/* ── Saved Section ── */
.saved-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}
.saved-plans-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.saved-plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
}
.saved-plan-icon { font-size: 1.4rem; flex-shrink: 0; }
.saved-plan-info { flex: 1; min-width: 0; }
.saved-plan-parks { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-plan-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; text-transform: capitalize; }
.saved-plan-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.saved-plan-view-btn {
  background: none;
  border: 1.5px solid var(--green-mid);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.saved-plan-view-btn:hover { background: var(--green-mid); color: #fff; }
.saved-plan-del-btn {
  background: none;
  border: 1.5px solid #e0e0e0;
  color: var(--text-muted);
  font-size: 0.78rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.saved-plan-del-btn:hover { border-color: #e53935; color: #e53935; background: #fff0f0; }

/* ── Fav card with remove button ── */
.fav-card-wrapper { position: relative; }
.fav-remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.fav-card-wrapper:hover .fav-remove-btn { opacity: 1; }
.fav-remove-btn:hover { background: rgba(220, 50, 50, 0.85); }

/* ── Along the Way (restaurants, attractions, overnight) ── */
.along-way-section h4 { margin-bottom: 12px; }
.along-way-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.along-way-card {
  background: linear-gradient(135deg, #f8fffe, #f0faf4);
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 12px 14px;
}
.along-way-name { font-weight: 700; font-size: 0.9rem; color: var(--blue-dark); margin-bottom: 4px; }
.along-way-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; text-transform: capitalize; }
.along-way-dist { font-size: 0.78rem; color: var(--green-dark); font-weight: 500; margin-bottom: 4px; }
.along-way-tip { font-size: 0.8rem; color: var(--text-dark); line-height: 1.4; font-style: italic; }

/* ── See All Row ── */
.see-all-row { grid-column: 1 / -1; text-align: center; padding: 12px 0 4px; }
.see-all-btn {
  background: none;
  border: 2px solid var(--green-mid);
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.see-all-btn:hover { background: var(--green-mid); color: #fff; }

/* ── AI Chat ── */
.chat-fab {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,106,79,0.4);
  z-index: 900;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-fab:hover { background: var(--green-mid); transform: scale(1.08); }
.chat-fab.chat-fab-active { background: var(--blue-dark); }
@media (min-width: 769px) { .chat-fab { bottom: 28px; } }

.chat-panel {
  position: fixed;
  bottom: 152px;
  right: 20px;
  width: 340px;
  max-height: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 899;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
@media (min-width: 769px) { .chat-panel { bottom: 92px; } }
@media (max-width: 400px) { .chat-panel { right: 8px; left: 8px; width: auto; } }

.chat-panel-header {
  background: var(--green-dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chat-panel-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.chat-message {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-message-user {
  background: var(--green-dark);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-message-assistant {
  background: var(--green-light);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-thinking { opacity: 0.6; font-style: italic; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.88rem;
  outline: none;
  font-family: var(--font);
}
.chat-input:focus { border-color: var(--green-mid); }
.chat-send-btn {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chat-send-btn:hover { background: var(--green-mid); }
.chat-send-btn:disabled { opacity: 0.6; cursor: default; }

/* ── Friday Notification ── */
.settings-notify { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.settings-hint { font-size: 0.82rem; color: var(--text-muted); margin: 4px 0 10px; }
.btn-notify-on {
  background: var(--green-dark); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.btn-notify-on:hover { background: var(--green-mid); }
.btn-notify-off {
  background: none; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 16px; font-size: 0.85rem; cursor: pointer;
}
.btn-notify-off:hover { border-color: #c0392b; color: #c0392b; }

/* ── Visit Log ── */
.badge-visited { background: #e8f5e9; color: #2d6a4f; border: 1px solid #a5d6a7; }
.visited-date { font-size: 0.88rem; color: var(--green-dark); font-weight: 600; }
.btn-mark-visited {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-mark-visited:hover { background: var(--green-mid); }
.btn-remove-visit {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 0 0 8px;
}
.btn-remove-visit:hover { color: #c0392b; }

/* ── Location Discovery ── */
.location-discovery { display: flex; align-items: center; gap: 6px; }
.icon-btn-green {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
  transition: background 0.15s;
  flex-shrink: 0;
}
.icon-btn-green:hover { background: var(--green-mid); }
.icon-btn-green:disabled { background: var(--border); }
.city-input {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 150px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}
.city-input:focus { outline: none; border-color: var(--green-dark); }
.btn-find { padding: 8px 14px; font-size: 0.85rem; }
.loading-nearby {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  animation: pulse-loading 1.6s ease-in-out infinite;
}
.loading-nearby-spinner { font-size: 1.4rem; margin-right: 8px; display: inline-block; animation: spin-slow 2s linear infinite; }
@keyframes pulse-loading { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.nearby-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  gap: 12px;
}
.nearby-banner strong { color: var(--green-dark); }
.nearby-banner-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  flex-shrink: 0;
}
.nearby-banner-clear:hover { color: var(--blue-dark); }
@media (max-width: 768px) {
  .location-discovery { width: 100%; }
  .city-input { flex: 1; width: auto; min-width: 0; }
  .section-header-browse { flex-wrap: wrap; }
  .browse-header-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
}

/* ── Plan Step 1: Location Picker ── */
.plan-step-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.plan-picker-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.picker-tab {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.picker-tab.active { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 370px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 2px;
}
.plan-pick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-pick-card:hover { border-color: var(--green-dark); box-shadow: 0 2px 8px rgba(45,106,79,0.12); }
.plan-pick-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.plan-pick-info { flex: 1; min-width: 0; }
.plan-pick-name { font-weight: 700; font-size: 0.88rem; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-pick-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.plan-pick-select-btn {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.plan-pick-select-btn:hover { opacity: 0.85; }
.picker-empty { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 24px 0; }
.suggest-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

/* ── Plan Step 2: Selected Park Banner ── */
.plan-selected-park {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.plan-selected-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.plan-selected-info { flex: 1; min-width: 0; }
.plan-selected-name { font-weight: 800; font-size: 1rem; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-selected-meta { font-size: 0.79rem; color: var(--text-muted); margin-top: 3px; }
.plan-change-btn {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid var(--green-dark);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.plan-change-btn:hover { background: #fff; }

/* ── Report Card ── */
.report-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.report-grade {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  min-width: 44px;
  text-align: center;
  border-radius: 10px;
  padding: 6px 10px;
  color: #fff;
}
.grade-a { background: #2d6a4f; }
.grade-b { background: #2e86c1; }
.grade-c { background: #ca6f1e; }
.grade-d { background: #c0392b; }
.report-card-body { flex: 1; }
.report-card-label { font-weight: 700; font-size: 0.95rem; color: var(--text-main); margin-bottom: 4px; }
.report-card-notes { font-size: 0.8rem; color: var(--text-muted); }

/* Card grade badge */
.badge-grade {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.02em;
}
.badge-grade.grade-a { background: #2d6a4f; }
.badge-grade.grade-b { background: #2e86c1; }
.badge-grade.grade-c { background: #ca6f1e; }
.badge-grade.grade-d { background: #c0392b; }

/* ── Conditions ── */
.conditions-section { margin-bottom: 14px; }
.conditions-title { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.conditions-list { display: flex; flex-direction: column; gap: 6px; }
.condition-item {
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.condition-good   { background: #d8f3dc; color: #1b4332; }
.condition-caution { background: #fff3cd; color: #7d5a00; }
.condition-warn   { background: #fde8e8; color: #7b1f1f; }
.condition-info   { background: #e8f4fd; color: #154360; }
.tick-link { color: inherit; font-size: 0.8rem; margin-left: 4px; }

/* ── Accessibility Badges ── */
.access-section { margin-bottom: 10px; }
.access-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.access-badge {
  font-size: 0.78rem;
  background: #eaf3fb;
  color: #1a4f72;
  border: 1px solid #aed6f1;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.access-unknown { font-size: 0.82rem; color: var(--text-muted); }

/* ── Visit Log ── */
.visit-log-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.visit-log-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 10px;
}
.visit-log-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form-row-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.star-rating-input { display: flex; gap: 3px; }
.star-btn {
  font-size: 1.3rem;
  cursor: pointer;
  color: #ccc;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
.star-btn.lit { color: #f4c430; }
.star-btn:hover { transform: scale(1.2); }
.visit-history { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.visit-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.visit-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.visit-entry-date { font-size: 0.82rem; color: var(--text-muted); flex: 1; }
.visit-entry-stars { font-size: 0.82rem; color: #f4c430; }
.visit-entry-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.visit-entry-delete:hover { background: #fde8e8; color: #c0392b; }
.visit-entry-notes { font-size: 0.83rem; color: var(--text-main); line-height: 1.4; white-space: pre-wrap; }
.visit-empty { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ── Day Itinerary ── */
.itinerary-section { border-left: 3px solid var(--green-dark); padding-left: 14px; }
.itinerary-list { display: flex; flex-direction: column; gap: 0; }
.itinerary-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.itinerary-item:last-child { border-bottom: none; }
.itinerary-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  min-width: 62px;
  padding-top: 2px;
  flex-shrink: 0;
}
.itinerary-body { flex: 1; }
.itinerary-activity { font-size: 0.88rem; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.itinerary-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.itinerary-notes { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; font-style: italic; }

/* ── Plan Form v2: chips + who's coming ── */
.plan-nlp-row { margin-bottom: 14px; }
.plan-nlp-input {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.15s;
}
.plan-nlp-input:focus { outline: none; border-color: var(--green-dark); }
.plan-nlp-input::placeholder { color: var(--text-muted); }

.plan-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 14px 0 9px;
}

.plan-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 2px; }
.plan-chip {
  padding: 6px 13px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
}
.plan-chip:hover { border-color: var(--green-mid); color: var(--green-dark); background: var(--green-light); }
.plan-chip.selected {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border-color: #2d6a4f;
  color: #fff;
  box-shadow: 0 2px 6px rgba(45,106,79,0.22);
}

.plan-who-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.plan-group-chips { display: flex; gap: 7px; }
.plan-who-chip {
  padding: 7px 15px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  user-select: none;
}
.plan-who-chip:hover { border-color: var(--blue-mid); color: var(--blue-dark); background: var(--blue-light); }
.plan-who-chip.selected { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.plan-dog-chip {
  padding: 7px 13px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  margin-left: auto;
}
.plan-dog-chip:hover { border-color: #d97706; color: #92400e; background: #fff7ed; }
.plan-dog-chip.selected { background: #fff7ed; border-color: #d97706; color: #92400e; }

.plan-kids-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.plan-kids-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.plan-kids-row[hidden] { display: none; }

.plan-date-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 14px 0 0;
}
.plan-date-field { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-date-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.plan-date-input { width: 100%; }

.plan-filters-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-filters-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
.plan-filters-btn.active { border-color: var(--green-dark); color: var(--green-dark); background: var(--green-light); }

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 4px;
}
.filter-count-badge[hidden] { display: none; }

.plan-filters-panel { margin-top: 10px; }
.plan-filters-panel[hidden] { display: none; }
.plan-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.plan-filter-item { display: flex; flex-direction: column; gap: 4px; }
.plan-filter-item label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.plan-mood-input {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  resize: none;
  transition: border-color 0.15s;
}
.plan-mood-input:focus { outline: none; border-color: var(--green-dark); }
.plan-mood-input::placeholder { color: var(--text-muted); }

.plan-generate-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(45,106,79,0.32);
  letter-spacing: 0.01em;
}
.plan-generate-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.plan-generate-btn:active { transform: translateY(0); }
.plan-generate-btn:disabled { background: var(--border); cursor: not-allowed; box-shadow: none; filter: none; transform: none; color: var(--text-muted); }

.plan-pinned-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.plan-pinned-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.plan-pinned-info { flex: 1; min-width: 0; }
.plan-pinned-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); opacity: 0.75; }
.plan-pinned-name { font-weight: 800; font-size: 0.93rem; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-pinned-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.plan-pinned-clear {
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(45,106,79,0.35);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.plan-pinned-clear:hover { background: #fff; color: #c0392b; border-color: #c0392b; }

.plan-generating-state {
  margin-top: 12px;
  text-align: center;
  min-height: 24px;
}
.plan-generating-msg {
  font-size: 0.88rem;
  color: var(--green-dark);
  font-weight: 500;
  animation: gen-pulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes gen-pulse { 0%,100%{opacity:0.45} 50%{opacity:1} }

/* ── Browse Filter Bar (collapsed) ── */
.search-filter-bar { padding: 14px 16px; }
.browse-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.browse-filter-row .search-input { flex: 1; min-width: 0; }
.browse-filters-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.browse-filters-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
.browse-filters-btn.active { border-color: var(--green-dark); color: var(--green-dark); background: var(--green-light); }
.browse-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 4px;
}
.browse-filter-sheet { margin-top: 10px; }
.browse-filter-sheet[hidden] { display: none; }
.browse-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.browse-filter-item { display: flex; flex-direction: column; gap: 4px; }
.browse-filter-item label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.browse-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.browse-results-row { display: flex; align-items: center; justify-content: flex-end; margin-top: 6px; }

/* ── Enhanced Empty States ── */
.empty-state-card {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state-card .empty-icon { font-size: 2.8rem; margin-bottom: 12px; }
.empty-state-card h3 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 6px; font-weight: 700; }
.empty-state-card p { font-size: 0.86rem; line-height: 1.5; max-width: 280px; margin: 0 auto 16px; }

/* ── Header Overflow Menu ── */
.overflow-menu-wrapper { position: relative; }
.overflow-menu-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.overflow-menu-btn:hover { background: rgba(255,255,255,0.28); }
.overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}
.overflow-menu[hidden] { display: none; }
.overflow-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.overflow-menu-item:hover { background: var(--bg); }

/* ── 3-Step Help ── */
.help-steps { display: flex; flex-direction: column; }
.help-step {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.help-step:last-child { border-bottom: none; padding-bottom: 4px; }
.help-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.help-step-title { font-weight: 700; color: var(--blue-dark); font-size: 0.98rem; margin-bottom: 6px; }
.help-step-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.help-step-desc em { color: var(--green-dark); font-style: normal; font-weight: 600; }

/* ── Help Grade Section ── */
.help-grade-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.help-grade-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.help-grade-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.help-grade-rows { display: flex; flex-direction: column; gap: 10px; }
.help-grade-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.help-grade-row strong { color: var(--text-main); }
.help-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}
.help-grade-badge.grade-a { background: #2d9d5c; }
.help-grade-badge.grade-b { background: #3b82f6; }
.help-grade-badge.grade-c { background: #f59e0b; }
.help-grade-badge.grade-d { background: #ef4444; }

/* ── Recent Plans limit label ── */
.recent-plans-limit { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; margin-left: 2px; }

/* ── Section sub-label (indented, lighter) ── */
.plan-section-label-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* ── Accommodation row ── */
.plan-accommodation-row { margin-top: 4px; }

/* ── Drive / budget / trip chips — inherits .plan-chip styles ── */
.plan-drive-chips, .plan-budget-chips, .plan-trip-chips, .plan-accom-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.plan-drive-chips::-webkit-scrollbar,
.plan-budget-chips::-webkit-scrollbar,
.plan-trip-chips::-webkit-scrollbar,
.plan-accom-chips::-webkit-scrollbar { display: none; }

/* ── Discover bar (replaces plan-form) ── */
.discover-bar {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.discover-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.discover-section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.discover-location-row {
  margin-top: 12px;
}

/* ── Sticky generate CTA bar ── */
.discover-generate-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-height, 64px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 560px;
  background: var(--green-dark, #1b4332);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  z-index: 900;
}

.discover-generate-selected {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discover-selected-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.discover-generate-info {
  flex: 1;
  min-width: 0;
}

.discover-generate-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  margin-bottom: 2px;
}

.discover-generate-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-clear-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.discover-clear-btn:hover { background: rgba(255,255,255,0.22); }

.discover-generate-main-btn {
  width: 100%;
  margin: 0;
  font-size: 1rem;
  padding: 13px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .discover-generate-bar {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .discover-generate-main-btn {
    width: auto;
    flex-shrink: 0;
    padding: 12px 24px;
  }
}
