/* BondTours — Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Rubik:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;

  /* Light mode */
  --bg:           #f5f6fa;
  --bg-alt:       #ffffff;
  --surface:      #ffffff;
  --surface-2:    #f1f3f9;
  --border:       #e4e7ef;
  --border-2:     #d0d5e8;
  --text:         #0f1629;
  --text-2:       #3d4466;
  --text-muted:   #6b7494;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-bg:    #eff6ff;
  --accent-light: rgba(37,99,235,0.1);
  --green:        #059669;
  --green-bg:     #ecfdf5;
  --amber:        #d97706;
  --amber-bg:     #fffbeb;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --blue:         #2563eb;
  --blue-bg:      #eff6ff;
  --purple:       #7c3aed;
  --gray:         #6b7280;
  --gray-bg:      #f9fafb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --nav-h:        62px;
}

[data-theme="dark"] {
  --bg:           #0d1117;
  --bg-alt:       #0a0d13;
  --surface:      #161b27;
  --surface-2:    #1c2236;
  --border:       #242d42;
  --border-2:     #2d3856;
  --text:         #e8edf8;
  --text-2:       #a8b4d0;
  --text-muted:   #6b7ba0;
  --accent:       #3b82f6;
  --accent-hover: #60a5fa;
  --accent-bg:    rgba(59,130,246,0.12);
  --accent-light: rgba(59,130,246,0.15);
  --green:        #34d399;
  --green-bg:     rgba(52,211,153,0.12);
  --amber:        #fbbf24;
  --amber-bg:     rgba(251,191,36,0.12);
  --red:          #f87171;
  --red-bg:       rgba(248,113,113,0.12);
  --blue:         #60a5fa;
  --blue-bg:      rgba(96,165,250,0.12);
  --purple:       #a78bfa;
  --gray:         #9ca3af;
  --gray-bg:      rgba(156,163,175,0.1);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow:       0 4px 20px rgba(0,0,0,.35);
  --shadow-lg:    0 16px 50px rgba(0,0,0,.5);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-2); }

/* ── Container ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-logo-img {
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}
.nav-profile-icon { display: none; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-bg);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.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 menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
  animation: slideDown .2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 14px; font-size: 15px; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all .2s;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-success { background: var(--green); color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }

/* Tour Card */
.tour-card { cursor: pointer; text-decoration: none; display: block; color: inherit; }
.tour-card-cover {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #1e3a5c, #0c4a3a);
}
.tour-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.tour-card:hover .tour-card-cover img { transform: scale(1.06); }
.tour-card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
}
.tour-card-badges {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.tour-card-duration {
  position: absolute; bottom: 12px; left: 12px;
}
.tour-card-info { padding: 16px; }
.tour-card-dest {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  display: flex; align-items: center; gap: 4px; margin-bottom: 5px;
}
.tour-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 12px; color: var(--text);
}
.tour-card-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 10px; background: var(--surface-2);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.tour-meta-item label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.tour-meta-item span  { font-size: 13px; font-weight: 600; color: var(--text); }
.tour-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.tour-fee { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.tour-fee-label { font-size: 11px; color: var(--text-muted); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.badge-blue    { background: var(--blue-bg);  color: var(--blue); }
.badge-green   { background: var(--green-bg); color: var(--green); }
.badge-amber   { background: var(--amber-bg); color: var(--amber); }
.badge-red     { background: var(--red-bg);   color: var(--red); }
.badge-gray    { background: var(--gray-bg);  color: var(--gray); }
.badge-success { background: var(--green-bg); color: var(--green); }
.badge-warning { background: var(--amber-bg); color: var(--amber); }
.badge-info    { background: var(--blue-bg);  color: var(--blue); }
.badge-pill    { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all .2s; }
.badge-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-pill:hover  { border-color: var(--accent); color: var(--accent); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-label span { color: var(--red); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 90px; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 64px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ── Grid ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Stats Card ─────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-card .stat-icon { font-size: 28px; }
.stat-card .stat-value {
  font-size: 2rem; font-weight: 600;
  line-height: 1; color: var(--accent);
  letter-spacing: -1px;
}
.stat-card .stat-label { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom:-8px; }
.stat-card .stat-sub   { font-size: 12px; color: var(--text-muted); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0c3460, #16213e);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.15) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 40px 0 50px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: 6px 14px; border-radius: 24px; font-size: 12px; font-weight: 500;
  margin-bottom: 16px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400; color: #fff;
  line-height: 1.15; margin-bottom: 14px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 28px;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-price { color: #4ade80; font-weight: 700; font-size: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all .2s;
}
.btn-hero-primary { background: #fff; color: #0f1629; }
.btn-hero-primary:hover { background: #f0f6ff; transform: translateY(-1px); }
.btn-hero-outline {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.18); }

/* No upcoming hero */
.hero-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-h) - 96px);
}
.hero-empty-content { width: 100%; padding: 80px 20px; }
.hero-empty-icon { font-size: 60px; margin-bottom: 16px; }

/* ── Section ────────────────────────────────────────────── */
.section { padding: 52px 0; }
.section-sm { padding: 32px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); }
.section-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: auto;
}
.stat-bar-item {
  text-align: center;
  padding: 10px 0;
  border-right: 1px solid var(--border);
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-value {
  font-size: 1.8rem; font-weight: 600;
  color: var(--accent); letter-spacing: -1px; line-height: 1;
}
.stat-bar-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ── Avatar ─────────────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }

/* ── Member card in tour ────────────────────────────────── */
.member-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.member-row:last-child { margin-bottom: 0; }
.member-row-info { flex: 1; min-width: 0; }
.member-row-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-row-sub  { font-size: 12px; color: var(--text-muted); }
.member-row-badges { display: flex; gap: 5px; flex-shrink: 0; }

/* ── Tour Detail ────────────────────────────────────────── */
.tour-detail-hero {
  position: relative; height: 360px; overflow: hidden;
  background: linear-gradient(135deg, #1a3a5c, #0c4a3a);
}
.tour-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.tour-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.tour-detail-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
}
.tour-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 28px 0 60px;
}

