/* =========================================================
   ADMIN DASHBOARD — Ecla Adventures
   Clean, minimal admin panel styles
   ========================================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 250px;
  --sidebar-collapsed: 64px;
  --topbar-h: 56px;
  --emerald: #0f4c3a;
  --emerald-light: #15694f;
  --emerald-dark: #0a3329;
  --orange: #e8792b;
  --orange-light: #f59e4f;
  --bg: #f4f6f9;
  --white: #fff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --danger: #e53e3e;
  --success: #38a169;
  --warning: #d69e2e;
  --info: #3182ce;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --transition: .25s ease;
}

html { font-size: 14px; }

body {
  font-family: 'Raleway', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 40%, var(--emerald-light) 100%);
  transition: opacity .4s, visibility .4s;
}
.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 92%;
  max-width: 400px;
  padding: 40px 36px 36px;
  text-align: center;
  animation: loginSlideUp .5s ease;
}

@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 12px;
}

.login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 4px;
}

.login-card__subtitle {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.login-card__form {
  text-align: left;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.login-field label i {
  color: var(--emerald-light);
  margin-right: 4px;
  width: 14px;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15,76,58,.12);
  background: #fff;
}

.login-error {
  font-size: .8rem;
  color: var(--danger);
  min-height: 20px;
  margin-bottom: 6px;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .1s;
}

.login-btn:hover {
  background: var(--emerald-light);
}

.login-btn:active {
  transform: scale(.98);
}

.login-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Hide dashboard until authenticated */
body.auth-pending .sidebar,
body.auth-pending .main-wrap {
  display: none;
}

@media (max-width: 480px) {
  .login-card { padding: 30px 24px 28px; }
  .login-card__logo { width: 52px; height: 52px; }
  .login-card__title { font-size: 1.3rem; }
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--emerald);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  z-index: 1000;
  overflow: visible;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

/* Brand */
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  min-height: var(--topbar-h);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar__brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar__brand-text {
  opacity: 0;
  pointer-events: none;
}

/* Nav */
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
}

.sidebar__list {
  list-style: none;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.sidebar__link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.sidebar__link.active {
  color: var(--orange);
  background: rgba(255,255,255,.1);
  border-left-color: var(--orange);
}

.sidebar__link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar__link span {
  opacity: 1;
  transition: opacity var(--transition);
  overflow: hidden;
}

.sidebar.collapsed .sidebar__link span {
  width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.sidebar.collapsed .sidebar__link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
  position: relative;
}

/* Tooltip on collapsed sidebar hover */
.sidebar.collapsed .sidebar__link:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  background: #1a1a2e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .78rem;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Footer */
.sidebar__footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 8px 0;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar__link--back {
  font-size: .85rem;
}

/* =========================================================
   MAIN WRAPPER
   ========================================================= */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
  overflow-x: hidden;
  max-width: calc(100vw - var(--sidebar-w));
}

body.sidebar-collapsed .main-wrap {
  margin-left: var(--sidebar-collapsed);
  max-width: calc(100vw - var(--sidebar-collapsed));
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 900;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.topbar__toggle:hover {
  background: var(--bg);
}

.topbar__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notification bell */
.topbar__icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
}

.topbar__icon-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.topbar__badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.topbar__badge:empty,
.topbar__badge[data-count="0"] {
  display: none;
}

/* Profile */
.topbar__profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.topbar__profile:hover {
  background: var(--bg);
}

.topbar__avatar {
  font-size: 1.6rem;
  color: var(--emerald);
  line-height: 1;
}

.topbar__profile-name {
  font-weight: 600;
  font-size: .9rem;
}

.topbar__caret {
  font-size: .6rem;
  color: var(--text-light);
  transition: transform var(--transition);
}

.topbar__profile.open .topbar__caret {
  transform: rotate(180deg);
}

/* Profile dropdown */
.topbar__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1100;
}

.topbar__profile.open .topbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .88rem;
  color: var(--text);
  transition: background var(--transition);
}

.topbar__dropdown-item:hover {
  background: var(--bg);
}

.topbar__dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-light);
}

/* =========================================================
   NOTIFICATIONS PANEL
   ========================================================= */
.notif-panel {
  position: fixed;
  top: var(--topbar-h);
  right: -380px;
  width: 360px;
  max-height: calc(100vh - var(--topbar-h));
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 950;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
}

.notif-panel.open {
  right: 0;
}

.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.notif-panel__header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.notif-panel__clear {
  background: none;
  border: none;
  font-size: .82rem;
  color: var(--danger);
  font-weight: 600;
}

.notif-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.notif-panel__empty {
  text-align: center;
  color: var(--text-light);
  padding: 40px 20px;
  font-size: .9rem;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.notif-item:hover {
  background: var(--bg);
}

.notif-item__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
  color: #fff;
}

