/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --teal-50:  #f0fdfa; --teal-100: #ccfbf1; --teal-200: #99f6e4;
  --teal-400: #2dd4bf; --teal-500: #14b8a6; --teal-600: #0d9488;
  --teal-700: #0f766e; --teal-800: #115e59; --teal-900: #134e4a;
  --gray-50:  #f8fafc; --gray-100: #f1f5f9; --gray-200: #e2e8f0;
  --gray-300: #cbd5e1; --gray-400: #94a3b8; --gray-500: #64748b;
  --gray-600: #475569; --gray-700: #334155; --gray-800: #1e293b;
  --gray-900: #0f172a;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--gray-800); background: var(--gray-50); line-height: 1.6; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
img { max-width: 100%; height: auto; }

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--gray-900); }
.text-sm  { font-size: .82rem; }
.text-muted { color: var(--gray-400); }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: .75rem; }
.mb-1 { margin-bottom: .75rem; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: 8px; font-size: .875rem;
  font-weight: 600; cursor: pointer; border: none; transition: all .15s;
  text-decoration: none; line-height: 1.4;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary   { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-teal      { background: var(--teal-600); color: #fff; }
.btn-teal:hover { background: var(--teal-700); color: #fff; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-800); }
.btn-success   { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warning   { background: #d97706; color: #fff; }
.btn-info      { background: #0369a1; color: #fff; }
.btn-outline   { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm  { padding: .4rem .9rem; font-size: .82rem; }
.btn-xs  { padding: .25rem .6rem; font-size: .75rem; border-radius: 6px; }
.btn-lg  { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── Forms ──────────────────────────────────────────────────────────── */
.form-control {
  display: block; width: 100%; padding: .55rem .85rem;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-size: .875rem; font-family: inherit; color: var(--gray-800);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-control:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.form-control.is-invalid { border-color: #dc2626; }
.form-control-sm { padding: .35rem .7rem; font-size: .82rem; }
.form-label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; color: var(--gray-700); }
.form-group { margin-bottom: 1.1rem; }
.form-error { display: block; color: #dc2626; font-size: .78rem; margin-top: .25rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-col-2 { grid-column: 1/-1; }
.form-divider { border: none; border-top: 1px solid var(--gray-100); margin: 1.5rem 0; }
.form-section-title { font-size: .9rem; font-weight: 700; color: var(--teal-700); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.input-password { position: relative; }
.input-password .form-control { padding-right: 2.5rem; }
.pass-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .9rem; color: var(--gray-400); }

/* ─── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; gap: .75rem;
}
.card-header h3 { font-size: 1rem; margin: 0; }
.card-body { padding: 1.25rem; }
.card-body.p0 { padding: 0; }
.card-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.card-row { display: flex; gap: 1.5rem; }
.info-box { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 8px; padding: .75rem 1rem; font-size: .875rem; }
.info-box-blue { background: #eff6ff; border-color: #bfdbfe; }

/* ─── Alerts / Badges ────────────────────────────────────────────────── */
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .875rem; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .6rem; border-radius: 20px; font-size: .72rem;
  font-weight: 600; white-space: nowrap;
}
.badge-success   { background: #dcfce7; color: #15803d; }
.badge-danger    { background: #fee2e2; color: #dc2626; }
.badge-warning   { background: #fef3c7; color: #d97706; }
.badge-info      { background: #dbeafe; color: #1d4ed8; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }

/* ─── Tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-50); color: var(--gray-700); }
.data-table tr:hover td { background: var(--teal-50); }
.data-table tr:last-child td { border-bottom: none; }
.empty-row { text-align: center; color: var(--gray-400); padding: 2.5rem !important; font-style: italic; }

/* ─── Lists ──────────────────────────────────────────────────────────── */
.list-item { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--gray-50); }
.list-item:last-child { border-bottom: none; }
.list-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.list-icon { font-size: 1.4rem; flex-shrink: 0; width: 36px; text-align: center; }
.list-info { flex: 1; min-width: 0; }
.list-name { font-weight: 600; font-size: .9rem; }
.list-meta { font-size: .78rem; color: var(--gray-400); margin-top: .1rem; }
.list-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ─── Stars ──────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: .1rem; }
.star { color: var(--gray-200); font-size: 1.1rem; }
.star.filled { color: #f59e0b; }

/* ─── Pagination ─────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; font-size: .82rem; color: var(--gray-600); border: 1px solid var(--gray-200); background: #fff; text-decoration: none; }
.page-link:hover { background: var(--teal-50); border-color: var(--teal-400); color: var(--teal-700); }
.page-link.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.page-link.disabled { color: var(--gray-300); pointer-events: none; }

/* ─── Progress bars ──────────────────────────────────────────────────── */
.progress-bar-wrap { background: var(--gray-100); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar-fill { background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); height: 100%; border-radius: 99px; transition: width .4s; }

/* ─── Avatar ─────────────────────────────────────────────────────────── */
.avatar-initials {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.avatar-initials.sm { width: 36px; height: 36px; font-size: .8rem; }

/* ─── AUTH PAGES ─────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; background: linear-gradient(135deg, var(--teal-50), #f0f9ff);
}
.auth-card {
  background: #fff; padding: 2.5rem; flex: 1;
  max-width: 460px; margin: auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.auth-card.wide { max-width: 780px; }
.auth-page.register { align-items: flex-start; padding: 2rem; justify-content: center; }
.auth-page.register .auth-card { margin: 0 auto; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo .logo-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.auth-logo h1 { font-size: 1.25rem; color: var(--teal-700); }
.auth-logo p { font-size: .8rem; color: var(--gray-400); }
.auth-title { font-size: 1.4rem; margin-bottom: .25rem; }
.auth-sub { color: var(--gray-500); font-size: .875rem; margin-bottom: 1.5rem; }
.auth-links { margin-top: 1.25rem; text-align: center; font-size: .82rem; color: var(--gray-500); }
.auth-side {
  flex: 1; display: none; background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  align-items: center; justify-content: center; padding: 3rem;
}
@media (min-width: 900px) { .auth-side { display: flex; } .auth-card { margin: auto 0 auto auto; border-radius: 0; box-shadow: none; min-height: 100vh; overflow-y: auto; } }
.auth-side-content { max-width: 360px; }
.auth-feature { display: flex; align-items: flex-start; gap: 1rem; color: rgba(255,255,255,.85); margin-bottom: 1.5rem; font-size: .95rem; line-height: 1.5; }
.auth-feature > span:first-child { font-size: 1.5rem; flex-shrink: 0; }

/* ─── DASHBOARD LAYOUT ────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: linear-gradient(180deg, var(--teal-800) 0%, var(--teal-900) 100%);
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; z-index: 100;
}
.sidebar-brand { padding: 1.25rem 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand-inner { display: flex; align-items: center; gap: .75rem; }
.sidebar-brand-icon { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.sidebar-brand-text .title { color: #fff; font-weight: 800; font-size: .9rem; }
.sidebar-brand-text .sub { color: var(--teal-200); font-size: .72rem; }
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.nav-section { display: block; padding: .5rem .75rem .25rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-400); }
.nav-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: 8px; color: rgba(255,255,255,.75); font-size: .875rem; transition: all .15s; margin-bottom: .1rem; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-link .icon { font-size: 1.1rem; flex-shrink: 0; width: 20px; }
.nav-badge { margin-left: auto; background: #dc2626; color: #fff; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h); background: #fff;
  border-bottom: 1px solid var(--gray-200); display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem; z-index: 90; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar-actions { display: flex; align-items: center; gap: .85rem; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.topbar-user { display: flex; align-items: center; gap: .6rem; padding: .4rem .75rem; border-radius: 8px; background: var(--gray-50); border: 1px solid var(--gray-200); cursor: pointer; }
.topbar-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; overflow: hidden; }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-username { font-size: .85rem; font-weight: 600; }
.topbar-role { font-size: .72rem; color: var(--gray-400); text-transform: capitalize; }
/* Generic dropdown */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + .35rem); background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow-md); min-width: 180px; z-index: 200; overflow: hidden; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: .7rem 1rem; font-size: .875rem; color: var(--gray-700); text-decoration: none; }
.dropdown-item:hover { background: var(--teal-50); color: var(--teal-700); }
.dropdown-divider { border-top: 1px solid var(--gray-100); }
/* Legacy user-menu aliases */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: .6rem; }
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + .35rem); background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow-md); min-width: 180px; z-index: 200; overflow: hidden; }
.user-dropdown.show { display: block; }
.user-dropdown a { display: block; padding: .7rem 1rem; font-size: .875rem; color: var(--gray-700); }
.user-dropdown a:hover { background: var(--teal-50); color: var(--teal-700); }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* Main content */
.main-wrap,
.main-content { margin-left: var(--sidebar-w); padding-top: var(--topbar-h); flex: 1; min-width: 0; }
.page-content { padding: 1.5rem 2rem; max-width: 1400px; }

/* Page header */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-title { font-size: 1.5rem; font-weight: 800; }
.page-sub { color: var(--gray-500); font-size: .875rem; margin-top: .2rem; }
.page-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ─── Stats Grid ──────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-500); margin-top: .25rem; }
.stat-num-sm { font-size: 1.25rem; font-weight: 700; color: var(--teal-600); }

/* ─── Dashboard grid ─────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }

/* ─── Details ────────────────────────────────────────────────────────── */
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; padding: .5rem 1.25rem; border-bottom: 1px solid var(--gray-50); font-size: .875rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--gray-500); min-width: 120px; }
.detail-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

/* ─── Guide cards ────────────────────────────────────────────────────── */
.guide-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.guide-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-card-top { display: flex; gap: .85rem; padding: 1.25rem 1.25rem .75rem; }
.guide-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.guide-photo-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }
.guide-card-info h3 { font-size: 1rem; margin-bottom: .2rem; }
.guide-id { font-size: .75rem; }
.guide-card-details { padding: 0 1.25rem .75rem; font-size: .82rem; }
.guide-detail { color: var(--gray-500); margin-bottom: .25rem; }
.guide-bio { font-size: .82rem; color: var(--gray-500); padding: 0 1.25rem .75rem; line-height: 1.5; }
.guide-card-actions { display: flex; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--gray-100); }

/* ─── Search / filter ────────────────────────────────────────────────── */
.search-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.search-input { min-width: 200px; }
.filter-card .card-body, .filter-card { border-radius: var(--radius); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.results-count { font-size: .82rem; margin-bottom: .75rem; }

/* ─── Profile layout ─────────────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.profile-photo-lg { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.profile-avatar-lg { width: 100px; height: 100px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto .5rem; }
.profile-stats-row { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; }

/* ─── Booking detail layout ──────────────────────────────────────────── */
.booking-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.booking-detail-layout { display: grid; grid-template-columns: 1fr 240px; gap: 1.5rem; align-items: start; }

/* ─── Approval cards ─────────────────────────────────────────────────── */
.approval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.approval-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.approval-header { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-bottom: 1px solid var(--gray-100); }
.approval-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.approval-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; flex-shrink: 0; }
.approval-details { padding: .5rem 0; }
.approval-bio { padding: .5rem 1.25rem; font-size: .82rem; color: var(--gray-500); line-height: 1.5; border-top: 1px solid var(--gray-50); }
.approval-actions { display: flex; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); flex-wrap: wrap; align-items: center; }

