:root {
  --pine: #0a0a0a;
  --pine-2: #202020;
  --moss: #876800;
  --gold: #ffd400;
  --gold-2: #ffb800;
  --ember: #ef6c18;
  --ice: #eaf4f5;
  --ridge: #2f3b3f;
  --ink: #101417;
  --muted: #626b6d;
  --line: #dfd6b1;
  --cloud: #f5f0df;
  --snow: #ffffff;
  --danger: #b73535;
  --shadow: 0 22px 60px rgba(10, 10, 10, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,212,0,.13), transparent 360px),
    var(--cloud);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section.tight { padding: 48px 0; }
.eyebrow {
  color: var(--moss);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, .brand { font-family: Poppins, Inter, sans-serif; line-height: 1.08; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.45rem, 7vw, 5.65rem); max-width: 860px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 760px; }
h3 { font-size: 1.25rem; }
p { margin: 0; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 720px; color: #f3ead0; }
.section .lead { color: var(--muted); }

.topbar {
  background: linear-gradient(90deg, #000, #1f1f1f);
  color: var(--gold);
  font-size: .88rem;
  font-weight: 700;
  padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(10,10,10,.12);
  backdrop-filter: blur(16px);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.35rem; color: var(--pine); text-transform: uppercase; }
.brand > span:last-child span { color: var(--gold-2); text-shadow: 0 1px 0 rgba(0,0,0,.12); }
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: transparent;
  color: var(--pine);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.16)); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .95rem; font-weight: 800; }
.nav-links a { color: #252525; }
.nav-links a.active, .nav-links a:hover { color: #000; box-shadow: inset 0 -3px 0 var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; border: 0; background: transparent; color: var(--pine); font-size: 1.35rem; padding: 10px; }

.btn {
  border: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #070707, #242424); color: var(--gold); box-shadow: 0 14px 32px rgba(8,8,8,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #000, #323232); }
.btn-light { background: white; color: var(--pine); }
.btn-outline { border: 1px solid rgba(10,10,10,.22); background: rgba(255,255,255,.92); color: var(--pine); }
.btn-danger { background: var(--danger); color: white; }

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  color: white;
  background:
    linear-gradient(105deg, rgba(0,0,0,.84), rgba(0,0,0,.52) 48%, rgba(255,212,0,.18)),
    var(--hero-image, url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?auto=format&fit=crop&w=2200&q=80"));
  background-size: cover;
  background-position: center;
  padding: 90px 0 64px;
}
.hero-content { display: grid; gap: 22px; }
.hero-actions, .section-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,212,0,.34);
  backdrop-filter: blur(18px);
}
.stat { padding: 18px; border-right: 1px solid rgba(255,212,0,.22); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.5rem; font-family: Poppins, sans-serif; }
.stat span { color: #f3ead0; font-size: .9rem; font-weight: 700; }

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: white;
  padding: 92px 0 58px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.38), rgba(255,212,0,.12)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.page-hero p { color: #f3ead0; max-width: 720px; margin-top: 18px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head p { max-width: 560px; }

.card {
  background: var(--snow);
  border: 1px solid rgba(10,10,10,.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 10, 10, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 px 50px rgba(10,10,10,.14); }
.card-body { padding: 20px; display: grid; gap: 12px; }
.media { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #efe7c2; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: #101010;
  color: var(--gold);
  padding: 5px 9px;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 900;
}
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.price { font-family: Poppins, sans-serif; font-weight: 800; color: var(--pine); font-size: 1.15rem; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.payment-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff8cc, #fff);
}
.payment-note strong { color: var(--pine); }
.payment-note span { color: var(--muted); font-size: .92rem; }

.article { display: grid; gap: 22px; }
.article-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.article-body {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.article-body h1 { color: var(--ink); font-size: clamp(2.1rem, 5vw, 4.2rem); }
.article-body h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.article-body p { font-size: 1.05rem; }
.article-lead { font-size: 1.2rem !important; color: #3a3326; }
.article-section { display: grid; gap: 10px; padding-top: 10px; }

.trek-detail { display: grid; gap: 24px; }
.trek-hero-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}
.trek-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.trek-hero-copy { display: grid; gap: 18px; }
.trek-hero-copy h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 4.5rem); }
.trek-hero-copy p { font-size: 1.08rem; }
.trek-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  overflow: hidden;
}
.trek-facts div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trek-facts div:nth-child(3n) { border-right: 0; }
.trek-facts span { display: block; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.trek-facts strong { display: block; margin-top: 4px; color: var(--pine); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 18px; }
.detail-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  display: grid;
  gap: 16px;
}
.detail-section h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.timeline-item {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.timeline-item strong { color: var(--pine); }
.check-list { margin: 0; padding-left: 20px; color: var(--muted); }
.check-list li { margin-bottom: 8px; }
.seo-link-cloud {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.seo-link-cloud a { display: block; }

.dashboard-card { align-content: start; }
.dashboard-card-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dashboard-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.traveller-login {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 28px;
  align-items: center;
  border-top: 6px solid var(--gold);
}
.traveller-login-copy { display: grid; gap: 12px; }
.traveller-portal { display: grid; gap: 24px; }
.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255,212,0,.18), transparent 44%),
    #fff;
  border: 1px solid rgba(10,10,10,.1);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(10,10,10,.07);
}
.portal-head p { margin-top: 8px; }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-stat {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #101010;
  color: white;
  border-radius: 6px;
  border-top: 4px solid var(--gold);
}
.dashboard-stat i { color: var(--gold); font-size: 1.25rem; }
.dashboard-stat strong { font-family: Poppins, Inter, sans-serif; font-size: 1.8rem; line-height: 1; }
.dashboard-stat span { color: #f3ead0; font-weight: 800; }
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: start;
}
.dashboard-main, .dashboard-side, .dashboard-booking-list { display: grid; gap: 16px; }
.section-head.compact { margin-bottom: 0; }
.dashboard-trip-card {
  background: white;
  border: 1px solid rgba(10,10,10,.1);
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  gap: 15px;
  box-shadow: 0 12px 34px rgba(10,10,10,.08);
}
.trip-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.trip-progress span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  background: #fff3a5;
  color: #101010;
  border-radius: 4px;
  font-weight: 900;
  font-size: .82rem;
  text-align: center;
}
.booking-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.booking-meta p { font-size: .95rem; }
.dashboard-panel {
  background: white;
  border: 1px solid rgba(10,10,10,.1);
  border-radius: 6px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 34px rgba(10,10,10,.07);
}
.suggested-list { display: grid; gap: 10px; }
.suggested-trek {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf5;
}
.suggested-trek img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}
.suggested-trek strong { display: block; color: var(--ink); }
.suggested-trek small { color: var(--muted); font-weight: 800; }
.dashboard-empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.addon-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-weight: 900;
  background: #fffdf5;
}