/* Sidebar booking card */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.booking-price {
  background: var(--accent-bg);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: 16px; margin-bottom: 18px;
}
.booking-price .price-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.booking-price .price-amount { font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -1.5px; line-height: 1.1; }
.booking-price .price-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.booking-info-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.booking-info-item .bi-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.booking-info-item .bi-value { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 1px; }

/* Itinerary */
.itinerary-day {
  display: flex; gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.itinerary-day::before {
  content: '';
  position: absolute;
  left: 38px; top: 32px; bottom: 0;
  width: 1px; background: var(--border);
}
.itinerary-day:last-child::before { display: none; }
.day-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.day-badge .day-num { font-size: 9px; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.day-badge .day-val { font-size: 14px; font-weight: 800; color: var(--accent); line-height: 1; }
.itinerary-body { flex: 1; padding-top: 6px; }
.itinerary-title { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.itinerary-text  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Gallery ────────────────────────────────────────────── */
.gallery-masonry {
  columns: 3; column-gap: 12px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 12px;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,.25); }
.gallery-item-overlay .gallery-zoom { opacity: 0; color: #fff; font-size: 26px; transition: opacity .3s; }
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 30px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { color: #fff; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(10px);
  transition: background .2s;
}
.lightbox-prev { left: -58px; }
.lightbox-next { right: -58px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,.65); font-size: 13px; margin-top: 12px; }

/* ── Admin Layout ───────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  transition: width .3s, transform .3s;
}
.admin-content { flex: 1; padding: 28px; overflow: hidden; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0 10px; margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  margin-bottom: 2px; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.sidebar-link .icon { font-size: 17px; width: 22px; text-align: center; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); text-align: left;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }

/* ── Alert / Flash ──────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red); }
.alert-info    { background: var(--blue-bg);  color: var(--blue);  border: 1px solid var(--blue); }
.alert-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }

/* Toast */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9990; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 360px;
}
.toast-success { background: #064e3b; color: #6ee7b7; border: 1px solid #065f46; }
.toast-error   { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.toast-info    { background: #1e3a5f; color: #93c5fd; border: 1px solid #1d4ed8; }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }

/* ── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .25s ease;
}
.modal-header {
  padding: 20px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal-body  { padding: 20px 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }
@keyframes modalIn { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform: none; } }

/* ── Share buttons ──────────────────────────────────────── */
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.share-btn-fb    { border-color: #1877f2; color: #1877f2; }
.share-btn-wa    { border-color: #25d366; color: #25d366; }
.share-btn-copy  { border-color: var(--accent); color: var(--accent); }

/* ── Auth page ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c1428 0%, #0d2149 50%, #0a1a3d 100%);
  padding: 20px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.25), transparent 60%);
  top: -200px; right: -200px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative; z-index: 1;
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 12px;
}
.auth-logo h1 { font-family: var(--font-display); color: #fff; font-size: 1.8rem; }
.auth-logo p  { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 4px; }
.auth-card .form-control {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,.35); }
.auth-card .form-control:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.auth-card .form-label { color: rgba(255,255,255,.7); }

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-input {
  flex: 1; min-width: 200px; max-width: 320px;
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border); border-radius: 24px;
  background: var(--surface); color: var(--text);
  font-size: 13px; outline: none;
  transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7494' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search-input:focus { border-color: var(--accent); }

/* ── Progress bar ───────────────────────────────────────── */
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s ease; }

/* ── Upload zone ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 36px 20px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.upload-zone-icon { font-size: 36px; margin-bottom: 10px; }
.upload-zone-text { font-size: 14px; color: var(--text-muted); }

/* ── Page header ────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.7rem; margin-bottom: 4px; }
.page-header p  { color: var(--text-muted); font-size: 14px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .6; }
.empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-sub   { font-size: 13px; }

/* ── Skeleton loader ────────────────────────────────────── */
.skeleton { animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.footer-logo-img { max-width: 180px; max-height: 32px; object-fit: contain; }
.footer-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.footer-copy  { font-size: 12px; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-inner { gap: 8px; }
  .nav-right { gap: 6px; margin-left: auto; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tour-detail-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; top: var(--nav-h); left: 0; bottom: 0; z-index: 300; width: 260px; box-shadow: var(--shadow-lg); }
  .admin-content > div[style*="grid-template-columns"],
  .admin-content form > div[style*="grid-template-columns"],
  .admin-content .grid-2,
  .admin-content .grid-3,
  .admin-content .grid-4 { grid-template-columns: 1fr !important; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero-title { font-size: 1.8rem; }
  .hero-meta { gap: 10px; font-size: 13px; }
  .tour-detail-hero { height: 260px; }
  .gallery-masonry { columns: 2; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .share-btns { gap: 6px; }
  .auth-card { padding: 28px 20px; }
  .lightbox-prev { left: -40px; }
  .lightbox-next { right: -40px; }
  .stat-bar-value { font-size: 1.3rem; }
  .admin-content { padding: 16px; }
  .admin-content > div[style*="grid-template-columns"],
  .admin-content form > div[style*="grid-template-columns"],
  .admin-content .grid-2,
  .admin-content .grid-3,
  .admin-content .grid-4 { grid-template-columns: 1fr !important; }
  .page-header-row { flex-direction: column; }
  .table-wrap { font-size: 13px; }
  .table th, .table td { padding: 10px 12px; }
}
@media (max-width: 720px) {
  .nav-logo { min-width: 0; }
  .nav-logo-text { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-logo-img { max-width: 145px; }
  .nav-profile { width: 40px; padding-left: 0; padding-right: 0; }
  .nav-profile-icon { display: inline; font-size: 12px; }
  .nav-profile-name { display: none; }
  .nav-right .btn-ghost.btn-sm { padding-left: 8px; padding-right: 8px; }
  .theme-toggle, .hamburger { width: 38px; height: 38px; }
  .hero-empty { justify-content: center; align-items: center; }
  .hero-empty-content { width: 100%; }
}
@media (max-width: 380px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .nav-right > a.btn-ghost { display: none; }
}

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.font-bold   { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