/* ─── Award ──────────────────────────────────────────────────────────── */
.award-card { background: linear-gradient(135deg, #fff9db, #fef3c7) !important; border-color: #fde68a !important; }
.award-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; display: block; }
.award-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto .75rem; }
.award-name { font-size: 1.2rem; margin-bottom: .5rem; }
.award-desc { color: var(--gray-500); font-size: .875rem; margin-top: .5rem; }
.rank-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ─── Rating ─────────────────────────────────────────────────────────── */
.rating-grid { display: flex; flex-direction: column; gap: .6rem; }
.rating-row { display: flex; align-items: center; gap: .75rem; font-size: .82rem; }
.rating-label { min-width: 140px; color: var(--gray-600); }
.rating-bar { flex: 1; height: 8px; background: var(--gray-100); border-radius: 99px; overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); border-radius: 99px; }
.rating-num { min-width: 28px; text-align: right; font-weight: 600; color: var(--teal-700); }
.rating-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.star-rating-input { display: flex; gap: .25rem; }
.star-rating-input label { cursor: pointer; }
.star-rating-input input { display: none; }
.star-rating-input span { font-size: 1.5rem; color: var(--gray-300); }
.star-rating-input input:checked ~ label span, .star-rating-input label:hover span,
.star-rating-input label:hover ~ label span { color: #f59e0b; }

/* ─── Reviews ────────────────────────────────────────────────────────── */
.review-item { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-50); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; flex-wrap: wrap; }
.review-text { font-size: .875rem; color: var(--gray-600); line-height: 1.5; }