.feature {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-left: 4px solid var(--gold);
}
.feature i { color: var(--gold-2); font-size: 1.45rem; }

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-item {
  background: linear-gradient(180deg, #fff, #fffaf0);
  border: 1px solid rgba(10,10,10,.12);
  border-radius: 6px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.trust-item i { color: var(--gold-2); font-size: 1.35rem; }
.trust-item strong { color: var(--pine); font-family: Poppins, Inter, sans-serif; }
.trust-item span { color: var(--muted); font-size: .94rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: 6px; box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.brand-band { background: #080808; color: white; border-top: 7px solid var(--gold); }
.brand-band p { color: #efe7c2; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--pine);
  border-radius: 4px;
  padding: 9px 14px;
  font-weight: 900;
}
.chip.active { background: var(--pine); color: var(--gold); border-color: var(--pine); }

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 900; color: #2d2920; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(255,212,0,.28); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
}
.modal.open { display: flex; }
.modal-panel {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 42px; height: 42px; border-radius: 5px; border: 1px solid var(--line); background: white; display: grid; place-items: center; color: var(--pine); }
.auth-steps { display: flex; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
}
.toast-item {
  background: var(--pine);
  color: var(--gold);
  border-radius: 5px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
}
.toast-item.error { background: var(--danger); }

.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
td { font-weight: 700; }
.status { padding: 5px 9px; border-radius: 3px; font-size: .78rem; font-weight: 900; background: #fff3a5; color: var(--pine); }

.footer {
  background:
    linear-gradient(135deg, rgba(255,212,0,.08), transparent 36%),
    #080808;
  color: white;
  padding: 58px 0 24px;
}
.footer p, .footer a { color: #efe7c2; }
.footer-brand { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
.footer h3 { margin-bottom: 12px; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #080808; color: white; padding: 24px; position: sticky; top: 0; height: 100vh; border-right: 7px solid var(--gold); }
.admin-main { padding: 28px; }
.admin-nav { display: grid; gap: 8px; margin-top: 28px; }
.admin-nav button { text-align: left; border: 0; background: transparent; color: #efe7c2; padding: 11px 12px; border-radius: 8px; font-weight: 900; }
.admin-nav button.active, .admin-nav button:hover { background: var(--gold); color: #080808; }
.panel { display: none; }
.panel.active { display: block; }

.empty { padding: 32px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 960px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-actions .btn-outline { display: none; }
  .grid-4, .grid-3, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .grid-2, .trek-hero-card, .detail-layout, .traveller-login, .dashboard-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 58px 0; }
  .hero { min-height: 680px; padding-top: 56px; }
  .topbar .container { justify-content: center; text-align: center; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 50px; height: 50px; }
  .hero-stats, .grid-4, .grid-3, .form-row, .footer-grid, .trust-grid, .dashboard-stats, .booking-meta, .trip-progress, .addon-grid { grid-template-columns: 1fr; }
  .trek-facts { grid-template-columns: 1fr; }
  .trek-facts div { border-right: 0; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .stat:last-child { border-bottom: 0; }
  .section-head { display: grid; }
  .nav-actions .btn-primary { padding-inline: 12px; }
}
