/* ═══════════════════════════════════════════════════════════
   TRIP AURA VOYAGES — Design System (VOYA Aesthetic)
   Fonts: Cormorant Garamond (serif) + Bricolage Grotesque (sans)
   Palette: Ink / Sand / Clay / Rust / Olive / Cream
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Core palette */
  --ink:       #0d0b09;
  --sand:      #f2ede6;
  --clay:      #c8a882;
  --rust:      #b85c38;
  --rust-dark: #9e4e30;
  --olive:     #4a5240;
  --cream:     #faf8f3;
  --mist:      #e8e2d9;
  --white:     #ffffff;

  /* Semantic aliases (for compatibility) */
  --color-brand-primary:    var(--olive);
  --color-brand-secondary:  var(--rust);
  --color-brand-accent:     var(--clay);
  --color-brand-light:      var(--clay);
  --color-brand-xlight:     #f0ece3;
  --color-earth-xlight:     var(--sand);
  --color-earth-mid:        var(--clay);
  --color-text-primary:     var(--ink);
  --color-text-secondary:   rgba(13,11,9,0.65);
  --color-text-muted:       rgba(13,11,9,0.42);
  --color-bg-muted:         var(--sand);
  --color-border:           var(--mist);
  --color-success:          #3d6b44;
  --color-danger:           #b03a2e;
  --color-warning:          #a07030;
  --color-info:             var(--olive);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Bricolage Grotesque', system-ui, sans-serif;

  /* Spacing */
  --nav-height: 80px;
  --container:  1360px;
  --gap:        2rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(13,11,9,0.08);
  --shadow-md:  0 4px 16px rgba(13,11,9,0.10);
  --shadow-lg:  0 8px 32px rgba(13,11,9,0.12);
  --shadow-xl:  0 16px 48px rgba(13,11,9,0.15);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.15; }

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 60px);
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-xs { padding: 40px 0; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.3s;
  box-sizing: border-box;
  width: 100%;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 0; gap: 8px; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 1;   /* allow shrinking on very small screens */
  min-width: 0;
  overflow: hidden;
}
.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-top {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.25em;
}
.brand-bottom {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.45em;
  color: var(--clay);
  text-transform: uppercase;
  margin-top: 2px;
}
.navbar-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 32px);
  flex-shrink: 0;  /* links never shrink — they hide on mobile */
}
.navbar-links > a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,11,9,0.55);
  text-decoration: none;
  transition: color 0.25s;
  font-weight: 400;
}
.navbar-links > a:hover,
.navbar-links > a.active { color: var(--ink); }



/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--mist);
  text-decoration: none;
  color: rgba(13,11,9,0.45);
  transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}



/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}
.btn-primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: rgba(13,11,9,0.6);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--sand);
}
.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-white:hover { background: var(--cream); }
.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn-lg { padding: 18px 48px; font-size: 13px; }
.btn-xl { padding: 20px 56px; font-size: 14px; }

/* ── Cards — see improved definitions below ── */

/* ── Trip Card ───────────────────────────────────────────── */
.trip-card {
  background: var(--white);
  border: 1px solid var(--mist);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative;
}
.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.trip-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
}
.trip-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.3s;
  filter: brightness(0.9);
}
.trip-card:hover .trip-card-image img {
  transform: scale(1.07);
  filter: brightness(1);
}
.trip-card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--rust);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  font-weight: 400;
}
.trip-card-badge.featured { background: var(--olive); }
.wishlist-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.9);
  border: none; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
  transition: all 0.25s;
  color: rgba(13,11,9,0.4);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--rust); background: var(--white); }
/* Inline (non-absolute) variant — when wishlist-btn also has btn class */
.wishlist-btn.btn, .wishlist-btn.w-full {
  position: static;
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Currency dropdown */
.currency-menu{position:absolute;top:44px;right:0;background:rgba(255,255,255,0.98);border:1px solid rgba(0,0,0,0.08);border-radius:14px;box-shadow:var(--shadow-lg);min-width:160px;padding:8px;display:none;z-index:300}
.currency-menu.open{display:block}
.currency-item{display:flex;justify-content:space-between;align-items:center;padding:10px 10px;border-radius:10px;color:var(--color-text);text-decoration:none;font-size:13px}
.currency-item:hover{background:rgba(0,0,0,0.04)}
.currency-item.active{background:rgba(148,82,52,0.10);color:var(--rust)}

/* Admin checklist */
.checklist{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow:auto;border:1px solid rgba(0,0,0,0.08);border-radius:14px;padding:10px;background:rgba(255,255,255,0.7)}
.check-item{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--color-text);cursor:pointer}
.check-item input{margin:0}

