@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1976e0;
  --blue-dark: #125bb0;
  --blue-light: #eaf3ff;
  --navbar: #171c26;
  --navbar-hover: #262d3b;
  --text: #202531;
  --muted: #6b7686;
  --border: #e3e7ee;
  --bg: #f2f5f9;
  --card: #ffffff;
  --green: #2e9e4f;
  --green-bg: #e7f7ec;
  --orange: #f0930f;
  --orange-bg: #fef3e2;
  --red: #e34848;
  --red-bg: #fdecec;
  --purple: #7c5cff;
  --purple-bg: #f1edff;
  --radius: 12px;
}

body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button, input, select, textarea { font-family:'Inter',sans-serif; }

/* ══════════════ AUTH / LOGIN ══════════════ */
body.auth-body {
  /* Agent's default, unthemed look -- burnt amber, matching the app-shell theme below. */
  background: linear-gradient(135deg, #2e1500 0%, #713600 55%, #b8620a 100%);
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding:20px;
}
body.auth-body::before {
  content:''; position:absolute; top:-180px; right:-140px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}
body.auth-body::after {
  content:''; position:absolute; bottom:-160px; left:-120px; width:480px; height:480px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}
/* Same per-module colors as the app shell (see MODULE THEMES below). */
body.auth-body.auth-body--hotel { background:linear-gradient(135deg, #2e060d 0%, #7a1220 55%, #c22a3d 100%); }
body.auth-body.auth-body--superadmin { background:linear-gradient(135deg, #240a1c 0%, #5c1a4a 55%, #9c3a7d 100%); }

.auth-wrap { width:100%; max-width:420px; position:relative; z-index:1; }
.auth-brand { text-align:center; margin-bottom:26px; }
.auth-brand .brand-icon {
  width:60px; height:60px; border-radius:16px; background:#fff;
  border:1px solid rgba(255,255,255,0.35); display:flex; align-items:center; justify-content:center;
  font-size:28px; margin:0 auto 14px; overflow:hidden;
}
.auth-brand .brand-icon img { width:36px; height:36px; object-fit:contain; }
.auth-brand h1 { color:#fff; font-size:24px; font-weight:800; letter-spacing:-0.3px; }
.auth-brand p { color:rgba(255,255,255,0.75); font-size:12.5px; letter-spacing:0.6px; margin-top:4px; text-transform:uppercase; }

.auth-card { background:#fff; border-radius:18px; padding:32px; box-shadow:0 24px 60px rgba(10,30,60,0.28); }
.auth-card h2 { font-size:19px; font-weight:700; margin-bottom:4px; }
.auth-card > p.sub { color:var(--muted); font-size:13px; margin-bottom:24px; }

.field { margin-bottom:16px; }
.field label { display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.4px; }
.field input, .field select {
  width:100%; padding:11px 14px; border:1.5px solid var(--border); border-radius:9px;
  font-size:14px; outline:none; color:var(--text); background:#fff; transition:border-color .15s;
}
.field input:focus, .field select:focus { border-color:var(--blue); }
.field-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; font-size:12.5px; }
.field-row a { color:var(--blue); font-weight:600; }
.checkbox-row { display:flex; align-items:center; gap:8px; color:var(--muted); }

.demo-creds { background:var(--blue-light); border:1px solid #cfe4fb; border-radius:9px; padding:12px 14px; margin-bottom:20px; }
.demo-creds p { font-size:12px; color:#2b5a8a; line-height:1.8; margin:0; }
.demo-creds strong { color:var(--blue-dark); }

.error-msg { background:var(--red-bg); border:1px solid #f6c6c6; color:#b53434; border-radius:8px; padding:10px 14px; font-size:12.5px; margin-bottom:16px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 18px; border-radius:9px; border:none; font-size:13.5px; font-weight:600; cursor:pointer; transition:all .15s; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:var(--blue-dark); }
.btn-block { width:100%; padding:12px; font-size:14.5px; }
.btn-outline { background:#fff; color:var(--blue); border:1.5px solid var(--blue); }
.btn-outline:hover { background:var(--blue-light); }
.btn-ghost { background:var(--bg); color:var(--muted); border:1px solid var(--border); }
.btn-ghost:hover { background:var(--border); }
.btn-sm { padding:6px 12px; font-size:12px; }
.btn-danger { background:var(--red-bg); color:var(--red); border:1px solid #f5c2c2; }

.auth-footer { text-align:center; margin-top:20px; color:rgba(255,255,255,0.7); font-size:12px; }

/* ══════════════ APP SHELL (TOPBAR + NAVBAR) ══════════════ */
body.app-body { display:flex; flex-direction:column; min-height:100vh; }

.topbar {
  background:linear-gradient(90deg, var(--blue-dark), var(--blue));
  color:#fff; padding:12px 26px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.topbar-left { display:flex; align-items:center; gap:12px; }
.topbar-logo { display:flex; align-items:center; gap:9px; font-weight:800; font-size:18px; letter-spacing:-0.3px; }
.topbar-logo .brand-icon { width:34px; height:34px; border-radius:9px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.topbar-logo .brand-icon img { display:block; width:30px; height:30px; object-fit:contain; }
.topbar-logo .name { font-weight:800; }
.topbar-divider { width:1px; height:22px; background:rgba(255,255,255,0.3); }
.topbar-agency { font-size:12.5px; color:rgba(255,255,255,0.85); }
.topbar-agency strong { color:#fff; font-weight:700; }

.topbar-right { display:flex; align-items:center; gap:18px; }
.topbar-icon-btn { width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,0.14); border:none; color:#fff; font-size:15px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.topbar-icon-btn:hover { background:rgba(255,255,255,0.24); }
.topbar-user { display:flex; align-items:center; gap:9px; cursor:pointer; }
.topbar-user .avatar { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.22); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.topbar-user .u-name { font-size:13px; font-weight:600; line-height:1.2; }
.topbar-user .u-role { font-size:11px; color:rgba(255,255,255,0.75); }

.navbar { background:var(--navbar); padding:0 22px; display:flex; align-items:center; gap:4px; overflow-x:auto; }
.nav-tab { display:flex; align-items:center; gap:7px; padding:13px 18px; color:rgba(255,255,255,0.62); font-size:13.5px; font-weight:600; border-radius:9px 9px 0 0; white-space:nowrap; transition:all .15s; }
.nav-tab:hover { color:#fff; background:var(--navbar-hover); }
.nav-tab.active { background:#fff; color:var(--blue-dark); }
.nav-tab .nav-ic { font-size:15px; }

/* ══════════════ MODULE THEMES ══════════════
   The Hotel and Travel Agent portals use the shared sidebar shell in portal-theme.css (default colours charcoal and navy, changeable under Settings > Appearance).
   Only the SuperAdmin portal still uses this horizontal topbar + tab navbar, in plum. */
body.app-body--superadmin { background:#f7f0f5; }
body.app-body--superadmin .topbar { background:linear-gradient(90deg, #3a0f2f, #5c1a4a); }
body.app-body--superadmin .navbar { background:#2a0b22; }
body.app-body--superadmin .navbar .nav-tab:hover { background:#401433; }
body.app-body--superadmin .nav-tab.active { color:#5c1a4a; }

.page-wrap { flex:1; padding:24px 26px 40px; max-width:1400px; margin:0 auto; width:100%; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.page-title { font-size:21px; font-weight:800; letter-spacing:-0.3px; }
.page-sub { font-size:13px; color:var(--muted); margin-top:3px; }
.breadcrumb { font-size:12.5px; color:var(--muted); margin-bottom:8px; }
.breadcrumb a { color:var(--blue); font-weight:600; }

/* ══════════════ CARDS / STATS ══════════════ */
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); }
.card-header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border); flex-wrap:wrap; gap:10px; }
.card-title { font-size:14.5px; font-weight:700; }
.card-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.card-body { padding:20px; }

.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:22px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; display:flex; align-items:center; gap:14px; }
.stat-ic { width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0; }
.stat-ic.blue { background:var(--blue-light); color:var(--blue); }
.stat-ic.green { background:var(--green-bg); color:var(--green); }
.stat-ic.orange { background:var(--orange-bg); color:var(--orange); }
.stat-ic.purple { background:var(--purple-bg); color:var(--purple); }
.stat-ic.red { background:var(--red-bg); color:var(--red); }
.stat-value { font-size:22px; font-weight:800; line-height:1.1; }
.stat-label { font-size:12px; color:var(--muted); margin-top:3px; font-weight:500; }

/* ══════════════ SEARCH PANEL ══════════════ */
.search-panel { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:24px; box-shadow:0 6px 20px rgba(20,40,80,0.05); }
.search-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.1fr auto; gap:12px; align-items:end; }
.search-field label { display:block; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:6px; }
.search-field input, .search-field select {
  width:100%; padding:11px 13px; border:1.5px solid var(--border); border-radius:9px; font-size:13.5px; outline:none; background:#fbfcfe;
}
.search-field input:focus, .search-field select:focus { border-color:var(--blue); background:#fff; }
.occ-box { display:flex; gap:8px; }
.occ-box select { flex:1; }
.search-btn { padding:11px 22px; background:var(--blue); color:#fff; border:none; border-radius:9px; font-weight:700; font-size:14px; cursor:pointer; white-space:nowrap; height:42px; }
.search-btn:hover { background:var(--blue-dark); }

/* ══════════════ HOTEL RESULT CARDS ══════════════ */
.results-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; flex-wrap:wrap; gap:10px; }
.results-count { font-size:13.5px; color:var(--muted); }
.results-count strong { color:var(--text); }
.sort-select { padding:8px 12px; border:1px solid var(--border); border-radius:8px; font-size:12.5px; background:#fff; }

.hotel-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); display:flex; gap:0; margin-bottom:16px; overflow:hidden; transition:box-shadow .15s; }
.hotel-card:hover { box-shadow:0 10px 26px rgba(20,40,80,0.09); }
.hotel-img { width:220px; flex-shrink:0; background:linear-gradient(135deg,#dce8fa,#c3d9f5); display:flex; align-items:center; justify-content:center; font-size:40px; }
.hotel-img { position:relative; overflow:hidden; min-height:200px; }
.hotel-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hotel-facts { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:12.5px; color:var(--muted); }
.hotel-facts b { color:var(--text); }
.tag-amenity { background:#eef7f0; border-color:#cfe8d6; color:#256b3a; }
.tag-more { background:#eef5ff; border-color:#cfe0f7; color:#1b4f8f; text-decoration:none; }
.hotel-body { flex:1; padding:18px 20px; display:flex; flex-direction:column; }
.hotel-top { display:flex; justify-content:space-between; gap:12px; }
.hotel-name { font-size:16px; font-weight:700; }
.hotel-loc { font-size:12.5px; color:var(--muted); margin-top:3px; display:flex; align-items:center; gap:5px; }
.hotel-stars { color:#f0a91f; font-size:12px; margin-top:5px; }
.hotel-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.tag { background:var(--bg); border:1px solid var(--border); color:var(--muted); font-size:11px; font-weight:600; padding:4px 9px; border-radius:6px; }
.hotel-bottom { margin-top:auto; padding-top:14px; display:flex; justify-content:space-between; align-items:flex-end; }
.hotel-rating-badge { background:var(--green); color:#fff; font-size:12px; font-weight:700; padding:4px 8px; border-radius:6px; }
.hotel-price-block { text-align:right; }
.price-from { font-size:11px; color:var(--muted); }
.price-value { font-size:21px; font-weight:800; color:var(--text); }
.price-tax { font-size:11px; color:var(--muted); }
.commission-chip { display:inline-block; margin-top:6px; background:var(--purple-bg); color:var(--purple); font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }

/* ══════════════ TABLES ══════════════ */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
thead th { padding:12px 16px; text-align:left; font-size:10.8px; font-weight:700; letter-spacing:0.4px; text-transform:uppercase; color:var(--muted); background:#fafbfd; border-bottom:1px solid var(--border); white-space:nowrap; }
tbody tr { border-bottom:1px solid #f0f2f6; }
tbody tr:hover { background:#fafbfd; }
tbody tr:last-child { border-bottom:none; }
tbody td { padding:13px 16px; vertical-align:middle; white-space:nowrap; }
td.wrap { white-space:normal; }
.cell-strong { font-weight:700; }
.cell-link { color:var(--blue); font-weight:700; }
.cell-muted { color:var(--muted); font-size:12px; }

/* ══════════════ BADGES ══════════════ */
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700; white-space:nowrap; }
.badge-green { background:var(--green); color:#fff; }
.badge-green-soft { background:var(--green-bg); color:#1e7e34; }
.badge-orange-soft { background:var(--orange-bg); color:#b9690a; }
.badge-red-soft { background:var(--red-bg); color:#b53434; }
.badge-blue-soft { background:var(--blue-light); color:var(--blue-dark); }
.badge-purple-soft { background:var(--purple-bg); color:var(--purple); }
.badge-gray { background:#eef0f4; color:var(--muted); }

/* ══════════════ FILTER BAR ══════════════ */
.filter-bar { display:flex; gap:10px; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.filter-bar .search-input { flex:1; min-width:200px; padding:9px 14px; border:1px solid var(--border); border-radius:9px; font-size:13px; outline:none; }
.filter-bar select { padding:9px 12px; border:1px solid var(--border); border-radius:9px; font-size:13px; background:#fff; outline:none; }

/* ══════════════ TABS (secondary, in-page) ══════════════ */
.subtabs { display:flex; gap:4px; background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:4px; width:fit-content; margin-bottom:18px; }
.subtab { padding:8px 16px; border-radius:7px; font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; }
.subtab.active { background:#fff; color:var(--blue-dark); box-shadow:0 1px 3px rgba(0,0,0,0.08); }

/* ══════════════ DETAIL PAGE ══════════════ */
.detail-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:20px; }
/* Table cells never wrap, so without this a wide table would set the column's minimum width and push the side panels out of line; it scrolls inside its card instead. */
.detail-grid > * { min-width:0; }
.info-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #f0f2f6; font-size:13px; }
.info-row:last-child { border-bottom:none; }
.info-row .label { color:var(--muted); }
.info-row .value { font-weight:700; text-align:right; }
.status-strip { display:flex; align-items:center; gap:12px; padding:16px 20px; }
.status-track { display:flex; align-items:center; flex:1; }
.status-step { display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; position:relative; }
.status-step::before { content:''; position:absolute; top:13px; left:-50%; width:100%; height:2px; background:var(--border); z-index:0; }
.status-step:first-child::before { display:none; }
.status-step.done::before { background:var(--green); }
.status-dot { width:26px; height:26px; border-radius:50%; background:var(--border); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; z-index:1; }
.status-step.done .status-dot { background:var(--green); }
.status-step.current .status-dot { background:var(--blue); }
.status-step.rejected .status-dot { background:var(--red); }
.status-step.rejected::before { background:var(--red); }
.status-step-label { font-size:11px; font-weight:600; color:var(--muted); }
.status-step.done .status-step-label, .status-step.current .status-step-label { color:var(--text); }

.commission-box { background:var(--purple-bg); border:1px solid #e0d6ff; border-radius:12px; padding:18px 20px; }
.commission-box .amt { font-size:26px; font-weight:800; color:var(--purple); }
.commission-box .lbl { font-size:12px; color:#6a5ba8; font-weight:600; margin-top:2px; }

/* ══════════════ TOAST ══════════════ */
.toast { position:fixed; bottom:24px; right:24px; background:var(--navbar); color:#fff; padding:13px 20px; border-radius:10px; font-size:13px; font-weight:600; z-index:999; display:flex; align-items:center; gap:8px; transform:translateY(80px); opacity:0; transition:all .3s; pointer-events:none; box-shadow:0 10px 30px rgba(0,0,0,0.25); }
.toast.show { transform:translateY(0); opacity:1; }

/* ══════════════ CONTACT PERSON CARDS (Profile) ══════════════ */
.contact-card { border:1.5px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:14px; position:relative; }
.contact-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.contact-card-head .chip { background:var(--blue-light); color:var(--blue-dark); font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; }
.contact-card-head .chip.secondary { background:var(--bg); color:var(--muted); }
.contact-remove-btn { background:none; border:none; color:var(--red); font-size:12px; font-weight:600; cursor:pointer; padding:2px 6px; }
.contact-remove-btn:hover { text-decoration:underline; }
.add-contact-btn { width:100%; padding:12px; border:1.5px dashed var(--border); border-radius:10px; background:#fbfcfe; color:var(--blue); font-weight:700; font-size:13px; cursor:pointer; }
.add-contact-btn:hover { border-color:var(--blue); background:var(--blue-light); }

/* ══════════════ MISC ══════════════ */
.empty-state { text-align:center; padding:60px 20px; color:var(--muted); }
.empty-state-icon { font-size:44px; margin-bottom:10px; }
.footer-note { text-align:center; padding:22px; color:var(--muted); font-size:12px; }

.promo-card { background:linear-gradient(135deg,#eaf3ff,#dcecff); border:1px solid #cfe4fb; border-radius:var(--radius); padding:20px; }
.promo-card h4 { font-size:15px; font-weight:800; color:var(--blue-dark); margin-bottom:6px; }
.promo-card p { font-size:12.5px; color:#3a5a80; line-height:1.6; }

.pill-select-row { display:flex; gap:8px; flex-wrap:wrap; }
.pill { padding:8px 16px; border-radius:20px; border:1px solid var(--border); font-size:12.5px; font-weight:600; cursor:pointer; background:#fff; }
.pill.active { background:var(--blue); border-color:var(--blue); color:#fff; }

/* ══════════════ GROUP BOOKING BANNER (cross-page CTA) ══════════════ */
.group-cta {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:linear-gradient(120deg, #1c2a4d, #2a4d8f); color:#fff;
  border-radius:var(--radius); padding:18px 22px; margin-bottom:22px;
}
.group-cta-text h4 { font-size:14.5px; font-weight:800; margin-bottom:3px; }
.group-cta-text p { font-size:12.5px; color:rgba(255,255,255,0.75); }
.group-cta .btn-primary { background:#fff; color:var(--blue-dark); flex-shrink:0; }
.group-cta .btn-primary:hover { background:#eaf3ff; }

/* ══════════════ FORM SECTIONS (Group Quotation Request) ══════════════ */
.form-section { margin-bottom:26px; }
.form-section-title { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--muted); margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.form-section-title .num { width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-size:11.5px; flex-shrink:0; }
.form-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.form-row.cols-2 { grid-template-columns:repeat(2,1fr); }
.form-row.cols-4 { grid-template-columns:repeat(4,1fr); }
.field-hint { font-size:11.5px; color:var(--muted); margin-top:5px; }

.radio-card-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; }
.radio-card { border:1.5px solid var(--border); border-radius:10px; padding:12px 14px; cursor:pointer; font-size:13px; font-weight:600; display:flex; align-items:center; gap:9px; background:#fff; transition:all .15s; }
.radio-card:hover { border-color:#b9cbe6; }
.radio-card.selected { border-color:var(--blue); background:var(--blue-light); color:var(--blue-dark); }
.radio-card .ic { font-size:17px; }

.toggle-yn { display:flex; gap:8px; }
.toggle-yn .radio-card { flex:1; justify-content:center; }

.transport-panel { background:var(--bg); border:1px dashed var(--border); border-radius:10px; padding:16px; margin-top:14px; display:none; }
.transport-panel.open { display:block; }

.quote-type-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.quote-type-card { border:1.5px solid var(--border); border-radius:12px; padding:16px; cursor:pointer; }
.quote-type-card.selected { border-color:var(--purple); background:var(--purple-bg); }
.quote-type-card .qt-title { font-weight:700; font-size:13.5px; margin-bottom:4px; }
.quote-type-card .qt-desc { font-size:11.5px; color:var(--muted); line-height:1.5; }

/* ══════════════ GROUP QUOTE LIST / CARDS ══════════════ */
.group-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-bottom:14px; }
.group-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; }
.group-card-id { font-size:11.5px; color:var(--muted); font-weight:600; }
.group-card-name { font-size:15.5px; font-weight:700; margin-top:2px; }
.group-card-meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:12.5px; color:var(--muted); }
.group-card-meta span { display:flex; align-items:center; gap:5px; }
.group-card-bottom { display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:14px; border-top:1px solid #f0f2f6; }
.group-quote-amt { font-size:17px; font-weight:800; }
.group-quote-amt .per { font-size:11px; font-weight:500; color:var(--muted); }

/* ══════════════ QUOTATION BREAKUP ══════════════ */
.breakup-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #f0f2f6; font-size:13px; }
.breakup-row:last-child { border-bottom:none; }
.breakup-row .label { color:var(--muted); }
.breakup-row .label small { display:block; font-size:11px; color:#a3adbb; }
.breakup-row.total { border-top:2px solid var(--border); margin-top:4px; padding-top:14px; font-weight:800; font-size:15px; }
.breakup-row.perpax { background:var(--purple-bg); margin:8px -20px -4px; padding:14px 20px; border-radius:0 0 12px 12px; border-bottom:none; }
.breakup-row.perpax .value { color:var(--purple); font-size:17px; font-weight:800; }

/* ══════════════ MESSAGE / NEGOTIATION THREAD ══════════════ */
.msg-thread { display:flex; flex-direction:column; gap:12px; }
.msg-bubble { background:var(--bg); border-radius:10px; padding:12px 14px; max-width:88%; }
.msg-bubble.from-agent { background:var(--blue-light); align-self:flex-end; }
.msg-meta { font-size:11px; color:var(--muted); font-weight:600; margin-bottom:4px; }
.msg-text { font-size:13px; line-height:1.6; }
.msg-composer { display:flex; gap:10px; margin-top:16px; }
.msg-composer textarea { flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:9px; font-size:13px; resize:vertical; min-height:44px; outline:none; }
.msg-composer textarea:focus { border-color:var(--blue); }

/* ══════════════ VALIDATION ══════════════ */
.field span.field-validation-error, .text-danger { color:var(--red); font-size:12px; display:block; margin-top:4px; }
.validation-summary-errors ul { list-style:disc; padding-left:18px; color:var(--red); font-size:12.5px; }

.stat-ic.gray { background:#eef0f4; color:var(--muted); }

/* ══════════════ PACKAGE CARDS (Hotel Packages module) ══════════════ */
.package-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:18px; }
.package-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .15s; }
.package-card:hover { box-shadow:0 10px 26px rgba(20,40,80,0.09); }
.package-card-img { height:150px; background:linear-gradient(135deg,#dce8fa,#c3d9f5) center/cover no-repeat; display:flex; align-items:center; justify-content:center; font-size:36px; position:relative; }
.package-card-badge { position:absolute; top:10px; right:10px; }
.package-card-body { padding:16px 18px; }
.package-card-title { font-size:15px; font-weight:700; margin-bottom:6px; }
.package-card-meta { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin:8px 0 12px; }
.package-card-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:12px; border-top:1px solid #f0f2f6; }
.package-thumb-preview { display:block; width:100%; max-width:160px; height:90px; object-fit:cover; border-radius:8px; margin-bottom:8px; }

/* ══════════════ PACKAGE ITINERARY / GALLERY (edit form) ══════════════ */
.itinerary-day-card { border:1.5px solid var(--border); border-radius:10px; padding:14px 16px; margin-bottom:12px; }
.itinerary-day-head { font-size:13px; font-weight:700; color:var(--blue-dark); margin-bottom:4px; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:14px; }
.gallery-item-card { border:1.5px solid var(--border); border-radius:10px; padding:14px; }

/* ══════════════ PRINT INVOICE ══════════════ */
body.print-body { background:var(--bg); padding:30px 16px; }
.invoice-actions { max-width:720px; margin:0 auto 16px; display:flex; justify-content:flex-end; }
.invoice-sheet { max-width:720px; margin:0 auto; background:#fff; border-radius:var(--radius); padding:36px; box-shadow:0 6px 24px rgba(20,40,80,0.08); }
.invoice-head { display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:20px; border-bottom:2px solid var(--border); margin-bottom:20px; }
.invoice-brand { font-size:20px; font-weight:800; }
.invoice-ref { text-align:right; }
.invoice-section { margin-bottom:22px; }
.invoice-section-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--muted); margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.invoice-footer { text-align:center; font-size:11.5px; color:var(--muted); margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }

@media print {
  .invoice-sheet { box-shadow:none; padding:0; }
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .search-grid { grid-template-columns:1fr 1fr; }
  .detail-grid { grid-template-columns:1fr; }
  .hotel-card { flex-direction:column; }
  .hotel-img { width:100%; height:150px; }
  .form-row, .form-row.cols-2, .form-row.cols-4 { grid-template-columns:1fr 1fr; }
  .quote-type-row { grid-template-columns:1fr; }
  .group-cta { flex-direction:column; align-items:flex-start; }
}

/* Search & Book filter panel (shown only when there are more than 5 properties) */
.filter-panel { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px 18px 12px; margin-bottom:16px; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:0 16px; }
.filter-range { display:flex; align-items:center; gap:6px; }
.filter-range input { min-width:0; }
.filter-amenities { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; }
.filter-label { font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.4px; margin-right:4px; }
.amenity-chip { display:inline-flex; align-items:center; gap:6px; background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:4px 10px; font-size:12px; cursor:pointer; }
.filter-actions { display:flex; justify-content:flex-end; margin-bottom:6px; }

/* Image Library photo picker (Prompt Library) */
.img-picker { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:10px; }
.img-pick { position:relative; display:block; border:2px solid var(--border); border-radius:10px; overflow:hidden; cursor:pointer; background:#fff; }
.img-pick img { width:100%; height:80px; object-fit:cover; display:block; }
.img-pick span { display:block; padding:4px 6px; font-size:11px; line-height:1.3; color:var(--muted); max-height:3.9em; overflow:hidden; }
.img-pick input { position:absolute; top:6px; left:6px; width:16px; height:16px; }
.img-pick:has(input:checked) { border-color:var(--blue); }
.prompt-thumbs { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 10px; }
.prompt-thumbs img { width:56px; height:56px; object-fit:cover; border-radius:8px; border:1px solid var(--border); }

/* "Self Booking" (made by hotel staff for a direct customer) is deep magenta wherever it appears, to tell it apart from agent bookings (blue reads as a link). */
.self-booking { color:#c2127a; font-weight:700; }
