/* ─── PANVENTA SHARED STYLES ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1a3260;
  --navy-light: #2a4a8a;
  --sky:        #e8f0fb;
  --sky2:       #d4e3f7;
  --gold:       #c9962a;
  --gold-light: #f0be5a;
  --gold-pale:  #fdf5e4;
  --white:      #ffffff;
  --off-white:  #fafaf8;
  --cream:      #f5f2ec;
  --stone:      #ede9e0;
  --ink:        #0d1117;
  --ink2:       #2d3748;
  --muted:      #6b7a99;
  --muted2:     #96a3bc;
  --border:     #e4e8f0;
  --border2:    #ccd3e0;
  --success:    #0a7c4e;
  --success-bg: #e6f7f1;
  --warn:       #b45309;
  --warn-bg:    #fef3c7;
  --danger:     #b91c1c;
  --danger-bg:  #fee2e2;
  --font-d: 'Libre Baskerville', Georgia, serif;
  --font-b: 'Manrope', sans-serif;
  --sh-sm:  0 1px 3px rgba(15,31,61,.06), 0 1px 2px rgba(15,31,61,.04);
  --sh:     0 4px 16px rgba(15,31,61,.08), 0 2px 6px rgba(15,31,61,.05);
  --sh-lg:  0 16px 48px rgba(15,31,61,.12), 0 4px 16px rgba(15,31,61,.08);
  --sh-xl:  0 32px 80px rgba(15,31,61,.16), 0 8px 24px rgba(15,31,61,.1);
  --r:      6px;
  --r-lg:   14px;
  --r-xl:   22px;
  --r-pill: 999px;
  --max:    1240px;
}

body { font-family: var(--font-b); background: var(--white); color: var(--ink); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ─── NAV ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; background: rgba(255,255,255,.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: var(--sh); }
.nav-logo { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--navy); cursor: pointer; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); border: 2px solid var(--sky2); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--navy-light); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: var(--r); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; border: none; font-family: var(--font-b); white-space: nowrap; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,31,61,.25); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8851f; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,150,42,.3); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border2); }
.btn-ghost:hover { border-color: var(--navy); background: var(--sky); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(185,28,28,.2); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: 7px 14px; font-size: .78rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 7px; }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 11px 14px; font-family: var(--font-b); font-size: .9rem; color: var(--ink); outline: none; transition: border-color .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy-light); background: var(--white); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted2); }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-wrap input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.checkbox-wrap span { font-size: .88rem; color: var(--ink2); font-weight: 400; }

/* ─── CARDS ─── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.card-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

/* ─── BADGES ─── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .05em; text-transform: uppercase; }
.badge-navy { background: var(--sky); color: var(--navy-light); border: 1px solid var(--sky2); }
.badge-gold { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,150,42,.2); }
.badge-green { background: var(--success-bg); color: var(--success); border: 1px solid rgba(10,124,78,.2); }
.badge-red { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(185,28,28,.15); }
.badge-amber { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(180,83,9,.15); }

/* ─── PAGE LAYOUT ─── */
.page-wrap { padding-top: 68px; min-height: 100vh; }
.page-header { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 40px 48px; }
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-title { font-family: var(--font-d); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.page-sub { font-size: 1rem; color: var(--muted); font-weight: 300; }
.page-body { max-width: var(--max); margin: 0 auto; padding: 40px 48px; }

/* ─── GRID LAYOUTS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.sidebar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-pill { padding: 8px 16px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); font-family: var(--font-b); transition: all .2s; }
.filter-pill:hover, .filter-pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ─── VENUE / SUPPLIER CARDS ─── */
.listing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: all .25s; cursor: pointer; }
.listing-card:hover { border-color: var(--sky2); transform: translateY(-4px); box-shadow: var(--sh-xl); }
.listing-img { height: 200px; position: relative; display: flex; align-items: center; justify-content: center; }
.listing-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,61,.6) 0%, transparent 55%); }
.listing-img-emoji { font-size: 3rem; opacity: .45; }
.listing-feat { position: absolute; top: 12px; left: 12px; }
.listing-rating { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 3px; }
.listing-rating .star { color: var(--gold); }
.listing-body { padding: 18px; }
.listing-area { font-size: .68rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.listing-name { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.2; }
.listing-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.listing-meta span { font-size: .75rem; color: var(--muted); }
.listing-price { font-size: .83rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.listing-price span { color: var(--muted); font-weight: 400; }
.listing-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.listing-tag { font-size: .65rem; font-weight: 600; color: var(--navy-light); background: var(--sky); padding: 2px 7px; border-radius: var(--r-pill); }
.listing-response { font-size: .72rem; color: var(--success); display: flex; align-items: center; gap: 5px; margin-bottom: 12px; font-weight: 500; }
.listing-response::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.listing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ─── STARS ─── */
.stars { color: var(--gold); letter-spacing: 1px; }
.review-count { font-size: .75rem; color: var(--muted); }

/* ─── TOAST ─── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: var(--r-lg); font-size: .875rem; font-weight: 500; box-shadow: var(--sh-lg); animation: slideIn .3s ease; max-width: 360px; display: flex; align-items: center; gap: 10px; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }

/* ─── MODAL ─── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,31,61,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--white); border-radius: var(--r-xl); padding: 32px; max-width: 560px; width: 100%; box-shadow: var(--sh-xl); max-height: 90vh; overflow-y: auto; }
.modal-title { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.modal-sub { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .5; }
.empty-title { font-family: var(--font-d); font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.empty-sub { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

/* ─── LOADING ─── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; gap: 16px; }
.loading-text { font-size: .875rem; color: var(--muted); }

/* ─── SECTION HELPERS ─── */
.section-eyebrow { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold); }
.section-title { font-family: var(--font-d); font-size: clamp(2rem,3vw,3rem); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-sub { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.75; max-width: 560px; }

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ─── SIDEBAR CARD ─── */
.sidebar-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-card-title { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }

/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; text-align: left; background: var(--off-white); border-bottom: 2px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: .85rem; border-bottom: 1px solid var(--border); color: var(--ink2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--sky); }

/* ─── STAT CARDS ─── */
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; }
.stat-num { font-family: var(--font-d); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: .72rem; color: var(--success); margin-top: 6px; font-weight: 600; }