.trip-card-body { padding: 24px 24px 16px; flex: 1; }
.trip-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.trip-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 14px;
}
.trip-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.trip-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--mist);
  display: flex; justify-content: space-between; align-items: center;
}
.trip-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.trip-price-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(13,11,9,0.55);
  font-weight: 400;
}
.form-control {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 16px;
  border: 1px solid var(--mist);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13,11,9,0.06);
}
.form-control::placeholder { color: rgba(13,11,9,0.3); }
.form-hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.required { color: var(--rust); }

select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d0b09' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--mist);
  padding: 4px 4px 4px 20px;
  gap: 12px;
  box-shadow: var(--shadow-xl);
}
.search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
}
.search-field::placeholder { color: rgba(13,11,9,0.35); }

/* ── Section Typography ──────────────────────────────────── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
  font-weight: 400;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
}
.section-title em { font-style: italic; color: var(--rust); }
.section-header {
  margin-bottom: 56px;
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-top: 16px;
  max-width: 520px;
  line-height: 1.75;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14px;
  border-left: 3px solid transparent;
  background: var(--sand);
}
.alert-success { border-color: var(--color-success); background: #f0f5f1; }
.alert-danger   { border-color: var(--color-danger);  background: #faf0ef; }
.alert-warning  { border-color: var(--color-warning); background: #faf5ec; }
.alert-info     { border-color: var(--olive);         background: #eef2ec; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.badge-green  { background: #e8f2ea; color: var(--color-success); }
.badge-red    { background: #faeaea; color: var(--color-danger);  }
.badge-yellow { background: #faf4e6; color: var(--color-warning); }
.badge-blue   { background: #edf2f8; color: var(--olive); }

/* ── Stars ───────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--clay); font-size: 14px; }
.star.empty { color: var(--mist); }

/* ── Hero (Public) ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 12s ease-out forwards;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,11,9,0.1) 0%, rgba(13,11,9,0.7) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero .container { position: relative; z-index: 2; padding-bottom: 100px; }
.hero-content { max-width: 700px; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--clay); display: block; }
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--mist);
  text-decoration: none;
  font-size: 13px;
  color: rgba(13,11,9,0.55);
  transition: all 0.2s;
}
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-link.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-link.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  padding: 80px 0 40px;
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.4);
}
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}


/* ═══════════════════════════════════════════════════════════
   COMPONENTS — Cards, Tables, Badges, Forms, Admin UI
   ═══════════════════════════════════════════════════════════ */

/* ── Table ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 0 0 6px 6px; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--mist);
  white-space: nowrap;
  background: var(--sand);
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mist);
  vertical-align: middle;
  color: var(--color-text-secondary);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--cream); }

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 6px;
  overflow: visible;    /* IMPORTANT: visible so dropdowns/content shows */
}
.card-header {
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--mist);
  background: var(--sand);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
}
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--mist);
  background: var(--sand);
}