.notif-item__icon--booking  { background: var(--success); }
.notif-item__icon--message  { background: var(--info); }
.notif-item__icon--tour     { background: var(--orange); }
.notif-item__icon--reminder { background: #e53e3e; }

.notif-item__content {
  flex: 1;
  min-width: 0;
}

.notif-item__dismiss {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.notif-item:hover .notif-item__dismiss { opacity: 1; }
.notif-item__dismiss:hover { color: var(--danger); }

.notif-item__text {
  font-size: .85rem;
  line-height: 1.4;
  color: var(--text);
}

.notif-item__time {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* Travel date badges in booking table */
.travel-date { font-weight: 600; }
.travel-date small { font-weight: 400; }
.travel-date--past   { color: #a0aec0; }
.travel-date--today  { color: #e53e3e; }
.travel-date--urgent { color: #e53e3e; }
.travel-date--soon   { color: #dd6b20; }

/* =========================================================
   CONTENT AREA
   ========================================================= */
.content {
  flex: 1;
  padding: 24px;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeUp .3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.stat-card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #fff;
  background: var(--emerald);
  flex-shrink: 0;
}

.stat-card--tours .stat-card__icon      { background: var(--orange); }
.stat-card--bookings .stat-card__icon   { background: var(--success); }
.stat-card--destinations .stat-card__icon { background: var(--info); }
.stat-card--messages .stat-card__icon   { background: var(--warning); }
.stat-card--gallery .stat-card__icon    { background: #9f7aea; }
.stat-card--blog .stat-card__icon       { background: var(--danger); }
.stat-card--flights .stat-card__icon    { background: #4299e1; }

.stat-card__number {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stat-card__label {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Quick Access ── */
.quick-access {
  margin-bottom: 24px;
}

.quick-access__title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.quick-access__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 12px;
  color: #fff;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  transition: filter var(--transition), transform var(--transition);
  border: none;
  text-align: center;
  letter-spacing: .01em;
  white-space: nowrap;
}

.quick-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.quick-btn i {
  font-size: 1rem;
}

.quick-btn--tours        { background: #e8792b; }
.quick-btn--bookings     { background: #2ea86f; }
.quick-btn--destinations { background: #2b7de9; }
.quick-btn--messages     { background: #f5a623; }
.quick-btn--gallery      { background: #8b5cf6; }
.quick-btn--blog         { background: #ef4444; }
.quick-btn--website      { background: #14b8a6; }
.quick-btn--settings     { background: #6366f1; }

/* ── Dashboard Two-Column ── */
.dash-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.dash-columns__main { min-width: 0; }
.dash-columns__side { min-width: 0; }

/* ── Activity Feed ── */
.activity-feed {
  max-height: 440px;
  overflow-y: auto;
  padding: 4px 0;
}

.activity-feed__empty {
  text-align: center;
  color: var(--text-light);
  padding: 32px 16px;
  font-size: .88rem;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  position: relative;
}

.activity-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  top: 42px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}

.activity-item__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: #fff;
  flex-shrink: 0;
  z-index: 1;
}

.activity-item__dot--booking  { background: var(--success); }
.activity-item__dot--message  { background: var(--info); }
.activity-item__dot--tour     { background: var(--orange); }
.activity-item__dot--dest     { background: #9f7aea; }
.activity-item__dot--gallery  { background: var(--warning); }
.activity-item__dot--blog     { background: var(--danger); }

.activity-item__body {
  flex: 1;
  min-width: 0;
}

.activity-item__text {
  font-size: .84rem;
  line-height: 1.4;
  color: var(--text);
}

.activity-item__text strong {
  font-weight: 600;
}

.activity-item__time {
  font-size: .72rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── Dashboard Panels ── */
.dash-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.dash-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dash-panel__header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.dash-panel__link {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 600;
}

.dash-panel__link:hover {
  text-decoration: underline;
}

/* ── Section Toolbar ── */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-toolbar h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.toolbar-btn:hover {
  background: var(--emerald-dark);
}

/* ── Form Panel ── */
.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  animation: fadeUp .25s ease;
}

.form-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-panel__header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.form-panel__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.form-panel__close:hover {
  color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

.form-group textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.form-btn--save {
  background: var(--emerald);
  color: #fff;
}

.form-btn--save:hover {
  background: var(--emerald-dark);
}

.form-btn--cancel {
  background: var(--bg);
  color: var(--text);
}

.form-btn--cancel:hover {
  background: var(--border);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Section Toolbar Actions ── */
.section-toolbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toolbar-btn--secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.toolbar-btn--secondary:hover {
  background: var(--border);
}

/* ── Image Upload ── */
.image-upload {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.image-upload:hover,
.image-upload.dragover {
  border-color: var(--emerald);
}

.image-upload__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 16px;
  cursor: pointer;
  color: var(--text-light);
}

.image-upload__preview i {
  font-size: 2rem;
  color: var(--emerald);
}

.image-upload__preview span {
  font-size: .85rem;
  font-weight: 600;
}

.image-upload__preview small {
  font-size: .72rem;
  opacity: .6;
}

.image-upload__thumb {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.image-upload__remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.image-upload__remove:hover {
  background: var(--danger);
}

.image-upload__progress {
  height: 4px;
  background: var(--bg);
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.image-upload__bar {
  height: 100%;
  width: 0;
  background: var(--emerald);
  transition: width .15s ease;
  border-radius: 2px;
}

/* ── Table Controls ── */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.table-search i {
  color: var(--text-light);
  font-size: .85rem;
}

.table-search input {
  border: none;
  outline: none;
  background: none;
  font-size: .84rem;
  font-family: inherit;
  width: 100%;
}

.table-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-filters select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
}

.table-filters select:focus {
  outline: none;
  border-color: var(--emerald);
}

.table-info {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ── Status Badge ── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge--active {
  background: #e6ffed;
  color: #22543d;
}

.status-badge--draft {
  background: #fefce8;
  color: #854d0e;
}

.status-badge--sold-out {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: .82rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 10px;
}

.pagination__btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.pagination__btn.active {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

.pagination__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pagination__ellipsis {
  padding: 0 6px;
  color: var(--text-light);
  font-size: .82rem;
}

@media (max-width: 600px) {
  .table-controls {
    flex-direction: column;
  }
  .table-search {
    max-width: 100%;
  }
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: var(--bg);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-light);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  font-size: .88rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f7fafc;
}

.table-empty {
  text-align: center;
  color: var(--text-light);
  padding: 30px 16px !important;
}

.table-img {
  width: 48px; height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.table-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge--pending    { background: #fefcbf; color: #975a16; }
.status-badge--confirmed  { background: #c6f6d5; color: #276749; }
.status-badge--cancelled  { background: #fed7d7; color: #9b2c2c; }
.status-badge--completed  { background: #bee3f8; color: #2a4365; }

/* Balance badges */
.balance-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.balance-badge--paid  { background: #c6f6d5; color: #276749; }
.balance-badge--owing { background: #fed7d7; color: #9b2c2c; }

/* Payment summary in modal */
.payment-summary {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.payment-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: .88rem;
  color: #4a5568;
}
.payment-summary__row + .payment-summary__row {
  border-top: 1px solid #e2e8f0;
}
.payment-summary__row--balance {
  color: #9b2c2c;
  font-size: .95rem;
}
.payment-summary__row--balance strong {
  font-size: 1.1rem;
}

/* Media type badges */
.media-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; text-transform: capitalize;
}
.media-badge--image { background: #e9d5ff; color: #6b21a8; }
.media-badge--video { background: #dbeafe; color: #1e40af; }

.action-btn--cancel   { color: #e53e3e; }
.action-btn--cancel:hover { background: #fed7d7; }
.action-btn--complete { color: #2b6cb0; }
.action-btn--complete:hover { background: #bee3f8; }
.action-btn--edit { color: #2b7de9; }
.action-btn--edit:hover { background: #bee3f8; }

/* Action buttons */
.action-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: .78rem;
  color: var(--text-light);
  transition: all var(--transition);
  margin-right: 4px;
}

.action-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(15,76,58,.04);
}

.action-btn--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(229,62,62,.04);
}

.action-btn--confirm:hover {
  border-color: var(--success);
  color: var(--success);
  background: rgba(56,161,105,.04);
}

.action-btn--edit:hover {
  border-color: var(--info);
  color: var(--info);
  background: rgba(49,130,206,.04);
}

/* ── Bookings table: horizontal alignment ── */
#sec-bookings .table-wrap {
  overflow-x: hidden;
}
#sec-bookings .data-table {
  width: 100%;
  table-layout: fixed;
}
#sec-bookings .data-table th,
#sec-bookings .data-table td {
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  padding: 10px 8px;
  font-size: .82rem;
}
#sec-bookings .data-table td:last-child {
  white-space: nowrap;
  text-align: right;
}
#sec-bookings .data-table th:last-child {
  text-align: right;
}

/* ── Gallery Admin Grid ── */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-admin-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-admin-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.gallery-admin-card__info {
  padding: 8px 10px;
}

.gallery-admin-card__caption {
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-admin-card__layout {
  font-size: .72rem;
  color: var(--text-light);
}

.gallery-admin-card__actions {
  display: flex;
  gap: 4px;
  padding: 4px 10px 8px;
}

/* ── Message Truncate ── */
.msg-truncate {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Section Stat Cards (all modules) ── */
.sec-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.sec-stats--3 { grid-template-columns: repeat(3, 1fr); }
.sec-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow .2s;
}
.sec-stat:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.sec-stat > i {
  font-size: 1.3rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}
.sec-stat__info { display: flex; flex-direction: column; }
.sec-stat__number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.sec-stat__label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tours stat colours */
.sec-stat--tours-total > i   { background: var(--primary); }
.sec-stat--tours-active > i  { background: #48bb78; }
.sec-stat--tours-draft > i   { background: #a0aec0; }
.sec-stat--tours-featured > i { background: #ecc94b; }

/* Bookings stat colours */
.sec-stat--bk-total > i     { background: var(--primary); }
.sec-stat--bk-pending > i   { background: #f6ad55; }
.sec-stat--bk-confirmed > i { background: #48bb78; }
.sec-stat--bk-completed > i { background: #63b3ed; }

/* Destinations stat colours */
.sec-stat--dest-total > i   { background: var(--primary); }
.sec-stat--dest-africa > i  { background: #ed8936; }
.sec-stat--dest-asia > i    { background: #ed64a6; }
.sec-stat--dest-other > i   { background: #9f7aea; }

/* Gallery stat colours */
.sec-stat--gal-total > i    { background: var(--primary); }
.sec-stat--gal-featured > i { background: #ecc94b; }
.sec-stat--gal-recent > i   { background: #63b3ed; }

/* Blog stat colours */
.sec-stat--blog-total > i    { background: var(--primary); }
.sec-stat--blog-featured > i { background: #ecc94b; }
.sec-stat--blog-video > i    { background: #fc8181; }
.sec-stat--blog-image > i    { background: #63b3ed; }

/* Messages stat colours */
.sec-stat--msg-total > i   { background: var(--primary); }
.sec-stat--msg-new > i     { background: #f6ad55; }
.sec-stat--msg-read > i    { background: #63b3ed; }
.sec-stat--msg-replied > i { background: #68d391; }

/* Flights stat colours */
.sec-stat--flights-total > i     { background: #4299e1; }
.sec-stat--flights-confirmed > i { background: #48bb78; }
.sec-stat--flights-pending > i   { background: #f6ad55; }
.sec-stat--flights-cancelled > i { background: #fc8181; }

@media (max-width: 768px) {
  .sec-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sec-stats--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sec-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sec-stat { padding: 12px; gap: 10px; }
  .sec-stat > i { width: 36px; height: 36px; font-size: 1rem; }
}

/* ── Message Status Badges ── */
.status-badge--new     { background: #fefcbf; color: #975a16; }
.status-badge--read    { background: #bee3f8; color: #2a4365; }
.status-badge--replied { background: #c6f6d5; color: #276749; }

/* ── Reply action button ── */
.action-btn--reply {
  background: #ebf8ff;
  color: #2b6cb0;
}
.action-btn--reply:hover {
  background: #bee3f8;
}

/* ── Detail message block ── */
.detail-msg {
  margin: 4px 0 0;
  padding: 12px 14px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Compose / Reply Modal Wide ── */
.admin-modal__dialog--wide {
  max-width: 600px;
  width: 94%;
}
.admin-form .form-row {
  margin-bottom: 16px;
}
.admin-form .form-row label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.admin-form .form-row input,
.admin-form .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.admin-form .form-row input:focus,
.admin-form .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(73,153,131,.15);
}
.admin-form .form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.admin-form .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── Edit-form layout (modal forms) ── */
.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-form__field {
  display: flex;
  flex-direction: column;
}
.admin-form__field label {
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 6px;
  color: var(--text-dark);
  letter-spacing: .02em;
}
.admin-form__field input,
.admin-form__field select,
.admin-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.admin-form__field input:focus,
.admin-form__field select:focus,
.admin-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(73,153,131,.15);
}
.admin-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23718096'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.admin-form__field textarea {
  resize: vertical;
  min-height: 80px;
}
.admin-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 12px;
}
.admin-form__submit:hover { background: var(--primary-dark, #3a7a66); }
.admin-form__submit:active { transform: scale(.97); }
.admin-form__submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
@media (max-width: 520px) {
  .admin-form__row { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   MODAL
   ========================================================= */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.admin-modal.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.admin-modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  transform: translateY(20px);
  transition: transform var(--transition);
}

/* Widen modal when it contains a form */
.admin-modal__dialog:has(.admin-form) {
  max-width: 640px;
}

/* Widen modal for flight detail view */
.admin-modal__dialog:has(.modal-detail) {
  max-width: 740px;
}

.admin-modal.open .admin-modal__dialog {
  transform: translateY(0);
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-modal__header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.admin-modal__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  padding: 4px;
}

.admin-modal__close:hover {
  color: var(--danger);
}

.admin-modal__body {
  padding: 20px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.6;
}

/* Keep form submit buttons always visible at bottom of modal */
.admin-modal__body .admin-form {
  display: flex;
  flex-direction: column;
}

.admin-modal__body .admin-form__submit {
  position: sticky;
  bottom: 0;
  z-index: 5;
  width: 100%;
  justify-content: center;
  background: var(--primary, #0f4c3a);
  color: #fff;
  box-shadow: none;
  transition: none;
}

.admin-modal__body .detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--white);
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.admin-modal__body .detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-modal__body .detail-label {
  font-weight: 600;
  min-width: 110px;
  color: var(--text-light);
  flex-shrink: 0;
}

.admin-modal__body .detail-value {
  color: var(--text);
  word-break: break-word;
}

.admin-modal__body .detail-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

/* =========================================================
   SETTINGS
   ========================================================= */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.settings-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.settings-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.settings-card__header h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.settings-card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
}
.settings-card__icon--currency { background: #059669; }
.settings-card__icon--general  { background: var(--orange); }
.settings-card__icon--social   { background: #3b82f6; }
.settings-card__icon--booking  { background: #8b5cf6; }

.settings-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-card__body .form-row {
  margin: 0;
}
.settings-card__body .form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}
.settings-card__body .form-row input[type="text"],
.settings-card__body .form-row input[type="email"],
.settings-card__body .form-row input[type="tel"],
.settings-card__body .form-row input[type="url"],
.settings-card__body .form-row input[type="number"],
.settings-card__body .form-row select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
}
.settings-card__body .form-row input:focus,
.settings-card__body .form-row select:focus {
  outline: none;
  border-color: var(--emerald);
}
.settings-card__body .form-row input[type="checkbox"] {
  accent-color: var(--emerald);
  width: 16px; height: 16px;
  cursor: pointer;
}

.settings-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.settings-saved-msg {
  font-size: .85rem;
  color: var(--success);
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s;
}
.settings-saved-msg.show { opacity: 1; }

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.admin-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  font-size: .88rem;
  font-weight: 500;
  color: #1e293b;
  min-width: 300px;
  max-width: 440px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
}
.admin-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.admin-toast.hide {
  transform: translateX(120%);
  opacity: 0;
}
.admin-toast i:first-child {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.admin-toast span { flex: 1; }
.admin-toast__close {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: .85rem; padding: 4px;
  transition: color .2s;
}
.admin-toast__close:hover { color: #475569; }

.admin-toast--success { border-left: 4px solid #10b981; }
.admin-toast--success i:first-child { color: #10b981; }
.admin-toast--error   { border-left: 4px solid #ef4444; }
.admin-toast--error i:first-child { color: #ef4444; }
.admin-toast--warning { border-left: 4px solid #f59e0b; }
.admin-toast--warning i:first-child { color: #f59e0b; }
.admin-toast--info    { border-left: 4px solid #3b82f6; }
.admin-toast--info i:first-child { color: #3b82f6; }

/* =========================================================
   CONFIRM DIALOG
   ========================================================= */
.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.admin-confirm-overlay.show { opacity: 1; }
.admin-confirm {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: scale(.9);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.admin-confirm-overlay.show .admin-confirm {
  transform: scale(1);
}
.admin-confirm__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 1.4rem;
}
.admin-confirm__msg {
  font-size: .95rem;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 24px;
}
.admin-confirm__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.admin-confirm__btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.admin-confirm__btn:active { transform: scale(.96); }
.admin-confirm__btn--cancel {
  background: #f1f5f9;
  color: #475569;
}
.admin-confirm__btn--cancel:hover { background: #e2e8f0; }
.admin-confirm__btn--yes {
  background: #ef4444;
  color: #fff;
}
.admin-confirm__btn--yes:hover { background: #dc2626; }

/* =========================================================
   RESPONSIVE  —  Tablet ( <= 1024px )
   ========================================================= */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-access__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dash-columns {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE  —  Mobile ( <= 768px )
   ========================================================= */
@media (max-width: 768px) {
  /* ── Sidebar: off-canvas left ── */
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    box-shadow: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 6px 0 24px rgba(0,0,0,.2);
  }

  .sidebar.collapsed {
    width: var(--sidebar-w);
    transform: translateX(-100%);
  }

  .sidebar.collapsed.mobile-open {
    transform: translateX(0);
  }

  /* Overlay when sidebar open */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s .3s;
  }

  .sidebar-overlay.visible {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s 0s;
  }

  /* ── Main wrap: full width ── */
  .main-wrap,
  body.sidebar-collapsed .main-wrap {
    margin-left: 0;
    max-width: 100vw;
  }

  /* ── Topbar tweaks ── */
  .topbar {
    padding: 0 14px;
  }

  .topbar__title {
    font-size: 1rem;
  }

  .topbar__profile-name {
    display: none;
  }

  .topbar__caret {
    display: none;
  }

  .topbar__profile {
    padding: 6px 8px;
  }

  /* ── Content area ── */
  .content {
    padding: 14px;
  }

  /* ── Dashboard stat cards ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
    gap: 10px;
  }

  .stat-card__icon {
    width: 32px; height: 32px;
    font-size: .85rem;
  }

  .stat-card__number {
    font-size: 1.05rem;
  }

  /* ── Quick access ── */
  .quick-access__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .quick-btn {
    padding: 16px 8px;
    font-size: .75rem;
    flex-direction: column;
    gap: 6px;
  }

  .quick-btn i {
    font-size: 1.1rem;
  }

  /* ── Dashboard columns ── */
  .dash-columns {
    grid-template-columns: 1fr;
  }

  /* ── Notifications panel: full width ── */
  .notif-panel {
    width: 100%;
    right: -100%;
  }

  /* ── Section toolbars ── */
  .section-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .section-toolbar h2 {
    font-size: 1rem;
  }

  .section-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: .8rem;
  }

  /* ── Table controls (search + filters) ── */
  .table-controls {
    flex-direction: column;
    gap: 8px;
  }

  .table-search {
    max-width: 100%;
    width: 100%;
  }

  .table-filters {
    width: 100%;
  }

  .table-filters select {
    flex: 1;
    min-width: 0;
    font-size: .8rem;
  }

  /* ── Tables: card layout on mobile ── */
  .table-wrap {
    overflow-x: visible;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }

  .data-table tbody tr:hover {
    background: var(--white);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-top: none;
    font-size: .84rem;
    gap: 8px;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: .76rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .03em;
    flex-shrink: 0;
    min-width: 100px;
  }

  .data-table td:not(:last-child) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 2px;
  }

  /* Actions cell: wrap buttons */
  .data-table td:last-child {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
  }

  .action-btn {
    padding: 8px 12px;
    font-size: .78rem;
  }

  .table-img,
  .table-thumb {
    width: 40px; height: 40px;
    border-radius: 6px;
  }

  .msg-truncate {
    max-width: 160px;
  }

  /* ── Form panel ── */
  .form-panel {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── Modals ── */
  .admin-modal__dialog {
    width: 96%;
    max-width: 96%;
    max-height: 90vh;
    border-radius: 10px;
  }

  .admin-modal__dialog:has(.admin-form) {
    max-width: 96%;
  }

  .admin-modal__header {
    padding: 14px 16px;
  }

  .admin-modal__body {
    padding: 14px 16px;
  }

  .admin-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Gallery grid ── */
  .gallery-admin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── Image upload ── */
  .image-upload__preview {
    padding: 24px 12px;
  }

  /* ── Pagination ── */
  .pagination {
    gap: 3px;
  }

  .pagination__btn {
    min-width: 32px;
    height: 32px;
    font-size: .78rem;
    padding: 0 8px;
  }
}

/* =========================================================
   RESPONSIVE  —  Small Mobile ( <= 480px )
   ========================================================= */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card__number {
    font-size: .95rem;
  }

  .stat-card__label {
    font-size: .68rem;
  }

  .quick-access__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .quick-btn {
    padding: 14px 6px;
    font-size: .72rem;
  }

  .topbar {
    padding: 0 10px;
  }

  .topbar__left {
    gap: 10px;
  }

  .topbar__title {
    font-size: .9rem;
  }

  .content {
    padding: 10px;
  }

  .section-toolbar h2 {
    font-size: .92rem;
  }

  .toolbar-btn {
    font-size: .75rem;
    padding: 8px 10px;
  }

  .toolbar-btn span {
    display: none;
  }

  .toolbar-btn i {
    margin: 0;
  }

  /* Narrower action buttons */
  .action-btn {
    padding: 6px 8px;
    font-size: .72rem;
  }

  .gallery-admin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-admin-card img {
    height: 90px;
  }

  /* Single-column status cards */
  .sec-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sec-stat {
    padding: 10px;
    gap: 8px;
  }

  .sec-stat > i {
    width: 34px; height: 34px;
    font-size: .9rem;
  }

  .sec-stat__number {
    font-size: 1.1rem;
  }

  .sec-stat__label {
    font-size: .7rem;
  }
}

/* =========================================================
   FLIGHT TICKETS MODULE
   ========================================================= */

/* ── Section header accent ── */
#sec-flights .section-toolbar h2 {
  position: relative;
  padding-left: 14px;
}
#sec-flights .section-toolbar h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: #4299e1;
}

/* ── Stat cards ── */
#sec-flights .sec-stat--flights-total    { }
#sec-flights .sec-stat--flights-confirmed { }
#sec-flights .sec-stat--flights-pending  { }
#sec-flights .sec-stat--flights-cancelled { }

/* ── Form section headings ── */
.form-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--emerald);
  padding: 16px 0 10px;
  margin-top: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
  letter-spacing: .3px;
}

.form-section-heading i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 76, 58, .08);
  color: var(--emerald);
  font-size: .8rem;
  flex-shrink: 0;
}

/* ── Flight form panel enhancements ── */
#sec-flights .form-panel {
  border-top: 3px solid #4299e1;
  animation: flightFormSlide .35s ease;
}

@keyframes flightFormSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#sec-flights .form-panel__header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#sec-flights .form-panel__header h3::before {
  content: '\f072';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .85rem;
  color: #4299e1;
}

/* ── Airline searchable autocomplete ── */
.airline-search-wrap {
  position: relative;
}

.airline-search-wrap input {
  width: 100%;
}

.airline-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #cbd5e0;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 900;
}

.airline-dropdown.open {
  display: block;
}

.airline-dropdown .airline-group-label {
  font-weight: 700;
  font-size: .75rem;
  color: var(--emerald-dark);
  padding: 8px 12px 4px;
  background: #f7fafc;
  text-transform: uppercase;
  letter-spacing: .4px;
  position: sticky;
  top: 0;
}

.airline-dropdown .airline-option {
  padding: 7px 14px;
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s;
}

.airline-dropdown .airline-option:hover,
.airline-dropdown .airline-option.active {
  background: #ebf8ff;
  color: var(--emerald-dark);
}

.airline-dropdown .airline-no-results {
  padding: 12px 14px;
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Total cost readonly field ── */
#ffTotalCost,
#ffCommissionAmount {
  background: #f0fff4;
  font-weight: 700;
  color: #276749;
  border-color: #c6f6d5;
}

#ffTotalCost:focus,
#ffCommissionAmount:focus {
  border-color: #48bb78;
}

/* ── Return fields collapsible section ── */
#ffReturnFields {
  background: #f7fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 4px;
  margin: 4px 0 8px;
  animation: returnFieldsFade .3s ease;
}

@keyframes returnFieldsFade {
  from { opacity: 0; max-height: 0; padding-top: 0; }
  to   { opacity: 1; max-height: 300px; padding-top: 12px; }
}

/* ── Flight status badges ── */
.status-badge--confirmed { background: #c6f6d5; color: #276749; }
.status-badge--pending   { background: #fefcbf; color: #975a16; }
.status-badge--cancelled { background: #fed7d7; color: #9b2c2c; }
.status-badge--completed { background: #bee3f8; color: #2a4365; }
.status-badge--refunded  { background: #e9d8fd; color: #553c9a; }

/* ── Payment status badges ── */
.pay-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  letter-spacing: .3px;
}
.pay-badge--paid     { background: #c6f6d5; color: #276749; }
.pay-badge--unpaid   { background: #fed7d7; color: #9b2c2c; }
.pay-badge--partial  { background: #fefcbf; color: #975a16; }
.pay-badge--refunded { background: #e9d8fd; color: #553c9a; }

/* ── Flight class badges ── */
.class-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  letter-spacing: .3px;
}
.class-badge--economy         { background: #e2e8f0; color: #4a5568; }
.class-badge--premium-economy { background: #bee3f8; color: #2a4365; }
.class-badge--business        { background: linear-gradient(135deg, #fefcbf, #fbd38d); color: #975a16; }
.class-badge--first           { background: linear-gradient(135deg, #fbd38d, #ed8936); color: #7b341e; font-weight: 700; }

/* ── Flight route display in table ── */
.flight-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  white-space: nowrap;
  font-weight: 500;
}

.flight-route__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(66, 153, 225, .1);
  color: #4299e1;
  font-size: .6rem;
}

/* ── Flight table row hover accent ── */
#flightsTable tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
}

#flightsTable tbody tr:hover {
  background: rgba(66, 153, 225, .04);
}

/* ── Flights table action area ── */
#flightsTable td:last-child {
  white-space: nowrap;
}

/* ── Modal detail sections for flight view ── */
.modal-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-detail__section {
  background: #f7fafc;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.modal-detail__section h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-detail__section h4 i {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 76, 58, .08);
  font-size: .75rem;
  color: var(--emerald);
}

.modal-detail__section p {
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.6;
}

.modal-detail__section p strong {
  color: var(--text-light);
  font-weight: 600;
  min-width: 100px;
  display: inline-block;
}

/* ── Revenue & commission stat overrides ── */
.sec-stats--flights {
  grid-template-columns: repeat(6, 1fr);
}

.sec-stat--flights-revenue > i  { background: #48bb78; }
.sec-stat--flights-commission > i { background: #9f7aea; }

.sec-stat--flights-revenue .sec-stat__number,
.sec-stat--flights-commission .sec-stat__number {
  font-size: 1rem;
  letter-spacing: -.3px;
}

/* ── Flight Reminders Panel ── */
.flight-reminders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.flight-reminder {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: reminderSlide .3s ease;
}

@keyframes reminderSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.flight-reminder__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.flight-reminder__content {
  flex: 1;
  min-width: 0;
}

.flight-reminder__content strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.flight-reminder__content p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.flight-reminder__content p small {
  opacity: .65;
}

/* Overdue — red */
.flight-reminder--overdue {
  border-left-color: #e53e3e;
  background: #fff5f5;
}
.flight-reminder--overdue .flight-reminder__icon {
  background: #fed7d7;
  color: #c53030;
}
.flight-reminder--overdue strong {
  color: #c53030;
}

/* Due today — amber */
.flight-reminder--today {
  border-left-color: #dd6b20;
  background: #fffaf0;
}
.flight-reminder--today .flight-reminder__icon {
  background: #feebc8;
  color: #c05621;
}
.flight-reminder--today strong {
  color: #c05621;
}

/* This week — blue */
.flight-reminder--week {
  border-left-color: #3182ce;
  background: #ebf8ff;
}
.flight-reminder--week .flight-reminder__icon {
  background: #bee3f8;
  color: #2b6cb0;
}
.flight-reminder--week strong {
  color: #2b6cb0;
}

/* Next week — purple */
.flight-reminder--next-week {
  border-left-color: #805ad5;
  background: #faf5ff;
}
.flight-reminder--next-week .flight-reminder__icon {
  background: #e9d8fd;
  color: #6b46c1;
}
.flight-reminder--next-week strong {
  color: #6b46c1;
}

/* All clear — green */
.flight-reminder--clear {
  border-left-color: #38a169;
  background: #f0fff4;
}
.flight-reminder--clear .flight-reminder__icon {
  background: #c6f6d5;
  color: #276749;
}
.flight-reminder--clear strong {
  color: #276749;
}

/* ── Quick-access flights btn ── */
.quick-btn--flights {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: #fff;
}
.quick-btn--flights:hover {
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
}

/* ── Responsive: flight stats & reminders ── */
@media (max-width: 1100px) {
  .sec-stats--flights {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .sec-stats--flights {
    grid-template-columns: repeat(2, 1fr);
  }

  .flight-reminder {
    padding: 10px 12px;
    gap: 10px;
  }

  .flight-reminder__icon {
    width: 30px;
    height: 30px;
    font-size: .75rem;
  }

  .flight-reminder__content strong {
    font-size: .8rem;
  }

  .flight-reminder__content p {
    font-size: .72rem;
  }
}

/* ── Responsive: flight form ── */
@media (max-width: 768px) {
  .modal-detail {
    grid-template-columns: 1fr;
  }

  #sec-flights .form-panel {
    border-radius: 0;
  }

  #ffReturnFields {
    padding: 10px 12px 2px;
  }

  #flightsTable th:nth-child(6),
  #flightsTable td:nth-child(6),
  #flightsTable th:nth-child(9),
  #flightsTable td:nth-child(9) {
    display: none;
  }
}

@media (max-width: 480px) {
  #flightsTable th:nth-child(3),
  #flightsTable td:nth-child(3),
  #flightsTable th:nth-child(5),
  #flightsTable td:nth-child(5) {
    display: none;
  }

  .flight-route {
    font-size: .72rem;
    gap: 3px;
  }

  .flight-route__arrow {
    width: 16px;
    height: 16px;
    font-size: .5rem;
  }
}

/* ═══════════════════════════════════════════════
   ACCOMMODATION MODULE
   ═══════════════════════════════════════════════ */

/* ── Dashboard stat card ── */
.stat-card--accommodations .stat-card__icon {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
}

/* ── Quick access button ── */
.quick-btn--accommodations {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: #fff;
}
.quick-btn--accommodations:hover {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
}

/* ── Stat cards ── */
.sec-stats--accom {
  grid-template-columns: repeat(6, 1fr);
}

.sec-stat--accom-total > i       { background: var(--emerald); }
.sec-stat--accom-confirmed > i   { background: var(--emerald-light); }
.sec-stat--accom-pending > i     { background: var(--orange); }
.sec-stat--accom-cancelled > i   { background: #e53e3e; }
.sec-stat--accom-revenue > i     { background: var(--emerald); }
.sec-stat--accom-commission > i  { background: var(--orange); }

.sec-stat--accom-revenue .sec-stat__number,
.sec-stat--accom-commission .sec-stat__number {
  font-size: 1rem;
  letter-spacing: -.3px;
}

/* ── Client search autocomplete ── */
.client-search-wrap {
  position: relative;
}

.client-search-wrap input {
  padding-left: 12px;
  border: 2px solid rgba(15, 76, 58, .2);
  transition: border-color .2s, box-shadow .2s;
}

.client-search-wrap input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15, 76, 58, .1);
}

.client-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 2px solid var(--emerald);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(15, 76, 58, .15);
  z-index: 900;
  animation: clientDropSlide .2s ease;
}

@keyframes clientDropSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.client-dropdown.open { display: block; }

.client-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: all .15s;
  border-bottom: 1px solid #f0f5f3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.client-option:last-child { border-bottom: none; }
.client-option:hover {
  background: linear-gradient(135deg, #f0fff4, #e6ffed);
  padding-left: 18px;
}

.client-option strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text);
}
.client-option strong::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .6rem;
  color: #fff;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald);
  border-radius: 50%;
  flex-shrink: 0;
}

.client-option small {
  font-size: .72rem;
  color: var(--text-light);
  padding-left: 24px;
  line-height: 1.4;
}

.client-no-results {
  padding: 16px 14px;
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
}

.form-hint {
  display: block;
  font-size: .72rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

/* ── Room type badges ── */
.room-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: .3px;
  white-space: nowrap;
}

.room-badge--single    { background: #e6ffed; color: var(--emerald); }
.room-badge--double    { background: #c6f6d5; color: var(--emerald-dark); }
.room-badge--twin      { background: #c6f6d5; color: var(--emerald); border: 1px solid rgba(15,76,58,.15); }
.room-badge--suite     { background: linear-gradient(135deg, var(--orange-light), var(--orange)); color: #fff; font-weight: 700; }
.room-badge--deluxe    { background: linear-gradient(135deg, var(--emerald), var(--emerald-light)); color: #fff; font-weight: 700; }
.room-badge--villa     { background: linear-gradient(135deg, #fbd38d, var(--orange-light)); color: #7b3f00; font-weight: 700; }
.room-badge--apartment { background: #fff3e0; color: #c05621; border: 1px solid rgba(232,121,43,.2); }
.room-badge--dormitory { background: #f7fafc; color: #718096; border: 1px solid #e2e8f0; }

/* ── Readonly styled fields ── */
#afTotalCost,
#afCommissionAmount {
  background: #f0fff4;
  font-weight: 700;
  color: var(--emerald);
  border-color: #c6f6d5;
}
#afTotalCost:focus,
#afCommissionAmount:focus {
  border-color: var(--emerald-light);
}

#afNights {
  background: #fff8f0;
  font-weight: 600;
  color: var(--orange);
  border-color: rgba(232, 121, 43, .25);
}

#afLinkedFlight {
  background: #f0fff4;
  color: var(--emerald);
  font-weight: 600;
  border-color: rgba(15, 76, 58, .2);
  cursor: default;
}

/* ── Status badges ── */
.status-badge--checked-in {
  background: #c6f6d5;
  color: var(--emerald-dark);
}
.status-badge--checked-out {
  background: #fff3e0;
  color: #c05621;
}
.status-badge--no-show {
  background: #fed7d7;
  color: #c53030;
}

/* ── Action button variants ── */
.action-btn--checkin {
  color: var(--emerald);
}
.action-btn--checkin:hover {
  background: #e6ffed;
}
.action-btn--checkout {
  color: var(--orange);
}
.action-btn--checkout:hover {
  background: #fff3e0;
}

/* ── Table theming ── */
#sec-accommodations .data-table th {
  background: linear-gradient(135deg, #f0fff4, #e6ffed);
  color: var(--emerald-dark);
  border-bottom: 2px solid rgba(15, 76, 58, .15);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

#sec-accommodations .data-table tbody tr:hover {
  background: #f0fff4;
}

#sec-accommodations .data-table tbody td:first-child strong {
  color: var(--orange);
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  letter-spacing: .5px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sec-stats--accom {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #accomTable th:nth-child(4),
  #accomTable td:nth-child(4),
  #accomTable th:nth-child(7),
  #accomTable td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 600px) {
  .sec-stats--accom {
    grid-template-columns: repeat(2, 1fr);
  }

  #accomTable th:nth-child(5),
  #accomTable td:nth-child(5),
  #accomTable th:nth-child(8),
  #accomTable td:nth-child(8) {
    display: none;
  }

  .client-option:hover {
    padding-left: 14px;
  }
}

/* =============================================
   EXPENSES MODULE
   ============================================= */

/* Dashboard stat card */
.stat-card--expenses .stat-card__icon {
  background: var(--orange);
}

/* Section stat icons */
.sec-stats--expenses {
  grid-template-columns: repeat(5, 1fr);
}

.sec-stat--expense-total > i    { background: var(--emerald); }
.sec-stat--expense-amount > i   { background: var(--orange); }
.sec-stat--expense-paid > i     { background: var(--emerald-light); }
.sec-stat--expense-pending > i  { background: #ecc94b; }
.sec-stat--expense-overdue > i  { background: #e53e3e; }

.sec-stat--expense-amount .sec-stat__number {
  font-size: 1rem;
  letter-spacing: -.3px;
}

/* Category badges */
.expense-cat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: .64rem;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(15, 76, 58, .08);
  color: var(--emerald);
  white-space: nowrap;
}
.expense-cat--transport       { background: #ebf4ff; color: #3182ce; }
.expense-cat--accommodation   { background: #fefcbf; color: #b7791f; }
.expense-cat--meals           { background: #fff5f5; color: #e53e3e; }
.expense-cat--activities      { background: #f0fff4; color: #38a169; }
.expense-cat--equipment       { background: #e9d8fd; color: #6b46c1; }
.expense-cat--marketing       { background: #fed7e2; color: #d53f8c; }
.expense-cat--insurance       { background: #bee3f8; color: #2b6cb0; }
.expense-cat--permits         { background: #feebc8; color: #c05621; }
.expense-cat--staff           { background: #c6f6d5; color: #276749; }
.expense-cat--utilities       { background: #e2e8f0; color: #4a5568; }
.expense-cat--other           { background: #edf2f7; color: #718096; }

/* Status badges */
.expense-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: .62rem;
  font-weight: 600;
  text-transform: capitalize;
}
.expense-status--paid      { background: #c6f6d5; color: #276749; }
.expense-status--pending   { background: #fefcbf; color: #975a16; }
.expense-status--overdue   { background: #fed7d7; color: #9b2c2c; }
.expense-status--cancelled { background: #e2e8f0; color: #718096; }

/* Amount column */
.expense-amount {
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}

/* Quick access button */
.quick-btn--expenses {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  color: #fff;
}
.quick-btn--expenses:hover {
  background: linear-gradient(135deg, #dd6b20, #c05621);
}

/* Expense reminders */
.expense-reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid;
}
.expense-reminder__icon {
  font-size: 1.2rem;
  padding-top: 2px;
}
.expense-reminder__content strong {
  display: block;
  margin-bottom: 4px;
  font-size: .85rem;
}
.expense-reminder__content p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
  color: #4a5568;
}

.expense-reminder--overdue  { background: #fff5f5; border-color: #e53e3e; }
.expense-reminder--overdue .expense-reminder__icon { color: #e53e3e; }

.expense-reminder--pending  { background: #fffff0; border-color: #ecc94b; }
.expense-reminder--pending .expense-reminder__icon { color: #d69e2e; }

.expense-reminder--clear    { background: #f0fff4; border-color: #38a169; }
.expense-reminder--clear .expense-reminder__icon { color: #38a169; }

/* Linked tour badge in table */
.expense-tour-link {
  display: inline-block;
  padding: 2px 6px;
  background: #ebf8ff;
  color: #2b6cb0;
  border-radius: 3px;
  font-size: .6rem;
  font-weight: 600;
  margin-top: 2px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Responsive: expense stats ── */
@media (max-width: 1100px) {
  .sec-stats--expenses {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #expenseTable th:nth-child(4),
  #expenseTable td:nth-child(4),
  #expenseTable th:nth-child(6),
  #expenseTable td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 600px) {
  .sec-stats--expenses {
    grid-template-columns: repeat(2, 1fr);
  }

  #expenseTable th:nth-child(3),
  #expenseTable td:nth-child(3) {
    display: none;
  }
}

/* ── Hotel Bookings: Nights badge ── */
.hb-nights-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  background: #16a34a;
  color: #fff;
  letter-spacing: .3px;
  white-space: nowrap;
  min-width: 30px;
  text-align: center;
}

/* ── Hotel Bookings: WhatsApp / Message button ── */
.action-btn--whatsapp {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}
.action-btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

/* ── Hotel Bookings: Message modal ── */
.hb-msg-modal {
  max-width: 480px;
  text-align: left;
}
.hb-msg-label {
  font-size: .8rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #4a5568;
}
.hb-msg-label small {
  font-weight: 400;
  color: #a0aec0;
}
.hb-msg-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.hb-msg-tpl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: .78rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all .2s;
}
.hb-msg-tpl:hover {
  border-color: #25d366;
  color: #25d366;
}
.hb-msg-tpl--active {
  background: #f0fff4;
  border-color: #25d366;
  color: #22543d;
  font-weight: 600;
}
.hb-msg-preview-wrap {
  margin: 0 0 14px;
}
.hb-msg-preview {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .82rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  color: #2d3748;
}
.hb-msg-preview:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}
.hb-msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.hb-msg-wa {
  background: #25d366 !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.hb-msg-wa:hover {
  background: #1da851 !important;
}
.hb-msg-sms {
  background: #3b82f6 !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.hb-msg-sms:hover {
  background: #2563eb !important;
}

/* ── Hotel Bookings: Extend button ── */
.action-btn--extend {
  color: #fff;
  background: #6366f1;
  border-color: #6366f1;
}
.action-btn--extend:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

/* ── Hotel Bookings: More-actions modal ── */
.hb-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.hb-more-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.hb-more-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 8px 12px;
  min-width: 260px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: scale(.9) translateY(10px);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.hb-more-overlay.show .hb-more-card {
  transform: scale(1) translateY(0);
}
.hb-more-title {
  font-size: .85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.hb-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: .9rem;
  color: #4a5568;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
  border-radius: 8px;
}
.hb-more-item:hover {
  background: #f7fafc;
}
.hb-more-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}
.hb-more-item--extend {
  color: #6366f1;
  font-weight: 600;
}
.hb-more-item--extend:hover {
  background: #eef2ff;
}
.hb-more-item--cancel {
  color: #d97706;
}
.hb-more-item--cancel:hover {
  background: #fffbeb;
}
.hb-more-item--delete {
  color: #e53e3e;
}
.hb-more-item--delete:hover {
  background: #fff5f5;
}
.hb-more-close {
  display: block;
  margin: 10px auto 0;
  padding: 8px 32px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.hb-more-close:hover {
  background: #e2e8f0;
}

/* ── Actions cell ── */
.actions-cell {
  white-space: nowrap;
  min-width: 140px;
}

/* ═══════════════════════════════════════════════
   CUSTOMERS MODULE
   ═══════════════════════════════════════════════ */

/* ── Stat cards ── */
.cust-stat--total > i    { background: #6366f1; }
.cust-stat--assigned > i { background: #16a34a; }
.cust-stat--unassigned > i { background: #f59e0b; }
.cust-stat--listing > i  { background: #0ea5e9; }

/* ── Type badge ── */
.cust-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.cust-type--listing  { background: #dbeafe; color: #1d4ed8; }
.cust-type--walkin   { background: #fef3c7; color: #b45309; }
.cust-type--referral { background: #ede9fe; color: #7c3aed; }

/* ── Assigned status ── */
.status-badge--assigned   { background: #dcfce7; color: #16a34a; }
.status-badge--unassigned { background: #fef9c3; color: #ca8a04; }

/* ── Assign hotel select in modal ── */
.cust-assign-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .88rem;
  margin: 12px 0 20px;
  background: #fff;
}
.cust-assign-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

/* ── View detail table ── */
.cust-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.cust-detail-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: .88rem;
}
.cust-detail-table td:first-child {
  width: 110px;
  color: #64748b;
}

/* ── Table layout ── */
#sec-customers .data-table {
  width: 100%;
  table-layout: fixed;
}
#sec-customers .table-wrap {
  overflow-x: hidden;
}
#sec-customers .data-table th,
#sec-customers .data-table td {
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  padding: 10px 8px;
  font-size: .82rem;
}
#sec-customers .data-table td:last-child {
  white-space: nowrap;
  text-align: right;
}
#sec-customers .data-table th:last-child {
  text-align: right;
}

/* ── Customer Booking History Modal ── */
.cust-history-modal {
  background: #fff;
  border-radius: 14px;
  width: 92%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: fadeSlideUp .25s ease;
  overflow: hidden;
}
.cust-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.cust-history-title {
  margin: 0;
  font-size: 1.15rem;
  color: #0f4c3a;
}
.cust-history-title i {
  margin-right: 8px;
  opacity: .8;
}
.cust-history-sub {
  margin: 4px 0 0;
  font-size: .82rem;
  color: #64748b;
}
.cust-history-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.cust-history-close:hover {
  background: #f1f5f9;
  color: #475569;
}

/* ── Stats row inside history modal ── */
.cust-history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.cust-hstat {
  text-align: center;
}
.cust-hstat__num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
}
.cust-hstat__label {
  display: block;
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 2px;
}

/* ── Bookings table inside history modal ── */
.cust-history-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 16px;
}
.cust-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .82rem;
}
.cust-history-table th {
  background: #f8fafc;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  position: sticky;
  top: 0;
  z-index: 1;
}
.cust-history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.cust-history-table tbody tr:hover {
  background: #f8fafc;
}

/* ── Action buttons inside history modal ── */
.cust-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  justify-content: flex-end;
}
.cust-history-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
}
.cust-history-btn:hover { transform: translateY(-1px); }
.cust-history-btn--print {
  background: #0f4c3a;
  color: #fff;
}
.cust-history-btn--print:hover {
  background: #0a3a2c;
}
.cust-history-btn--wa {
  background: #25d366;
  color: #fff;
}
.cust-history-btn--wa:hover {
  background: #1ebd59;
}
.cust-history-btn--close {
  background: #f1f5f9;
  color: #475569;
}
.cust-history-btn--close:hover {
  background: #e2e8f0;
}
.cust-history-btn i {
  margin-right: 6px;
}

/* ── History modal responsive ── */
@media (max-width: 600px) {
  .cust-history-modal { width: 98%; max-height: 95vh; border-radius: 10px; }
  .cust-history-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 16px; }
  .cust-history-header, .cust-history-actions, .cust-history-table-wrap { padding-left: 16px; padding-right: 16px; }
  .cust-history-table { font-size: .76rem; }
  .cust-history-actions { flex-wrap: wrap; }
  .cust-history-btn { flex: 1; min-width: 100px; text-align: center; }
}

/* ═══════════════════════════════════════════════
   HOTELS CMS MODULE
   ═══════════════════════════════════════════════ */

/* ── Dashboard stat card ── */
.stat-card--hotels .stat-card__icon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

/* ── Quick access button ── */
.quick-btn--hotels {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
}
.quick-btn--hotels:hover {
  background: linear-gradient(135deg, #b45309, #d97706);
}

/* ── Section stat cards ── */
.sec-stats--hotels {
  grid-template-columns: repeat(5, 1fr);
}
.sec-stat--hotels-total > i   { background: #d97706; }
.sec-stat--hotels-hotel > i   { background: var(--emerald); }
.sec-stat--hotels-airbnb > i  { background: #e53e3e; }
.sec-stat--hotels-lodge > i   { background: #38a169; }
.sec-stat--hotels-avg > i     { background: #f59e0b; }

/* ── Hotel table image ── */
#hotelTable .table-img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

/* ── Amenity badges in table ── */
.hotel-amenity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.hotel-amenity-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: #f0fdf4;
  color: #166534;
  border-radius: 10px;
  font-size: .65rem;
  font-weight: 500;
  white-space: nowrap;
}
.hotel-amenity-badge i {
  font-size: .6rem;
}

/* ── Rating stars ── */
.hotel-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: .8rem;
}
.hotel-rating-stars span {
  color: var(--text);
  font-weight: 600;
  margin-left: 4px;
  font-size: .78rem;
}

/* ── Type badge ── */
.hotel-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
}
.hotel-type-badge--hotel  { background: #dbeafe; color: #1e40af; }
.hotel-type-badge--airbnb { background: #fee2e2; color: #991b1b; }
.hotel-type-badge--lodge  { background: #dcfce7; color: #166534; }

/* ── Amenities checkbox grid ── */
.hotel-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.hotel-amenity-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-user-select: none;
  user-select: none;
}
.hotel-amenity-check:hover {
  border-color: var(--emerald);
  background: rgba(15, 76, 58, .04);
}
.hotel-amenity-check input:checked + i {
  color: var(--emerald);
}
.hotel-amenity-check input {
  accent-color: var(--emerald);
}
.hotel-amenity-check i {
  font-size: .8rem;
  color: var(--text-light);
  width: 16px;
  text-align: center;
}

/* ── Gallery upload area ── */
.hotel-gallery-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hotel-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hotel-gallery-thumb {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hotel-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hotel-gallery-thumb__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  cursor: pointer;
}

/* ── Form outline button ── */
.form-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-light);
  font-size: .8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.form-btn--outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* ── Detail modal gallery ── */
.hotel-detail-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hotel-detail-gallery img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ── Empty state ── */
.hotel-empty-state {
  text-align: center;
  padding: 40px 20px;
}
.hotel-empty-state > i {
  font-size: 3rem;
  color: #d97706;
  margin-bottom: 12px;
  display: block;
}
.hotel-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.hotel-empty-state p {
  font-size: .85rem;
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* ── Hotels Responsive ── */
@media (max-width: 900px) {
  .sec-stats--hotels {
    grid-template-columns: repeat(3, 1fr);
  }
  .hotel-amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 600px) {
  .sec-stats--hotels {
    grid-template-columns: repeat(2, 1fr);
  }
  #hotelTable th:nth-child(7),
  #hotelTable td:nth-child(7) {
    display: none;
  }
}

/* ═══ HOTEL BOOKINGS MODULE ═════════════════════════════════ */
.sec-stats--hb {
  grid-template-columns: repeat(5, 1fr);
}
.sec-stat--hb-total > i     { background: #6366f1; }
.sec-stat--hb-pending > i   { background: #f6ad55; }
.sec-stat--hb-confirmed > i { background: #48bb78; }
.sec-stat--hb-completed > i { background: #63b3ed; }
.sec-stat--hb-revenue > i   { background: #48bb78; }
.sec-stat--hb-revenue .sec-stat__number {
  font-size: 1rem;
  letter-spacing: -.3px;
}

/* ═══════════════════════════════════════════════
   SOCIAL MEDIA REVENUE
   ═══════════════════════════════════════════════ */

/* KPI row */
.sm-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.sm-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: transform .15s, box-shadow .15s;
}
.sm-kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.sm-kpi__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.05rem;
  flex-shrink: 0;
}
.sm-kpi--total .sm-kpi__icon    { background: linear-gradient(135deg,#667eea,#764ba2); }
.sm-kpi--tiktok .sm-kpi__icon   { background: #010101; }
.sm-kpi--youtube .sm-kpi__icon  { background: #ff0000; }
.sm-kpi--facebook .sm-kpi__icon { background: #1877f2; }
.sm-kpi--instagram .sm-kpi__icon{ background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.sm-kpi--expense .sm-kpi__icon  { background: #e53e3e; }
.sm-kpi--profit .sm-kpi__icon   { background: linear-gradient(135deg,#16a34a,#22d3ee); }
.sm-kpi--month .sm-kpi__icon    { background: var(--emerald); }
.sm-kpi__body { min-width: 0; }
.sm-kpi__val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-kpi__label {
  font-size: .7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Chart card */
.sm-chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}
.sm-chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.sm-chart-top__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sm-chart-top__title { margin: 0; font-size: .95rem; font-weight: 700; color: #0f172a; }
.sm-yr-sel {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .8rem;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
}

/* Pill group */
.sm-pill-group {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 8px;
}
.sm-pill {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font: 600 .78rem/1 inherit;
  cursor: pointer;
  transition: all .15s;
}
.sm-pill:hover { color: #334155; }
.sm-pill--on {
  background: #fff;
  color: var(--emerald);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Canvas (bars) */
.sm-chart-canvas {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 200px;
  padding-bottom: 20px;
}
.sm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.sm-stack {
  width: 70%;
  max-width: 26px;
  display: flex;
  flex-direction: column;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  transition: height .25s;
}
.sm-seg { min-height: 1px; }
.sm-seg--tiktok    { background: #010101; }
.sm-seg--youtube   { background: #ff0000; }
.sm-seg--facebook  { background: #1877f2; }
.sm-seg--instagram { background: #e4405f; }
.sm-lbl {
  margin-top: 4px;
  font-size: .6rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Legend */
.sm-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.sm-legend__item { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: #64748b; }
.sm-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sm-dot--tiktok    { background: #010101; }
.sm-dot--youtube   { background: #ff0000; }
.sm-dot--facebook  { background: #1877f2; }
.sm-dot--instagram { background: #e4405f; }

/* Platform cards */
.sm-platforms {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.sm-pcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.sm-pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.sm-pcard__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font: 700 .86rem/1 inherit;
  color: #fff;
}
.sm-pcard__hd i { font-size: 1.05rem; opacity: .9; }
.sm-pcard--tiktok .sm-pcard__hd    { background: #010101; }
.sm-pcard--youtube .sm-pcard__hd   { background: #ff0000; }
.sm-pcard--facebook .sm-pcard__hd  { background: #1877f2; }
.sm-pcard--instagram .sm-pcard__hd { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.sm-pcard__bd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px;
}
.sm-pcard__st { text-align: center; }
.sm-pcard__v { display: block; font: 700 .86rem/1.2 inherit; color: #0f172a; }
.sm-pcard__l {
  display: block;
  font-size: .62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: 1px;
}

/* Table badges */
.sm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font: 600 .72rem/1.4 inherit;
  color: #fff;
}
.sm-badge--tiktok    { background: #010101; }
.sm-badge--youtube   { background: #ff0000; }
.sm-badge--facebook  { background: #1877f2; }
.sm-badge--instagram { background: linear-gradient(135deg,#f58529,#dd2a7b); }
.sm-type {
  padding: 2px 9px;
  background: #f1f5f9;
  border-radius: 20px;
  font: 600 .7rem/1.4 inherit;
  color: #475569;
}
.sm-amt { font-weight: 700; color: var(--emerald); }

/* Status badges */
.sm-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.sm-status--pending  { background: #fef3c7; color: #92400e; }
.sm-status--approved { background: #d1fae5; color: #065f46; }
.sm-status--paid     { background: #dbeafe; color: #1e40af; }
.sm-status--rejected { background: #fee2e2; color: #991b1b; }

/* Actions cell */
.sm-actions-cell { white-space: nowrap; display: flex; gap: 4px; justify-content: flex-end; }
.sm-has-note { color: #d97706; border-color: #d97706; }
.sm-has-note:hover { background: #fef3c7; color: #92400e; border-color: #92400e; }

/* Table tweaks */
#sec-socialMedia .data-table { width: 100%; }
#sec-socialMedia .data-table td:last-child,
#sec-socialMedia .data-table th:last-child { white-space: nowrap; text-align: right; }

/* Form grid */
.sm-form-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

/* Responsive */
@media (max-width:1100px) { .sm-kpi-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width:900px) {
  .sm-kpi-row      { grid-template-columns: repeat(2,1fr); }
  .sm-platforms    { grid-template-columns: repeat(2,1fr); }
  .sm-form-grid    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .sm-kpi-row      { grid-template-columns: 1fr; }
  .sm-platforms    { grid-template-columns: 1fr; }
  .sm-pill-group   { flex-wrap: wrap; }
  .sm-form-grid    { grid-template-columns: 1fr; }
  .sm-legend       { flex-wrap: wrap; gap: 8px; }
  .sm-chart-canvas { height: 150px; }
}
