/* ============================================================
   GOLF BACHELOR PARTY — SHARED STYLESHEET
   Light mode default · dark toggle · mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --cream:       #faf8f4;
  --cream2:      #f4f0e8;
  --navy:        #0f1f2e;
  --navy2:       #1a3045;
  --gold:        #b8933a;
  --gold-light:  #d4a84b;
  --gold-dim:    #8a6a25;
  --text:        #1a1a2e;
  --text-muted:  #5a6070;
  --text-light:  #8a90a0;
  --border:      #ddd8cf;
  --border-light:#ede9e0;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(15,31,46,.08);
  --shadow-md:   0 4px 20px rgba(15,31,46,.12);
  --shadow-lg:   0 8px 40px rgba(15,31,46,.16);
  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       60px;
  --transition:  0.2s ease;
}

[data-theme="dark"] {
  --cream:       #0f1f2e;
  --cream2:      #1a3045;
  --navy:        #faf8f4;
  --navy2:       #f0ece4;
  --text:        #f0ece4;
  --text-muted:  #a0aab8;
  --text-light:  #6a7585;
  --border:      #2a3f55;
  --border-light:#1e3248;
  --white:       #1a3045;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.5);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:var(--cream);
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
  transition:background var(--transition),color var(--transition);
}
h1,h2,h3{font-family:'Playfair Display',Georgia,serif;line-height:1.25;}
h1{font-size:clamp(1.8rem,4vw,2.8rem);}
h2{font-size:clamp(1.4rem,3vw,2rem);}
h3{font-size:clamp(1.1rem,2vw,1.4rem);}
a{color:var(--gold);text-decoration:none;transition:color var(--transition);}
a:hover{color:var(--gold-light);}
img{max-width:100%;display:block;}
button{cursor:pointer;font-family:inherit;}

/* ── Site Navigation ────────────────────────────────────────── */
.site-nav{
  position:sticky;top:0;z-index:1000;
  height:var(--nav-h);
  background:var(--navy);
  border-bottom:2px solid var(--gold-dim);
  display:flex;align-items:center;
  padding:0 1.25rem;gap:.75rem;
}
[data-theme="dark"] .site-nav{background:#08141f;}

.nav-brand{
  font-family:'Playfair Display',serif;
  font-size:1.05rem;font-weight:700;
  color:var(--gold);white-space:nowrap;
  text-decoration:none;flex-shrink:0;
}
.nav-brand:hover{color:var(--gold-light);}
.nav-brand span{color:rgba(255,255,255,.6);font-size:.8rem;font-weight:400;font-family:Inter,sans-serif;}

.nav-links{display:flex;align-items:center;gap:.15rem;flex:1;margin-left:.25rem;}
.nav-link{
  color:rgba(255,255,255,.65);
  font-size:.825rem;font-weight:500;
  padding:.35rem .65rem;border-radius:var(--radius-sm);
  transition:all var(--transition);text-decoration:none;white-space:nowrap;
}
.nav-link:hover,.nav-link.active{color:#fff;background:rgba(184,147,58,.2);}
.nav-link.active{color:var(--gold);}

.nav-right{display:flex;align-items:center;gap:.5rem;margin-left:auto;}

.nav-shortlist-btn{
  display:flex;align-items:center;gap:.4rem;
  background:rgba(184,147,58,.15);
  border:1px solid rgba(184,147,58,.35);
  color:var(--gold);font-size:.78rem;font-weight:600;
  padding:.3rem .65rem;border-radius:20px;
  transition:all var(--transition);cursor:pointer;
}
.nav-shortlist-btn:hover{background:rgba(184,147,58,.28);}
.nav-shortlist-count{
  background:var(--gold);color:#fff;
  border-radius:50%;width:17px;height:17px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.68rem;font-weight:700;
}

.theme-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.6);
  padding:.3rem .55rem;border-radius:var(--radius-sm);
  font-size:.82rem;transition:all var(--transition);
}
.theme-toggle:hover{border-color:var(--gold);color:var(--gold);}

/* ── Shortlist Drawer ────────────────────────────────────────── */
.shortlist-drawer{
  position:fixed;right:0;top:var(--nav-h);bottom:0;
  width:300px;max-width:100vw;
  background:var(--cream);
  border-left:2px solid var(--gold-dim);
  box-shadow:var(--shadow-lg);z-index:900;
  transform:translateX(100%);transition:transform .3s ease;
  display:flex;flex-direction:column;overflow:hidden;
}
.shortlist-drawer.open{transform:translateX(0);}

.drawer-header{
  padding:.9rem 1.1rem;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
  background:var(--navy);color:#fff;flex-shrink:0;
}
.drawer-header h3{color:var(--gold);font-size:1rem;}
.drawer-close{background:transparent;border:none;color:rgba(255,255,255,.6);font-size:1.25rem;padding:.2rem .4rem;border-radius:4px;}
.drawer-close:hover{color:#fff;}

.drawer-body{flex:1;overflow-y:auto;padding:.75rem;}
.drawer-empty{color:var(--text-muted);font-size:.875rem;text-align:center;padding:2rem 1rem;}

.drawer-item{display:flex;align-items:center;gap:.65rem;padding:.5rem .25rem;border-bottom:1px solid var(--border-light);}
.drawer-item img{width:40px;height:40px;border-radius:6px;object-fit:cover;flex-shrink:0;}
.drawer-item-info{flex:1;min-width:0;}
.drawer-item-name{font-weight:600;font-size:.825rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text);}
.drawer-item-cost{font-size:.75rem;color:var(--text-muted);}
.drawer-item-remove{background:transparent;border:none;color:#e55;font-size:1rem;padding:.15rem .3rem;border-radius:4px;flex-shrink:0;}
.drawer-item-remove:hover{background:#fee2e2;}

.drawer-footer{padding:.65rem .9rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.4rem;flex-shrink:0;}
.btn-calc,.btn-share{
  display:block;width:100%;text-align:center;
  padding:.6rem 1rem;border-radius:var(--radius-sm);
  font-weight:600;font-size:.875rem;transition:all var(--transition);
}
.btn-calc{background:var(--gold);color:#fff;border:none;text-decoration:none;}
.btn-calc:hover{background:var(--gold-light);color:#fff;}
.btn-share{background:transparent;border:1px solid var(--border);color:var(--text);cursor:pointer;}
.btn-share:hover{border-color:var(--gold);color:var(--gold);}

/* ── Verdict Badges ─────────────────────────────────────────── */
.badge{
  display:inline-block;padding:.18rem .55rem;
  border-radius:20px;font-size:.68rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;color:#fff;
}
.badge-top    {background:#16a34a;}
.badge-splurge{background:#d97706;}
.badge-solid  {background:#2563eb;}
.badge-budget {background:#059669;}
.badge-hidden {background:#7c3aed;}
.badge-value  {background:#0891b2;}

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
.text-gold{color:var(--gold);}
.text-muted{color:var(--text-muted);}

/* ── Dest photo sizes ───────────────────────────────────────── */
.dest-photo{width:100%;height:180px;object-fit:cover;display:block;}
.dest-photo-thumb{width:100%;height:120px;object-fit:cover;display:block;}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--gold-dim);}

/* ── Mobile ─────────────────────────────────────────────────── */
@media(max-width:640px){
  .nav-link-label{display:none;}
  .nav-link{padding:.35rem .45rem;}
  .nav-brand span{display:none;}
}