/* ── Buttons (additional variants) ─────────────────────────────────────── */
.btn-danger {
  background: var(--color-danger);
  color: var(--white);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background: #96312a;
  border-color: #96312a;
  color: var(--white);
  transform: translateY(-1px);
}
.btn-success {
  background: var(--color-success);
  color: var(--white);
  border-color: var(--color-success);
}
.btn-success:hover { background: #2f5434; color: var(--white); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
}
.badge-green  { background: #e4f2e8; color: #2f6b38; }
.badge-red    { background: #faeaea; color: #b03a2e; }
.badge-yellow { background: #faf4e6; color: #a07030; }
.badge-blue   { background: #edf2f8; color: #2e5fa0; }
.badge-grey, .badge-gray { background: #efefed; color: rgba(13,11,9,0.5); }
.badge-orange { background: #fef3c7; color: #92400e; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-left: 3px solid var(--mist);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-success { border-color: var(--color-success); background: #f0f5f1; color: #2f5434; }
.alert-danger  { border-color: var(--color-danger);  background: #faf0ef; color: #8b2e25; }
.alert-warning { border-color: var(--color-warning); background: #faf5ec; color: #7a5520; }
.alert-info    { border-color: var(--olive);         background: #eef2ec; color: #3a4830; }

/* ── Stars ──────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star  { color: var(--clay); font-size: 14px; }
.star.empty { color: var(--mist); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.4;
}
.form-control:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.12);
}
.form-control::placeholder { color: rgba(13,11,9,0.25); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d0b09' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
  cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 3px; line-height: 1.4; }
.required  { color: var(--rust); }
.setting-desc { font-size: 11px; color: var(--color-text-muted); margin-top: 3px; line-height: 1.4; }

/* ── Admin Layout ───────────────────────────────────────────────────────── */
.admin-layout {
  display: block;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--ink);
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.admin-sidebar-header { border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  text-decoration: none;
}
.admin-sidebar-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav-group { margin-bottom: 6px; }
.admin-nav-label {
  padding: 8px 20px 4px;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
  border-left: 2px solid var(--clay);
  padding-left: 18px;
}
.admin-main {
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--cream);
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 90;
  flex-shrink: 0;
}
.admin-topbar h1 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.admin-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.admin-content {
  padding: 28px;
  flex: 1;
}

/* ── Stat Cards ─────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 22px 24px;
  transition: box-shadow 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-change { font-size: 12px; color: var(--color-text-muted); }
.stat-change.up   { color: var(--color-success); }
.stat-change.down { color: var(--color-danger); }

/* ── Settings ───────────────────────────────────────────────────────────── */
.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--mist);
  margin-bottom: 20px;
}
.settings-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  transition: all 0.15s;
  white-space: nowrap;
}
.settings-tab:hover { color: var(--ink); }
.settings-tab.active {
  color: var(--rust);
  border-bottom-color: var(--rust);
  font-weight: 600;
}
.settings-panel {
  display: none !important;
}
.settings-panel.active {
  display: block !important;
}
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-section-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mist);
  margin-bottom: 4px;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--mist);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.modal-body  { padding: 22px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--mist);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  background: var(--sand);
}

/* ── Upload Zone ────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--mist);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--rust);
  background: rgba(184,92,56,0.04);
}
.upload-zone input[type="file"] {
  /*
    Keep the file input hidden.
    If the input overlays the zone and a parent click handler calls preventDefault,
    some browsers will not open the file picker. We trigger the picker via JS.
  */
  display: none;
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-progress { display: none; margin: 1rem 0; }
.upload-progress.active { display: block; }
.progress-bar-wrap {
  height: 5px;
  background: var(--mist);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ── Gallery Grid ───────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid var(--mist);
  transition: border-color 0.2s;
}
.gallery-item.is-cover { border-color: var(--rust); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item-actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 6px;
}
.gallery-item:hover .gallery-item-actions { opacity: 1; }

/* ── Itinerary Builder ──────────────────────────────────────────────────── */
.itinerary-day {
  border: 1px solid var(--mist);
  border-radius: 5px;
  margin-bottom: 8px;
}
.itinerary-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--sand);
  cursor: pointer;
  user-select: none;
}
.itinerary-day-header:hover { background: var(--mist); }
.day-number {
  width: 26px;
  height: 26px;
  background: var(--rust);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.itinerary-day-body { display: none; padding: 14px; background: var(--white); }
.itinerary-day.expanded .itinerary-day-body { display: block; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 7px 13px;
  font-size: 12px;
  border: 1px solid var(--mist);
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}
.pagination a:hover   { background: var(--sand); color: var(--ink); }
.pagination .current  {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
  font-weight: 600;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-text-muted); }
code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--rust);
}
.audit-action {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  background: var(--sand);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--olive);
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Scroll-to-top ──────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ── Wishlist btn ───────────────────────────────────────────────────────── */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(250,248,243,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.2s;
  text-decoration: none;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--rust); background: var(--white); }
/* Inline variant — when used as a regular button */
.wishlist-btn.btn, .wishlist-btn.w-full {
  position: static;
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Full Overhaul
   ═══════════════════════════════════════════════════════════ */

/* Footer mobile fix */
@media (max-width: 768px) {
  .footer { padding: 60px 0 32px; }
  .footer > .container > .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
  }
}

/* Trip detail sidebar stacking */
@media (max-width: 900px) {
  .trip-detail-layout {
    grid-template-columns: 1fr !important;
  }
  .trip-detail-sidebar {
    order: -1;
  }
}

/* Hero section mobile */
@media (max-width: 768px) {
  .hero { min-height: 85vh; padding-top: 100px; }
  .hero-content { padding: 0 8px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px) !important; }

  /* Booking bar stacking */
  .booking-bar,
  .booking-bar-inner {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .booking-bar .btn { width: 100%; }

  /* Trip cards */
  .trip-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trip-card-footer .btn { width: 100%; text-align: center; }

  /* Generic stat/feature grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }

  /* Review cards */
  .review-header { flex-direction: column; gap: 8px; }

  /* Package cards */
  .package-card-header { flex-wrap: wrap; }

  /* Itinerary */
  .itinerary-item { flex-direction: column; }

  /* Tables — horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }

  /* Buttons in forms */
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  /* Section padding */
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }

  /* Container */
  .container { padding: 0 16px; }
}

