/* css/styles.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1a2e1a;
  --green-mid:   #2d4a2d;
  --green-light: #4a7c4a;
  --cream:       #f5f0e8;
  --cream-dark:  #ebe4d6;
  --amber:       #c8872a;
  --amber-light: #f0a83c;
  --red:         #c03428;
  --text:        #1a1a16;
  --text-muted:  #5a5a50;
  --border:      rgba(26,26,22,0.12);
  --pending:     #7a5c1e;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body.loading { cursor: wait; }

/* ── NAV ── */
nav {
  background: var(--green);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 12px;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-dot { width: 8px; height: 8px; background: var(--amber-light); border-radius: 50%; }
.nav-center { display: flex; align-items: center; gap: 0; }
.nav-btn {
  background: none;
  border: none;
  color: rgba(245,240,232,0.65);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.nav-btn:hover, .nav-btn.active { color: var(--cream); }
.nav-btn.active { border-bottom: 2px solid var(--amber-light); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-pill {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.admin-badge {
  background: rgba(245,240,232,0.1);
  color: var(--amber-light);
  border: 1px solid rgba(200,135,42,0.4);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  background: var(--green);
  color: var(--cream);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 80px);
  pointer-events: none;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  position: relative;
}
.hero h1 em { font-style: italic; color: var(--amber-light); }
.hero p { font-size: 15px; color: rgba(245,240,232,0.7); max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.6; position: relative; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-primary {
  background: var(--amber); color: #fff; border: none; border-radius: 6px;
  padding: 11px 22px; font-family: 'Instrument Sans', sans-serif; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(245,240,232,0.1); color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25); border-radius: 6px;
  padding: 11px 22px; font-family: 'Instrument Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(245,240,232,0.18); }

/* ── SEARCH BAR ── */
.search-section {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.city-search-wrap { position: relative; flex: 1; min-width: 200px; }
.name-filter-wrap { position: relative; max-width: 220px; }
.autocomplete-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1000;
  background: #fff; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 280px; overflow-y: auto;
}
.ac-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 14px; cursor: pointer; gap: 8px;
}
.ac-item:hover, .ac-item.ac-selected { background: rgba(74,124,74,0.08); }
.ac-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-city { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.search-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--green-light); }
.filter-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 9px 14px; font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--cream); border-color: var(--green); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  height: calc(100vh - 56px - 53px - 57px);
  min-height: 500px;
}

/* ── VENUE LIST ── */
.venue-list { overflow-y: auto; border-right: 1px solid var(--border); background: var(--cream); }
.venue-list::-webkit-scrollbar { width: 4px; }
.venue-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.venue-card { padding: 15px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
.venue-card:hover { background: var(--cream-dark); }
.venue-card.selected { background: #fff; border-left: 3px solid var(--amber); padding-left: 15px; }
.venue-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.venue-name { font-family: 'DM Serif Display', serif; font-size: 15px; line-height: 1.2; }
.venue-type {
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--green-light); background: rgba(74,124,74,0.1); padding: 2px 7px;
  border-radius: 3px; white-space: nowrap;
}
.venue-location { font-size: 12px; color: var(--text-muted); margin-bottom: 7px; }
.venue-stats { display: flex; align-items: center; gap: 10px; }
.stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }
.rating-num { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; }
.review-count { font-size: 12px; color: var(--text-muted); }
.no-reviews { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* ── MAP ── */
.map-panel { position: relative; }
#map { width: 100%; height: 100%; min-height: 400px; }

/* ── DETAIL OVERLAY ── */
.detail-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,22,0.5); z-index: 2000;
  align-items: flex-end; justify-content: center;
}
.detail-overlay.open { display: flex; }
.detail-panel {
  background: var(--cream); width: 100%; max-width: 680px;
  max-height: 85vh; border-radius: 16px 16px 0 0; overflow-y: auto; padding-bottom: 2rem;
}
.detail-header {
  background: var(--green); color: var(--cream);
  padding: 1.5rem 1.5rem 1.2rem; border-radius: 16px 16px 0 0; position: relative;
}
.detail-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(245,240,232,0.15); border: none; color: var(--cream);
  border-radius: 50%; width: 30px; height: 30px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.detail-title { font-family: 'DM Serif Display', serif; font-size: 24px; margin-bottom: 4px; }
