*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1a3a0f;
  --green-mid: #2d5a1b;
  --green-light: #4a8c2a;
  --green-accent: #6ab04c;
  --tan: #f5efe6;
  --tan-dark: #e8ddd0;
  --brown: #8b5e3c;
  --text: #1e1e1e;
  --text-light: #555;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f0ebe3;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}
.logo { display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.logo-img { height: 240px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35)); }
.tagline { font-size: .95rem; opacity: .85; letter-spacing: .5px; }

/* TABS */
.tabs {
  display: flex;
  background: var(--green-dark);
  padding: 0 1rem;
  overflow-x: auto;
  gap: .25rem;
}
.tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  padding: .9rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.tab:hover { color: white; }
.tab.active {
  color: var(--green-accent);
  border-bottom-color: var(--green-accent);
}

/* MAIN */
main { flex: 1; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; width: 100%; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* SEARCH CARD */
.search-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.search-card h2 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 1rem; }
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
.search-row input, .search-row select {
  flex: 1;
  min-width: 140px;
  padding: .6rem .9rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  background: white;
  transition: border-color .2s;
}
.search-row input:focus, .search-row select:focus {
  outline: none;
  border-color: var(--green-light);
}
.btn-primary {
  background: var(--green-mid);
  color: white;
  border: none;
  padding: .65rem 1.4rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* RESULTS GRID */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* CAMP CARD */
.camp-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.camp-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.camp-card-header {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: white;
  padding: 1rem;
}
.camp-card-header h3 { font-size: 1rem; margin-bottom: .2rem; }
.camp-card-header .state-badge {
  font-size: .75rem;
  background: rgba(255,255,255,.25);
  padding: .15rem .5rem;
  border-radius: 20px;
  display: inline-block;
}
.camp-card-body { padding: 1rem; }
.camp-detail { display: flex; gap: .4rem; font-size: .88rem; margin-bottom: .4rem; color: var(--text-light); }
.camp-detail strong { color: var(--text); }
.camp-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.btn-book {
  background: var(--green-accent);
  color: white;
  border: none;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-book:hover { background: var(--green-light); }
.btn-site { background: #1a73e8; }
.btn-site:hover { background: #1557b0; }
.btn-avail {
  background: transparent;
  color: var(--green-mid);
  border: 2px solid var(--green-mid);
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-avail:hover { background: var(--green-mid); color: white; }

/* FISH CARD */
.fish-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}
.fish-card:hover { transform: translateY(-3px); }
.fish-card-header {
  background: linear-gradient(135deg, #1a4a6e, #2e7fc4);
  color: white;
  padding: 1rem;
}
.fish-card-header h3 { font-size: 1rem; margin-bottom: .3rem; }
.water-badge {
  font-size: .75rem;
  background: rgba(255,255,255,.25);
  padding: .15rem .5rem;
  border-radius: 20px;
  display: inline-block;
  margin-right: .3rem;
}
.fish-card-body { padding: 1rem; }
.species-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.species-tag {
  background: #e8f4fd;
  color: #1a4a6e;
  font-size: .78rem;
  padding: .15rem .5rem;
  border-radius: 20px;
  font-weight: 600;
}
.fish-detail { font-size: .87rem; color: var(--text-light); margin-bottom: .35rem; }
.fish-detail strong { color: var(--text); }

/* GAS PRICES */
#gas-results { max-width: 700px; margin: 0 auto; }
.gas-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.gas-panel h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 1rem; }
.gas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.gas-item {
  background: var(--tan);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.gas-label { font-size: .8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.gas-price { font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.gas-unit { font-size: .75rem; color: var(--text-light); }
.gas-note {
  font-size: .82rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.gas-note a { color: var(--green-mid); }
.sample-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: .78rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: .8rem;
}

/* AI CHAT */
.ai-container { max-width: 800px; margin: 0 auto; }
.ai-header {
  background: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.ai-header h2 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: .3rem; }
.ai-header p { font-size: .9rem; color: var(--text-light); }
.ai-messages {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  min-height: 300px;
  max-height: 450px;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg.assistant { justify-content: flex-start; }
.msg-bubble {
  max-width: 80%;
  padding: .75rem 1rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.ai-msg.user .msg-bubble {
  background: var(--green-mid);
  color: white;
  border-bottom-right-radius: 4px;
}
.ai-msg.assistant .msg-bubble {
  background: var(--tan);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-msg.assistant .msg-bubble.loading { color: var(--text-light); font-style: italic; }
.ai-input-row {
  display: flex;
  gap: .6rem;
  background: white;
  border-radius: var(--radius);
  padding: .8rem;
  box-shadow: var(--shadow);
  margin-bottom: .8rem;
}
.ai-input-row textarea {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: .5rem .8rem;
  font-size: .95rem;
  resize: none;
  font-family: inherit;
  transition: border-color .2s;
}
.ai-input-row textarea:focus { outline: none; border-color: var(--green-light); }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sugg-label { font-size: .82rem; color: var(--text-light); }
.suggestion {
  background: white;
  border: 1px solid #ddd;
  color: var(--green-mid);
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}
.suggestion:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }

/* INFO / ERROR MESSAGES */
.info-msg {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.info-msg a { color: var(--green-mid); }
.error-msg {
  background: #fde8e8;
  border: 1px solid #f5a5a5;
  border-radius: 8px;
  padding: 1rem;
  font-size: .9rem;
  color: #9b2335;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}
.empty-state .icon { font-size: 3rem; margin-bottom: .8rem; }

/* AVAILABILITY BADGE */
.avail-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.avail-available { background: #d4edda; color: #155724; }
.avail-limited { background: #fff3cd; color: #856404; }
.avail-full { background: #f8d7da; color: #721c24; }

/* TRAVEL WIZARD */
.travel-wizard {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.wizard-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 1.8rem 2rem 1.4rem;
  color: white;
}
.wizard-header h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -.3px; }
.wizard-progress { display: flex; align-items: center; gap: .8rem; }
.wizard-bar { flex: 1; height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.wizard-fill { height: 100%; background: var(--green-accent); border-radius: 4px; transition: width .4s ease; }
#wizard-step-label { font-size: .82rem; color: rgba(255,255,255,.8); white-space: nowrap; }

.wizard-body { padding: 2rem; }

.wizard-question { animation: fadeSlide .3s ease; }
@keyframes fadeSlide { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.wizard-q-label { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; line-height: 1.3; }
.wizard-q-sub { font-size: .95rem; color: var(--text-light); margin-bottom: 1.5rem; }
.wizard-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.15rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 1.2rem;
  background: #fafafa;
}
.wizard-input:focus {
  outline: none;
  border-color: var(--green-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(74,140,42,.12);
}
.wizard-select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.1rem;
  color: var(--text);
  background: #fafafa;
  margin-bottom: 1.2rem;
  cursor: pointer;
}
.wizard-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.wizard-chip {
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: .65rem 1.3rem;
  font-size: 1rem;
  cursor: pointer;
  background: white;
  color: var(--text);
  transition: all .2s;
  font-weight: 500;
}
.wizard-chip:hover { border-color: var(--green-light); color: var(--green-mid); }
.wizard-chip.selected { background: var(--green-mid); color: white; border-color: var(--green-mid); box-shadow: 0 2px 8px rgba(45,90,27,.3); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; gap: .8rem; }
.wizard-nav .btn-primary { flex: 1; padding: 1rem; font-size: 1.1rem; border-radius: 10px; }
.wizard-answers-summary {
  background: var(--tan);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  border-left: 3px solid var(--green-accent);
}
.wizard-answer-tag { color: var(--green-dark); font-weight: 600; }
.wizard-answer-tag span { color: var(--text-light); font-weight: 400; }
.btn-back {
  background: transparent;
  border: 2px solid #ddd;
  color: var(--text-light);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-back:hover { border-color: var(--green-mid); color: var(--green-mid); }

/* TRAVEL PLAN OUTPUT */
.plan-hero { background: linear-gradient(135deg,var(--green-dark),var(--green-mid)); color:white; border-radius:8px; padding:1.2rem 1.5rem; margin-bottom:1.2rem; }
.plan-hero h2 { font-size:1.3rem; margin-bottom:.3rem; }
.plan-meta { font-size:.85rem; opacity:.85; }
.plan-section-title { color:var(--green-dark); font-size:1.05rem; margin:1.2rem 0 .4rem; border-bottom:2px solid var(--tan-dark); padding-bottom:.3rem; }
.plan-day-title { color:var(--green-mid); font-size:.97rem; margin:.8rem 0 .2rem; }
.plan-list { padding-left:1.2rem; margin:.3rem 0 .6rem; }
.plan-list li { margin:.25rem 0; font-size:.92rem; line-height:1.55; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.shake { animation: shake .3s ease; border-color:#e74c3c !important; }

.travel-plan-output {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 1rem;
}
.travel-plan-output h2 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 1rem; }
.travel-plan-body {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.travel-plan-body strong, .travel-plan-body b { color: var(--green-dark); }
.travel-plan-actions { display: flex; gap: .6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #eee; }

.travel-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}
.travel-loading .loading-icon { font-size: 2.5rem; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* TRIP TAB */
.trip-tab { position: relative; }
.trip-count {
  background: #e74c3c;
  color: white;
  font-size: .7rem;
  font-weight: 800;
  padding: .1rem .4rem;
  border-radius: 20px;
  margin-left: .3rem;
  vertical-align: middle;
}
.trip-count.hidden { display: none; }

.trip-header-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.trip-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.trip-name-label { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: .3rem; }
.trip-name-input {
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid #ddd;
  padding: .2rem .1rem;
  width: 280px;
  color: var(--green-dark);
  background: transparent;
  transition: border-color .2s;
}
.trip-name-input:focus { outline: none; border-bottom-color: var(--green-light); }
.trip-header-actions { display: flex; gap: .6rem; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { background: var(--green-mid); color: white; }
.btn-danger {
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-danger:hover { background: #e74c3c; color: white; }

.trip-dates-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .8rem 0;
  border-top: 1px solid #eee;
  margin-top: .8rem;
}
.trip-date-field { display: flex; flex-direction: column; }
.trip-date-input {
  font-size: .95rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: .4rem .6rem;
  color: var(--text);
  background: white;
  cursor: pointer;
  transition: border-color .2s;
}
.trip-date-input:focus { outline: none; border-color: var(--green-light); }
.trip-date-arrow { font-size: 1.2rem; color: var(--text-light); margin-top: 1.1rem; }
.trip-duration {
  margin-top: 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-mid);
  background: #e8f5e1;
  padding: .3rem .8rem;
  border-radius: 20px;
}

.trip-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: .8rem;
  border-top: 1px solid #eee;
}
.trip-stat { font-size: .88rem; color: var(--text-light); }
.trip-stat strong { color: var(--text); }

.trip-section { margin-bottom: 1.5rem; }
.trip-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.trip-section-title span { opacity: .6; font-size: .85rem; font-weight: 400; }

.trip-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.trip-item-info { flex: 1; }
.trip-item-name { font-weight: 700; font-size: .98rem; color: var(--text); margin-bottom: .2rem; }
.trip-item-meta { font-size: .83rem; color: var(--text-light); }
.trip-item-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 20px;
  display: inline-block;
  margin-right: .3rem;
}
.badge-campsite { background: #d4edda; color: #155724; }
.badge-statepark { background: #fde8cc; color: #7d4a00; }
.badge-fishing { background: #d0e8f5; color: #0a4d6e; }
.badge-gas { background: #f5f0d0; color: #5a4800; }
.badge-ai { background: #e8d5f5; color: #5a1d8a; }

.trip-section-empty {
  background: white;
  border-radius: var(--radius);
  border: 2px dashed var(--tan-dark);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-light);
  font-size: .88rem;
}
.trip-empty-icon { font-size: 1.3rem; flex-shrink: 0; }
.trip-empty-hint { flex: 1; }
.trip-empty-btn {
  background: transparent;
  border: 1.5px solid #ccc;
  color: var(--green-mid);
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: all .2s;
}
.trip-empty-btn:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }

/* Integrated travel plan cards */
.trip-plan-card {
  background: #f4f9f1;
  border: 1.5px solid #c3dab8;
  border-left: 4px solid var(--green-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.trip-plan-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}
.trip-plan-body {
  font-size: .9rem;
  line-height: 1.65;
}
.trip-plan-actions {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid #d8ecd0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.trip-action-btn {
  background: var(--green-mid);
  color: white;
  border: none;
  padding: .55rem 1.1rem;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.trip-action-btn:hover { background: var(--green-dark); }
.trip-add-prompt {
  padding: .6rem 0;
}
.trip-section-title .btn-remove {
  margin-left: auto;
  font-size: .75rem;
}

.trip-item-ai .trip-ai-body {
  margin-top: .4rem;
  white-space: pre-wrap;
  line-height: 1.55;
  max-height: 120px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.ai-save-btn {
  display: block;
  margin: .3rem 0 0 auto;
  background: transparent;
  border: 1.5px solid var(--green-light);
  color: var(--green-mid);
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .78rem;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
}
.ai-save-btn:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }
.ai-save-btn:disabled { opacity: .5; cursor: default; }

.trip-item-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }

.trip-travel-plan {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.trip-travel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tan-dark);
  background: #f9f6f1;
}
.trip-travel-body {
  padding: 1.25rem 1.5rem;
}
.btn-remove {
  background: transparent;
  border: 1px solid #ddd;
  color: #999;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-remove:hover { border-color: #e74c3c; color: #e74c3c; }
.btn-go {
  background: var(--green-mid);
  color: white;
  border: none;
  padding: .3rem .7rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s;
}
.btn-go:hover { background: var(--green-dark); }

.trip-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}
.trip-empty .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.trip-empty h3 { font-size: 1.2rem; color: var(--text); margin-bottom: .5rem; }
.trip-empty p { font-size: .9rem; margin-bottom: 1.5rem; }
.trip-empty .hints { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.trip-empty .hint-chip {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .82rem;
  color: var(--text-light);
}

.btn-add-trip {
  background: transparent;
  border: 2px solid var(--green-accent);
  color: var(--green-mid);
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-add-trip:hover { background: var(--green-accent); color: white; }
.btn-add-trip.added { background: var(--green-accent); color: white; border-color: var(--green-accent); }

/* DOCUMENTS */
.doc-upload-area {
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  background: white;
  transition: border-color .2s, background .2s;
  margin-bottom: .8rem;
  cursor: pointer;
}
.doc-upload-area:hover, .doc-upload-area.drag-over {
  border-color: var(--green-light);
  background: #f0f8ec;
}
.doc-drop-inner { padding: 1.5rem; text-align: center; }
.doc-drop-icon { font-size: 2rem; margin-bottom: .4rem; }
.doc-drop-inner p { font-size: .9rem; color: var(--text-light); margin: .1rem 0; }
.doc-drop-inner strong { color: var(--green-mid); }
.doc-drop-sub { font-size: .78rem !important; }

.doc-list { display: flex; flex-direction: column; gap: .6rem; }
.doc-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .8rem 1rem;
  overflow: hidden;
}
.doc-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #eee;
  transition: border-color .2s;
}
.doc-thumb:hover { border-color: var(--green-light); }
.doc-pdf-thumb {
  width: 60px;
  height: 60px;
  background: #fde8cc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-name-input {
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: .1rem .2rem;
  width: 100%;
  background: transparent;
  color: var(--text);
}
.doc-name-input:focus { outline: none; border-bottom-color: var(--green-light); }
.doc-meta { font-size: .78rem; color: var(--text-light); margin-top: .2rem; }
.doc-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.hidden { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media print {
  header, nav, .trip-header-actions, .trip-item-actions, footer { display: none !important; }
  .tab-content { display: block !important; }
  #tab-trip { display: block !important; }
}

/* DETAIL PANEL */
.detail-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #f0ebe3;
  overflow-y: auto;
}
.detail-panel.hidden { display: none; }
.detail-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--green-dark);
  color: white;
  padding: .7rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.detail-back {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.detail-back:hover { background: rgba(255,255,255,.3); }
.detail-bar span {
  font-weight: 600;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-body {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 0 1rem 3rem;
  width: 100%;
}
.detail-hero {
  border-radius: var(--radius);
  padding: 2rem;
  color: white;
  margin-bottom: 1.5rem;
}
.detail-hero h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.detail-hero .badge { font-size: .82rem; background: rgba(255,255,255,.25); padding: .2rem .7rem; border-radius: 20px; display: inline-block; }
.detail-section {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.detail-section h3 { font-size: 1rem; color: var(--green-dark); margin-bottom: .8rem; border-bottom: 2px solid var(--tan-dark); padding-bottom: .5rem; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid #f0ebe3; font-size: .92rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row strong { color: var(--text-light); font-weight: 500; }
.detail-row span { font-weight: 600; color: var(--text); }
.activity-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.activity-chip { background: var(--tan); color: var(--green-dark); padding: .3rem .8rem; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.btn-reserve-big {
  display: block;
  width: 100%;
  background: var(--green-mid);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
  margin-top: 1.5rem;
}
.btn-reserve-big:hover { background: var(--green-dark); }

/* FOOTER */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1rem;
  font-size: .82rem;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .logo-img { height: 170px; }
  .gas-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .msg-bubble { max-width: 95%; }
}

/* ── FISHING FORECAST ───────────────────────────────────────────────────────── */
.forecast-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.forecast-header {
  background: linear-gradient(135deg, #0d3b5e 0%, #1a6a9a 60%, #2196c4 100%);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.forecast-title { display: flex; align-items: center; gap: .8rem; }
.forecast-icon { font-size: 2.2rem; }
.forecast-title h2 { font-size: 1.2rem; margin: 0; }
.forecast-sub { font-size: .83rem; opacity: .85; margin: .2rem 0 0; }
.forecast-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.forecast-filters select {
  padding: .5rem .8rem;
  border: none;
  border-radius: 6px;
  font-size: .9rem;
  background: rgba(255,255,255,.15);
  color: white;
  cursor: pointer;
}
.forecast-filters select option { background: #1a3a5c; color: white; }

.forecast-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #f0f7ff;
  border-bottom: 1px solid #dde8f5;
  padding: 1rem 1.5rem;
  align-items: center;
}
.cond-block {
  padding: .4rem 1.2rem .4rem 0;
  margin-right: 1.2rem;
  border-right: 1px solid #c8ddf0;
}
.cond-block:last-of-type { border-right: none; }
.cond-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #6a8aaa; font-weight: 600; }
.cond-value { font-size: 1rem; font-weight: 700; color: #1a3a5c; margin-top: .1rem; }
.cond-bar { height: 5px; background: #cfe0ee; border-radius: 3px; width: 90px; margin-top: .3rem; }
.cond-bar-fill { height: 100%; background: linear-gradient(90deg, #2196c4, #4fc3f7); border-radius: 3px; transition: width .5s; }
.cond-tip {
  flex: 1 1 100%;
  font-size: .85rem;
  color: #2c5282;
  background: #dbeafe;
  border-radius: 6px;
  padding: .6rem .9rem;
  margin-top: .6rem;
  line-height: 1.5;
}

.forecast-fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.2rem 1.5rem 1.5rem;
}

.forecast-fish-card {
  background: #fafcff;
  border: 2px solid #dde8f5;
  border-radius: 8px;
  padding: .9rem 1rem;
  transition: transform .2s, box-shadow .2s;
}
.forecast-fish-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.activity-border-5 { border-color: #16a34a; }
.activity-border-4 { border-color: #65a30d; }
.activity-border-3 { border-color: #ca8a04; }
.activity-border-2 { border-color: #ea580c; }
.activity-border-1 { border-color: #dc2626; }

.forecast-fish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.forecast-fish-name { font-weight: 700; font-size: .95rem; color: #1a3a5c; }

.activity-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.activity-5 { background: #dcfce7; color: #15803d; }
.activity-4 { background: #ecfccb; color: #4d7c0f; }
.activity-3 { background: #fef9c3; color: #a16207; }
.activity-2 { background: #ffedd5; color: #c2410c; }
.activity-1 { background: #fee2e2; color: #b91c1c; }

.activity-bar {
  height: 6px;
  background: #e2ecf7;
  border-radius: 3px;
  margin-bottom: .7rem;
  overflow: hidden;
}
.activity-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2196c4, #16a34a);
  transition: width .5s ease;
}

.forecast-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6a8aaa;
  margin-bottom: .35rem;
}
.bait-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .7rem; }
.bait-chip {
  background: #e0f2fe;
  color: #0369a1;
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.forecast-meta {
  font-size: .82rem;
  color: #4a6a8a;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .6rem;
}
.forecast-meta strong { color: #1a3a5c; }

.forecast-tip {
  font-size: .81rem;
  color: #374151;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: .45rem .6rem;
  border-radius: 0 5px 5px 0;
  line-height: 1.4;
}

/* ── ZIP CODE SEARCH ─────────────────────────────────────────────────────────── */
.zip-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: .8rem;
}
.zip-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  overflow: hidden;
  transition: border-color .2s;
}
.zip-input-wrap:focus-within { border-color: var(--green-light); }
.zip-pin { padding: 0 .5rem 0 .8rem; font-size: 1rem; }
.zip-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: .6rem .4rem .6rem 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text);
  background: transparent;
}
.zip-search-row select {
  flex: 1;
  min-width: 130px;
  padding: .6rem .9rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text);
  background: white;
  transition: border-color .2s;
}
.zip-search-row select:focus { outline: none; border-color: var(--green-light); }

.search-divider {
  text-align: center;
  color: #aaa;
  font-size: .8rem;
  margin: .4rem 0 .6rem;
  position: relative;
}
.search-divider::before,
.search-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: #e2e8f0;
}
.search-divider::before { left: 0; }
.search-divider::after  { right: 0; }

.zip-results-header {
  grid-column: 1 / -1;
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .88rem;
  color: #2b6cb0;
  margin-bottom: .25rem;
}

.dist-badge {
  background: #2b6cb0;
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
}

/* ─── ZIP Search Results ─────────────────────────────────────────────────── */
.zip-results-header { margin-bottom: 1rem; }
.zip-hero { font-size: 1.05rem; color: var(--green-dark); margin-bottom: .25rem; }
.zip-sub  { font-size: .85rem; color: #666; }
.zip-bucket-label {
  grid-column: 1 / -1;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: .3rem;
  margin-top: .5rem;
  margin-bottom: .25rem;
}
.zip-notes {
  font-style: italic;
  color: #444;
  border-left: 3px solid var(--green-light);
  padding-left: .6rem;
  margin: .4rem 0;
  line-height: 1.5;
}

/* ─── Forecast ZIP row ───────────────────────────────────────────────────── */
.forecast-zip-row {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  margin-bottom: .4rem;
}
.forecast-zip-row .zip-input-wrap {
  flex: 1; min-width: 180px;
}
.forecast-divider {
  text-align: center; color: #aaa; font-size: .8rem;
  display: flex; align-items: center; gap: .5rem; margin: .4rem 0;
}
.forecast-divider::before,
.forecast-divider::after {
  content: ''; flex: 1; height: 1px; background: #ddd;
}
.forecast-manual-row {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.forecast-location-banner {
  grid-column: 1 / -1;
  background: #e8f5e9; border-left: 4px solid var(--green-accent);
  padding: .5rem .9rem; border-radius: 0 6px 6px 0;
  font-size: .9rem; color: var(--green-dark);
  margin-bottom: .5rem;
}

/* ─── Shopping List ──────────────────────────────────────────────────────── */
.shop-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem;
}
.shop-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }
.shop-sub { font-size: .88rem; color: var(--text-light); margin-top: .2rem; }
.shop-header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-secondary {
  background: transparent; color: var(--green-mid);
  border: 1.5px solid var(--green-mid); padding: .45rem .9rem;
  border-radius: 6px; font-size: .83rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-secondary:hover { background: var(--green-mid); color: #fff; }

/* Add row */
.shop-add-row {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.shop-add-row input {
  flex: 1; min-width: 200px; padding: .55rem .9rem;
  border: 1.5px solid #ccc; border-radius: 6px; font-size: .9rem;
}
.shop-add-row input:focus { outline: none; border-color: var(--green-accent); }
.shop-add-row select {
  padding: .5rem .7rem; border: 1.5px solid #ccc;
  border-radius: 6px; font-size: .85rem; background: #fff;
}

/* Quick add */
.shop-quick-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.shop-quick-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: .5rem; }
.shop-quick-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.shop-qtab {
  padding: .35rem .8rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid #ddd; background: #fff; cursor: pointer; transition: all .15s;
}
.shop-qtab:hover { border-color: var(--green-accent); color: var(--green-accent); }
.shop-qtab.active { background: var(--green-accent); color: #fff; border-color: var(--green-accent); }
.shop-quick-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.shop-chip {
  padding: .3rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--green-accent); color: var(--green-accent);
  background: #fff; cursor: pointer; transition: all .15s;
}
.shop-chip:hover { background: var(--green-accent); color: #fff; }
.shop-chip-added { background: #f0f0f0; border-color: #ccc; color: #aaa; cursor: default; }

/* List */
.shop-list { display: flex; flex-direction: column; gap: .8rem; }
.shop-group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shop-group-label {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff; padding: .6rem 1rem; font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
}
.shop-group-count {
  background: rgba(255,255,255,.25); border-radius: 10px;
  padding: .1rem .45rem; font-size: .75rem; margin-left: auto;
}
.shop-done-group .shop-group-label { background: #888; }
.shop-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 1rem; border-bottom: 1px solid #f0ebe3;
  transition: background .1s;
}
.shop-item:last-child { border-bottom: none; }
.shop-item:hover { background: #fafaf8; }
.shop-item-done .shop-item-text { text-decoration: line-through; color: #aaa; }
.shop-item-done { opacity: .7; }

/* Custom checkbox */
.shop-check-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.shop-check-wrap input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.shop-check-box {
  width: 20px; height: 20px; border: 2px solid var(--green-accent);
  border-radius: 4px; display: block; cursor: pointer; transition: all .15s;
  background: #fff;
}
.shop-check-wrap input:checked + .shop-check-box {
  background: var(--green-accent);
}
.shop-check-wrap input:checked + .shop-check-box::after {
  content: '✓'; color: #fff; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; height: 100%;
}
.shop-item-text { flex: 1; font-size: .9rem; }
.shop-remove {
  background: none; border: none; color: #ccc; cursor: pointer;
  font-size: .85rem; padding: .2rem .4rem; border-radius: 4px; transition: color .15s;
}
.shop-remove:hover { color: #e53e3e; }

/* Empty state */
.shop-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-light); }
.shop-empty-icon { font-size: 3rem; margin-bottom: .8rem; }
.shop-empty p { font-size: .9rem; margin-bottom: .4rem; }
.shop-empty-tip { font-size: .82rem; color: #999; }

.shop-buy-btn {
  background: #ff9900; color: #111; border-radius: 5px;
  padding: .2rem .45rem; font-size: .8rem; text-decoration: none;
  flex-shrink: 0; transition: opacity .15s; line-height: 1.4;
}
.shop-buy-btn:hover { opacity: .8; }
.shop-item-done .shop-buy-btn { opacity: .4; }

/* ─── Fishing Trails ─────────────────────────────────────────────────────── */
.trails-hero {
  background: linear-gradient(135deg, #1a3a0f, #2d5a1b);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem;
  color: #fff; margin-bottom: 1rem;
}
.trails-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.trails-hero p  { font-size: .9rem; opacity: .88; }

.trails-filters {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.trails-filters select, .trails-filters input {
  padding: .5rem .75rem; border: 1.5px solid #ccc; border-radius: 6px;
  font-size: .88rem; background: #fff; flex: 1; min-width: 140px;
}
.trails-filters input { min-width: 180px; }
.trails-filters select:focus, .trails-filters input:focus {
  outline: none; border-color: var(--green-accent);
}

/* Trail grid */
.trail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 1.2rem; margin-top: 1rem;
}

/* Trail card */
.trail-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .15s;
}
.trail-card:hover { transform: translateY(-3px); }

.trail-card-head {
  background: linear-gradient(135deg, #2c4a1e, #4a7a2a);
  color: #fff; padding: 1rem 1.1rem;
}
.trail-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .5rem; margin-bottom: .3rem;
}
.trail-title-row h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.trail-state-badge {
  background: rgba(255,255,255,.2); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .15rem .55rem;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.trail-location { font-size: .78rem; opacity: .8; margin-bottom: .55rem; }

.trail-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.trail-diff, .trail-water, .trail-length, .trail-elev, .trail-access {
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 20px; background: rgba(255,255,255,.18); color: #fff;
}
.diff-easy   { background: #27ae60; }
.diff-mod    { background: #e67e22; }
.diff-hard   { background: #c0392b; }
.acc-free    { background: rgba(255,255,255,.2); }
.acc-fee     { background: #e67e22; }
.acc-permit  { background: #8e44ad; }

.trail-card-body { padding: 1rem 1.1rem; }
.trail-species-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; }
.trail-season { font-size: .83rem; color: #555; margin-bottom: .45rem; }
.trail-notes {
  font-size: .84rem; color: #333; line-height: 1.55;
  border-left: 3px solid var(--green-light);
  padding-left: .65rem; margin-bottom: .75rem; font-style: italic;
}
.trail-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-alltrails { background: #4caf50; }
.btn-alltrails:hover { background: #388e3c; }

@media (max-width: 600px) {
  .trail-grid { grid-template-columns: 1fr; }
  .trails-filters select, .trails-filters input { min-width: 100%; }
}