/* Tablet */
@media (max-width: 900px) and (min-width: 769px) {
  .container { padding: 0 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer > .container > .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

/* Mobile menu — improved */
.mobile-menu {
  display: none;          /* hidden by default, JS adds .open */
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 190;
  background: var(--cream);
  border-bottom: 1px solid var(--mist);
  box-shadow: 0 8px 32px rgba(13,11,9,0.18);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  padding: 16px 20px 28px;
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13,11,9,0.65);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  transition: color 0.2s;
  display: block;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--rust); }
.mobile-menu .mobile-menu-section {
  padding: 12px 0 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  border-bottom: none;
}
.mobile-menu .mobile-menu-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--mist);
}
.mobile-menu .mobile-menu-pills a {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--mist);
  color: rgba(13,11,9,0.55);
  border-bottom: 1px solid var(--mist);
  background: none;
  display: inline-flex;
  width: auto;
}
.mobile-menu .mobile-menu-pills a.active,
.mobile-menu .mobile-menu-pills a:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.mobile-menu .mobile-cta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 8px;
  border-bottom: none;
}
.mobile-menu .mobile-cta .btn { flex: 1; justify-content: center; }

/* Hamburger animation */
.navbar-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.navbar-mobile-btn:hover { background: var(--mist); }
.navbar-mobile-btn svg { display: block; }
.navbar-mobile-btn[aria-expanded="true"] .icon-open { display: none; }
.navbar-mobile-btn[aria-expanded="false"] .icon-close { display: none; }
@media (max-width: 768px) {
  .navbar-mobile-btn { display: flex; align-items: center; justify-content: center; }
  .navbar-links { display: none; }
}

/* ── Homepage brand strip (logo on ink) ──────────────────── */
.brand-strip {
  padding: 60px 0 0;
}
.brand-strip-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  gap: 16px;
}
.brand-logo-img {
  width: auto;
  max-width: 320px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  /* Slight glow so logo reads on dark bg */
  filter: brightness(1.05) drop-shadow(0 0 40px rgba(200,168,130,0.18));
  display: block;
  margin: 0 auto;
}
.brand-logo-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.brand-logo-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 400;
}
.brand-strip-stats {
  display: flex;
  gap: 0;
}
.brand-strip-stat {
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.brand-strip-stat:last-child { border-right: none; }
.brand-strip-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
}
.brand-strip-stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .brand-logo-img { max-width: 220px; max-height: 120px; }
  .brand-strip-stats { flex-wrap: wrap; }
  .brand-strip-stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .brand-strip-stat:nth-child(even) { border-right: none; }
  .brand-strip-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Trips page layout (sidebar + grid) ─────────────────────── */
.trips-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
/* Tablet: narrower sidebar but keep side-by-side */
@media (max-width: 1024px) and (min-width: 769px) {
  .trips-layout {
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
  }
}
/* Mobile only: stack vertically */
@media (max-width: 768px) {
  .trips-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .trips-layout aside {
    order: -1; /* filters above trips on mobile */
  }
  .trips-layout aside .card {
    position: static !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE-SPECIFIC RESPONSIVE LAYOUTS
   All grids that were hardcoded inline — now class-controlled
   ═══════════════════════════════════════════════════════════ */

/* ── Trip detail: main 2-col → stacked ─────────────────── */
.trip-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .trip-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Booking card moves to top on mobile */
  .trip-detail-layout > div:last-child {
    order: -1;
  }
}

/* ── Why Choose Us: text | features grid ───────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
}
@media (max-width: 480px) {
  .why-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── About: who we are 2-col ────────────────────────────── */
.about-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 768px) {
  .about-who-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Contact: info | form ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── Client portal (/my/) ───────────────────────────────── */
.client-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .client-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .client-layout aside {
    order: -1; /* nav tabs above content on mobile */
  }
  /* Client sidebar nav: horizontal scrollable tabs on mobile */
  .client-layout aside .card {
    position: static !important;
  }
  .client-layout aside .card > div {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .client-layout aside .card > div > a {
    white-space: nowrap;
    border-bottom: none !important;
    border-right: 1px solid var(--mist);
    flex-shrink: 0;
    padding: 12px 16px !important;
  }
  .client-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .client-stats-grid {
    grid-template-columns: 1fr;
  }
}