/* ─── Module cards ───────────────────────────────────────────────────── */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.module-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.module-thumb { width: 100%; height: 180px; object-fit: cover; }
.module-thumb-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--teal-100), var(--teal-200)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.module-body { padding: 1.25rem; }
.module-title { font-size: 1rem; margin-bottom: .4rem; }
.module-desc { font-size: .82rem; color: var(--gray-500); margin-bottom: .75rem; }
.module-meta { font-size: .78rem; color: var(--gray-400); margin-bottom: .75rem; }
.lesson-list { border: 1px solid var(--gray-100); border-radius: 8px; overflow: hidden; }
.lesson-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-bottom: 1px solid var(--gray-50); font-size: .82rem; flex-wrap: wrap; }
.lesson-item:last-child { border-bottom: none; }
.lesson-icon { font-size: 1rem; }
.lesson-content { padding: .75rem 1.25rem; font-size: .82rem; line-height: 1.6; color: var(--gray-600); background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* ─── Itinerary grid ─────────────────────────────────────────────────── */
.itinerary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

/* ─── Calendar ───────────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-header-day { text-align: center; font-size: .72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; padding: .5rem; }
.cal-day { min-height: 80px; border: 1px solid var(--gray-100); border-radius: 6px; padding: .35rem; font-size: .78rem; background: #fff; }
.cal-day.today { border-color: var(--teal-400); background: var(--teal-50); }
.cal-day.other-month { background: var(--gray-50); color: var(--gray-300); }
.cal-day-num { font-weight: 600; margin-bottom: .25rem; }
.cal-event { font-size: .68rem; padding: .1rem .35rem; border-radius: 4px; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.booked  { background: var(--teal-100); color: var(--teal-800); }
.cal-event.blocked { background: #fee2e2; color: #b91c1c; }
.cal-legend { display: flex; gap: 1rem; margin-top: 1rem; font-size: .78rem; }
.legend-item { display: flex; align-items: center; gap: .4rem; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; }
.cal-dot.booked  { background: var(--teal-500); }
.cal-dot.blocked { background: #dc2626; }
.cal-dot.available { background: var(--gray-300); }

/* ─── Bar chart ──────────────────────────────────────────────────────── */
.bar-chart { display: flex; align-items: flex-end; gap: .5rem; height: 180px; padding: .5rem 0; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-label { font-size: .7rem; color: var(--gray-400); margin-bottom: .35rem; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 4px; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); border-radius: 4px 4px 0 0; }
.bar-value { font-size: .7rem; font-weight: 600; color: var(--teal-700); margin-top: .25rem; }

/* ─── Modals ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 720px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--gray-100); }
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-body { padding: 1.25rem; }
.modal form > * { padding-left: 1.25rem; padding-right: 1.25rem; }
.modal form > .form-group { padding-top: .5rem; }
.modal form > :first-child { padding-top: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); text-align: right; }

/* ─── Empty state ────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-400); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-600); margin-bottom: .5rem; }

/* ─── Guide table cell ───────────────────────────────────────────────── */
.guide-cell { display: flex; align-items: center; gap: .75rem; }
.table-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ─── PUBLIC LAYOUT ──────────────────────────────────────────────────── */
.public-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100); box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.public-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo-text .title { font-size: .95rem; font-weight: 800; color: var(--teal-700); }
.nav-logo-text .sub { font-size: .68rem; color: var(--gray-400); }
.nav-links { display: flex; gap: .25rem; flex: 1; justify-content: center; }
.nav-links a { padding: .45rem .85rem; border-radius: 7px; font-size: .875rem; font-weight: 500; color: var(--gray-600); }
.nav-links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav-cta { display: flex; gap: .6rem; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-600) 50%, #0284c7 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='700' cy='250' rx='400' ry='350' fill='rgba(255,255,255,.04)'/%3E%3Cellipse cx='100' cy='400' rx='300' ry='250' fill='rgba(255,255,255,.03)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1.25rem; backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero-accent { color: var(--teal-200); }
.hero-sub { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.section-sub { text-align: center; color: var(--gray-500); margin-bottom: 2.5rem; }
.how-section { background: var(--gray-50); }
.page-hero { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; padding: 3rem 1.5rem; text-align: center; }
.page-hero h1 { color: #fff; font-size: 2rem; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: .5rem; }

/* ─── Destinations grid ──────────────────────────────────────────────── */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.dest-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; transition: transform .15s, box-shadow .15s; }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dest-icon { font-size: 2.5rem; margin-bottom: .6rem; }
.dest-name { font-weight: 700; margin-bottom: .3rem; }
.dest-desc { font-size: .78rem; color: var(--gray-400); }

/* ─── Blog grid ──────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.blog-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-img { width: 100%; height: 180px; object-fit: cover; }
.blog-img-placeholder { width: 100%; height: 180px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body { padding: 1.25rem; }
.blog-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); }
.blog-title { font-size: 1rem; margin: .4rem 0; }
.blog-excerpt { font-size: .82rem; color: var(--gray-500); margin-bottom: .5rem; }
.blog-date { font-size: .75rem; color: var(--gray-400); }

/* ─── Award section ──────────────────────────────────────────────────── */
.award-section { background: linear-gradient(135deg, #fffbeb, #fef9c3); }
.award-banner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.award-text { flex: 1; min-width: 260px; }
.award-eyebrow { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-600); margin-bottom: .5rem; }
.award-text h2 { font-size: 1.75rem; margin: .4rem 0; }
.award-photo-wrap { flex-shrink: 0; }
.award-photo-lg { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.award-avatar-lg { width: 160px; height: 160px; border-radius: 50%; background: var(--teal-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 700; }

/* ─── Steps ──────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; text-align: center; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-600); color: #fff; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .875rem; color: var(--gray-500); }

/* ─── Features grid ──────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.feature-item { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-item h3 { margin-bottom: .4rem; }
.feature-item p { font-size: .875rem; color: var(--gray-500); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.public-footer { background: var(--gray-900); color: var(--gray-400); padding: 3rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-brand .title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .82rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .82rem; color: var(--gray-400); margin-bottom: .35rem; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 1.25rem; display: flex; justify-content: space-between; font-size: .78rem; flex-wrap: wrap; gap: .5rem; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; }
  .main-wrap, .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .profile-layout, .booking-layout, .booking-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .detail-grid-2, .detail-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-content { padding: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-row { flex-direction: column; }
}