/* ─── PROGRESS ─── */
.progress-steps { display: flex; gap: 0; margin-bottom: 32px; }
.progress-step { flex: 1; text-align: center; position: relative; }
.progress-step::before { content: ''; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.progress-step:first-child::before { display: none; }
.progress-step.done::before { background: var(--navy); }
.progress-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: .72rem; font-weight: 700; color: var(--muted); position: relative; z-index: 1; }
.progress-step.done .progress-dot { background: var(--navy); border-color: var(--navy); color: white; }
.progress-step.active .progress-dot { background: var(--white); border-color: var(--navy); color: var(--navy); }
.progress-label { font-size: .72rem; font-weight: 600; color: var(--muted); }
.progress-step.done .progress-label, .progress-step.active .progress-label { color: var(--navy); }

/* ─── RESPONSIVE ─── */
@media(max-width:1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } .sidebar-layout { grid-template-columns: 1fr; } .nav { padding: 0 24px; } .page-header { padding: 28px 24px; } .page-body { padding: 28px 24px; } }
@media(max-width:768px) {
  .nav { height:auto; min-height:64px; padding:10px 16px; gap:10px; flex-wrap:wrap; }
  .nav-logo { font-size:1.25rem; }
  .nav-links { order:3; display:flex; width:100%; overflow-x:auto; gap:14px; padding:4px 0 2px; }
  .nav-links a { white-space:nowrap; font-size:.8rem; }
  .nav-right { margin-left:auto; gap:8px; }
  .nav-right .btn { padding:7px 10px; font-size:.75rem; }
  .page-wrap { padding-top:106px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header, .page-body { padding-left:18px; padding-right:18px; }
  .dash-tabs, .progress-steps, .filter-bar { overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .dash-tab, .filter-pill { white-space:nowrap; }
  .event-card, .results-header { flex-direction:column; align-items:flex-start; }
  .event-actions, .result-actions, .listing-actions { width:100%; }
  .modal { padding:24px 18px; }
}