.detail-meta { font-size: 13px; color: rgba(245,240,232,0.65); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-scores {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.score-cell { background: #fff; padding: 12px; text-align: center; }
.score-label { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.score-val { font-family: 'DM Mono', monospace; font-size: 22px; font-weight: 500; color: var(--green); }
.reviews-section { padding: 1.2rem 1.5rem; }
.section-title { font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 1rem; }
.review-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.review-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 11px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.review-show { font-size: 12px; color: var(--green-light); margin-bottom: 6px; font-weight: 500; }
.review-body { font-size: 13px; line-height: 1.6; color: var(--text); }
.review-mini-scores { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.mini-score { font-size: 11px; background: var(--cream-dark); padding: 3px 8px; border-radius: 4px; font-family: 'DM Mono', monospace; color: var(--text-muted); }
.mini-score span { color: var(--amber); font-weight: 600; }

/* ── FORM OVERLAY ── */
.form-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,22,0.6); z-index: 3000;
  align-items: center; justify-content: center; padding: 1rem;
}
.form-overlay.open { display: flex; }
.form-panel {
  background: var(--cream); width: 100%; max-width: 560px;
  max-height: 90vh; border-radius: 12px; overflow-y: auto;
}
.form-header {
  background: var(--green); color: var(--cream); padding: 1.2rem 1.5rem;
  border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center;
}
.form-header h2 { font-family: 'DM Serif Display', serif; font-size: 20px; }
.form-close {
  background: rgba(245,240,232,0.15); border: none; color: var(--cream);
  border-radius: 50%; width: 28px; height: 28px; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.form-body { padding: 1.2rem 1.5rem; }
.form-note {
  background: rgba(200,135,42,0.1); border: 1px solid rgba(200,135,42,0.3);
  border-radius: 6px; padding: 10px 14px; font-size: 13px; color: var(--pending);
  margin-bottom: 1.2rem; line-height: 1.5;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 9px 12px; font-family: 'Instrument Sans', sans-serif;
  font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-light); }
.field textarea { resize: vertical; min-height: 80px; }
.ratings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.rating-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.star-picker { display: flex; gap: 4px; }
.star-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #ddd; padding: 0; line-height: 1; transition: color 0.1s, transform 0.1s; }
.star-btn.lit { color: var(--amber); }
.star-btn:hover { transform: scale(1.2); }
.proof-section { background: rgba(74,124,74,0.06); border: 1px solid rgba(74,124,74,0.2); border-radius: 6px; padding: 12px 14px; margin-bottom: 1rem; }
.proof-section h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green-light); margin-bottom: 8px; }
.form-submit {
  width: 100%; background: var(--green); color: var(--cream); border: none; border-radius: 6px;
  padding: 12px; font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.form-submit:hover { background: var(--green-mid); }

/* ── AUTH MODAL ── */
.auth-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,22,0.6); z-index: 4000;
  align-items: center; justify-content: center; padding: 1rem;
}
.auth-modal.open { display: flex; }
.auth-panel {
  background: var(--cream); width: 100%; max-width: 380px; border-radius: 12px; overflow: hidden;
}
.auth-header {
  background: var(--green); color: var(--cream); padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.auth-header h2 { font-family: 'DM Serif Display', serif; font-size: 20px; }
.auth-body { padding: 1.5rem; }
.auth-body .field { margin-bottom: 0.8rem; }
.auth-submit {
  width: 100%; background: var(--green); color: var(--cream); border: none;
  border-radius: 6px; padding: 11px; font-family: 'Instrument Sans', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 0.5rem; transition: background 0.15s;
}
.auth-submit:hover { background: var(--green-mid); }
.auth-switch { font-size: 13px; color: var(--text-muted); margin-top: 12px; text-align: center; }
.auth-switch a { color: var(--green-light); }

/* ── ADMIN ── */
.admin-page { padding: 2rem; max-width: 900px; margin: 0 auto; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-family: 'DM Serif Display', serif; font-size: 2rem; margin-bottom: 4px; }
.admin-header p { color: var(--text-muted); font-size: 14px; }
.pending-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.pending-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.pending-venue { font-family: 'DM Serif Display', serif; font-size: 17px; }
.pending-badge {
  background: rgba(122,92,30,0.1); color: var(--pending); border: 1px solid rgba(122,92,30,0.25);
  border-radius: 4px; padding: 3px 9px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.pending-info { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.pending-info strong { color: var(--text); font-weight: 500; }
.pending-body { font-size: 13px; line-height: 1.6; margin-bottom: 10px; border-left: 3px solid var(--cream-dark); padding-left: 12px; }
.pending-proof { font-size: 12px; background: rgba(74,124,74,0.06); border: 1px solid rgba(74,124,74,0.15); border-radius: 4px; padding: 7px 10px; margin-bottom: 12px; color: var(--text-muted); }
.pending-proof strong { color: var(--green-light); }
.pending-proof-img { display: block; max-width: 240px; max-height: 140px; border-radius: 4px; margin-top: 6px; border: 1px solid rgba(74,124,74,0.2); cursor: pointer; }

/* Proof image upload widget */
.proof-upload-wrap { display: flex; align-items: center; gap: 8px; }
.proof-upload-wrap input[type="file"] { display: none; }
.proof-upload-btn { display: inline-block; padding: 5px 11px; background: var(--green); color: #fff; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.proof-upload-btn:hover { background: var(--green-light); }
.proof-upload-name { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
#proofImagePreview img { display: block; max-width: 100%; max-height: 120px; border-radius: 4px; margin-top: 6px; border: 1px solid rgba(74,124,74,0.2); }
#proofImagePreview .proof-pdf-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green-light); background: rgba(74,124,74,0.1); padding: 4px 8px; border-radius: 4px; margin-top: 6px; }
.pending-actions { display: flex; gap: 8px; }
.btn-approve { background: var(--green); color: #fff; border: none; border-radius: 5px; padding: 8px 16px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-approve:hover { background: var(--green-mid); }
.btn-reject { background: #fff; color: var(--red); border: 1px solid rgba(192,52,40,0.3); border-radius: 5px; padding: 8px 16px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-reject:hover { background: rgba(192,52,40,0.06); }
.btn-request { background: #fff; color: var(--pending); border: 1px solid rgba(200,135,42,0.35); border-radius: 5px; padding: 8px 16px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-request:hover { background: rgba(200,135,42,0.06); }

/* ── ABOUT PAGE ── */
.about-page { max-width: 680px; margin: 3rem auto; padding: 0 1.5rem 3rem; }
.about-page h1 { font-family: 'DM Serif Display', serif; font-size: 2.2rem; margin-bottom: 1rem; }
.about-page h2 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.about-page p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-bottom: 0.8rem; }
.how-it-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.5rem 0; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.step-num { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--amber); font-weight: 500; margin-bottom: 6px; }
.step-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.verification-info { background: rgba(74,124,74,0.06); border: 1px solid rgba(74,124,74,0.2); border-radius: 8px; padding: 16px 18px; margin-top: 1.5rem; }
.verification-info h3 { font-size: 14px; font-weight: 600; color: var(--green-light); margin-bottom: 8px; }
.verification-info ul { padding-left: 1.2rem; }
.verification-info li { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.5; }

/* ── STIPULATIONS (review card) ── */
.review-stipulations {
  font-size: 12px; line-height: 1.5; color: #92400e;
  background: rgba(180,83,9,0.06); border: 1px solid rgba(180,83,9,0.18);
  border-radius: 4px; padding: 6px 10px; margin: 6px 0;
}
.stipulations-label {
  font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-right: 6px; color: #b45309;
}

/* ── PAYMENT SECTION (form) ── */
.payment-section {
  background: rgba(26,46,26,0.05); border: 1px solid rgba(26,46,26,0.15);
  border-radius: 6px; padding: 12px 14px; margin-bottom: 1rem;
}
.payment-section h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green-light); margin-bottom: 8px; }

/* ── DEAL STATS ROW (detail panel) ── */
.deal-stats-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 10px 1.5rem; background: rgba(26,46,26,0.04);
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.deal-stat { color: var(--text-muted); }
.deal-stat strong { color: var(--green); }
.deal-stat-note { font-size: 11px; color: var(--text-muted); }
.deal-stat-sep { color: var(--border); font-size: 16px; }
.p2p-warning { color: #b45309; font-weight: 600; }

/* ── REVIEWS SECTION HEADER ── */
.reviews-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.reviews-section-header .section-title { margin-bottom: 0; }

/* ── PAYMENT FILTER PILLS (detail panel) ── */
.payment-filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.payment-pill {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 10px; font-family: 'Instrument Sans', sans-serif;
  font-size: 12px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.payment-pill:hover { border-color: var(--green-light); color: var(--green); }
.payment-pill.active { background: var(--green); color: var(--cream); border-color: var(--green); }
.pill-count { font-family: 'DM Mono', monospace; font-size: 11px; opacity: 0.75; margin-left: 2px; }

/* ── PAYMENT TYPE TAG (on reviews) ── */
.pay-type-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  background: rgba(74,124,74,0.1); color: var(--green-light);
  border: 1px solid rgba(74,124,74,0.2); border-radius: 3px; padding: 1px 6px;
}
.pay-type-p2p {
  background: rgba(180,83,9,0.08); color: #b45309;
  border-color: rgba(180,83,9,0.2);
}
.review-p2p { border-left: 3px solid #b45309; }

/* ── ANONYMOUS TOGGLE ── */
.anon-toggle {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(56,104,204,0.06); border: 1px solid rgba(56,104,204,0.2);
  border-radius: 6px; padding: 12px 14px; margin-bottom: 1rem; cursor: pointer;
}
.anon-toggle input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #2456a4; width: 15px; height: 15px; cursor: pointer; }
.anon-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.anon-toggle-title { font-size: 13px; font-weight: 600; color: #2456a4; }
.anon-toggle-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.anon-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(56,104,204,0.08); color: #2456a4; border: 1px solid rgba(56,104,204,0.2);
  border-radius: 3px; padding: 1px 5px; vertical-align: middle; margin-left: 5px;
}

/* ── QUEUE BADGE ── */
.queue-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #fff;
  border-radius: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600;
  margin-left: 5px; vertical-align: middle; line-height: 1;
}

/* ── ADMIN HEADER ── */
.admin-header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 0;
}
.admin-header-top h1 { margin-bottom: 0; }

/* ── NOTIFY TOGGLE ── */
.notify-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.notify-toggle input[type="checkbox"] { display: none; }
.notify-toggle-track {
  position: relative; width: 36px; height: 20px;
  background: rgba(26,26,22,0.15); border-radius: 10px;
  transition: background 0.2s; flex-shrink: 0;
}
.notify-toggle input:checked + .notify-toggle-track { background: var(--green-light); }
.notify-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; background: #fff;
  border-radius: 50%; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.notify-toggle input:checked + .notify-toggle-track .notify-toggle-thumb { transform: translateX(16px); }
.notify-toggle-label { font-size: 13px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.notify-toggle:hover .notify-toggle-label { color: var(--text); }

/* ── ADMIN TABS ── */
.admin-tabs { display: flex; gap: 4px; margin-top: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.admin-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; padding: 8px 16px 10px; transition: color 0.15s;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--green); border-bottom-color: var(--amber); font-weight: 600; }
#suggestionCount { font-size: 12px; color: var(--amber); font-family: 'DM Mono', monospace; margin-left: 2px; }

/* ── SUGGESTION BADGE ── */
.suggestion-badge-label {
  background: rgba(56,104,204,0.08); color: #2456a4; border: 1px solid rgba(56,104,204,0.25);
}

/* ── GEOCODE BUTTON ── */
.btn-geocode {
  width: 100%; background: rgba(74,124,74,0.08); color: var(--green-light);
  border: 1px solid rgba(74,124,74,0.3); border-radius: 6px;
  padding: 9px 14px; font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; margin-bottom: 0;
}
.btn-geocode:hover { background: rgba(74,124,74,0.15); }

/* ── NAV PROFILE NAME ── */
.nav-profile-name {
  font-size: 13px; color: rgba(245,240,232,0.6);
  cursor: pointer; transition: color 0.15s;
}
.nav-profile-name:hover { color: var(--cream); }

/* ── PROFILE ── */
.reviewer-name-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(26,46,26,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.reviewer-name-link:hover { color: var(--green-light); border-bottom-color: var(--green-light); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(26,46,26,0.07); color: var(--green-light);
  border: 1px solid rgba(74,124,74,0.3); border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 2px 7px; vertical-align: middle;
}
.profile-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.profile-stat:last-child { border-bottom: none; }
.profile-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.profile-stat-value { font-size: 15px; color: var(--text); font-family: 'Instrument Sans', sans-serif; }

/* ── FORM 2-COL GRID ── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: rgba(245,240,232,0.8); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none; position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--green); z-index: 998;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.mobile-nav.open { display: flex; }
.mobile-nav-backdrop {
  display: none; position: fixed; inset: 0;
  top: 56px; z-index: 997;
  background: rgba(0,0,0,0.3);
}
.mobile-nav-backdrop.open { display: block; }
.mobile-nav-btn {
  background: none; border: none;
  color: rgba(245,240,232,0.75);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  padding: 13px 20px; text-align: left; cursor: pointer;
  transition: background 0.1s, color 0.1s;
  width: 100%;
}
.mobile-nav-btn:hover, .mobile-nav-btn.active { color: var(--cream); background: rgba(255,255,255,0.06); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 6px 0; }
.mobile-nav-pill {
  display: block; background: var(--amber); color: #fff; border: none;
  border-radius: 6px; margin: 6px 16px 0; padding: 12px 16px;
  font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; width: calc(100% - 32px);
}
.mobile-nav-muted {
  font-size: 12px; color: rgba(245,240,232,0.45);
  padding: 4px 20px 8px; font-style: italic;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .venue-list { height: 45vh; min-height: 280px; }
  .map-panel { height: 320px; }
  #map { min-height: 320px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Nav ── */
  .nav-center { display: none; }
  .nav-right   { display: none; }
  .hamburger   { display: flex; }

  /* ── Hero ── */
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  /* ── Search ── */
  .search-section { padding: 0.75rem 1rem; flex-wrap: wrap; }
  .city-search-wrap { flex: none; width: 100%; }
  .name-filter-wrap { max-width: none; flex: 1; min-width: 0; }
  #nameFilter { max-width: none !important; width: 100%; }
  /* Let filter buttons scroll horizontally on one line */
  .search-section > .filter-btn { flex-shrink: 0; }

  /* ── Map/list ── */
  .venue-list { height: 40vh; min-height: 240px; }
  .map-panel  { height: 260px; }
  #map { min-height: 260px; }

  /* ── Detail overlay ── */
  .detail-panel { max-height: 93vh; }
  .detail-title { font-size: 20px; }
  .detail-scores { grid-template-columns: repeat(3, 1fr); } /* keep 3-col, just smaller */
  .score-val { font-size: 18px; }
  .score-label { font-size: 9px; }
  .reviews-section { padding: 1rem; }
  .reviews-section-header { flex-direction: column; align-items: flex-start; }

  /* ── Form overlay — slide up from bottom like detail panel ── */
  .form-overlay { padding: 0; align-items: flex-end; }
  .form-panel {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }
  .form-header { border-radius: 16px 16px 0 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .ratings-grid { grid-template-columns: 1fr 1fr; } /* keep 2-col — stars need space */

  /* ── Auth modal ── */
  .auth-modal { padding: 0; align-items: flex-end; }
  .auth-panel { border-radius: 16px 16px 0 0; max-width: 100%; }
  .auth-header { border-radius: 16px 16px 0 0; }

  /* ── Admin page ── */
  .admin-page { padding: 1rem; }
  .admin-header-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pending-top { flex-wrap: wrap; gap: 6px; }
  .pending-top > div:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .pending-info { line-height: 2; }
  .pending-actions { flex-wrap: wrap; gap: 6px; }
  .pending-actions .btn-approve,
  .pending-actions .btn-reject,
  .pending-actions .btn-request { flex: 1; min-width: 80px; text-align: center; }

  /* ── My Reviews page ── */
  #page-myreviews > div { padding: 0 1rem 2rem; margin: 1.5rem auto; }

  /* ── About page ── */
  .about-page { margin: 1.5rem auto; padding: 0 1rem 2rem; }
  .about-page h1 { font-size: 1.8rem; }
}

/* ══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 400px)
══════════════════════════════════════ */
@media (max-width: 400px) {
  .detail-scores { grid-template-columns: repeat(2, 1fr); }
  .score-val { font-size: 20px; }
  .score-label { font-size: 10px; }
  .review-mini-scores { gap: 5px; }
  .pending-venue { font-size: 15px; }
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green); color: var(--cream);
  padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  z-index: 9999; transition: transform 0.3s; pointer-events: none; white-space: nowrap;
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
