/* Plejar agency panel and invite page */

:root {
  --sans: 'Schibsted Grotesk', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --paper: #f5f7f2;
  --white: #ffffff;
  --ink: #10261f;
  --ink-soft: #435a51;
  --ink-faint: #6f8279;
  --line: #d8e2da;
  --tea: #1f7a55;
  --tea-deep: #155a3e;
  --tea-wash: #e3efe8;
  --marigold: #f2b21b;
  --marigold-wash: #fdf3d6;
  --danger: #b4233c;
  --danger-wash: #fde8ee;
  --shadow: 0 20px 40px -24px rgba(16, 38, 31, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); font-size: 0.97rem; line-height: 1.55; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--tea); }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

.logo { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.045em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); margin-left: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--tea); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--tea-deep); }
.btn-quiet { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { border-color: var(--ink-soft); }
.btn-danger { background: var(--white); border-color: #f1c2cd; color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-wash); }
.btn-sm { padding: 6px 12px; font-size: 0.84rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* Forms */
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); font: inherit; font-size: 0.95rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--tea); box-shadow: 0 0 0 3px var(--tea-wash); }
.field input:disabled, .field textarea:disabled { background: var(--paper); color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
/* Two small inputs side by side (group size min and max), even on phones */
.field-row-tight, .field-row .field-row-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; }
.alert-error { background: var(--danger-wash); color: var(--danger); }
.alert-ok { background: var(--tea-wash); color: var(--tea-deep); }
.alert-warn { background: var(--marigold-wash); color: #7a5600; }

/* Centered auth card (login, invite) */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.auth-card .sub { color: var(--ink-soft); margin: 6px 0 22px; }

/* Auth divider & Google button */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span {
  padding: 0 10px;
}
.google-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
.google-btn-wrapper iframe {
  margin: 0 auto !important;
}
.google-auth-unconfigured {
  text-align: center;
  width: 100%;
}
.btn-google-disabled {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--paper);
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.85;
}
.google-auth-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* Panel layout */
.panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.side-agency { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--paper); }
.side-agency img, .avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.avatar { display: grid; place-items: center; background: var(--tea-wash); color: var(--tea-deep); font-weight: 700; }
.side-agency strong { display: block; font-size: 0.92rem; line-height: 1.25; }
.side-agency small { color: var(--ink-faint); font-size: 0.78rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; padding: 10px 12px; border-radius: 10px; border: none; background: none;
  font-weight: 500; color: var(--ink-soft);
}
.side-nav button:hover { background: var(--paper); color: var(--ink); }
.side-nav button.active { background: var(--tea-wash); color: var(--tea-deep); font-weight: 700; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--ink-faint); }
.side-foot strong { color: var(--ink); display: block; }

.main { padding: 32px 40px 64px; max-width: 1080px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.15; }
.page-head p { color: var(--ink-soft); margin-top: 4px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.card > p.muted { color: var(--ink-soft); margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat dt { font-size: 0.82rem; color: var(--ink-faint); }
.stat dd { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; }
.callout strong { display: block; }
.callout-warn { background: var(--marigold-wash); }
.callout-ok { background: var(--tea-wash); }
.callout-error { background: var(--danger-wash); }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.badge-published, .badge-active, .badge-approved { background: var(--tea-wash); color: var(--tea-deep); }
.badge-draft, .badge-invited, .badge-pending { background: var(--marigold-wash); color: #7a5600; }
.badge-hidden, .badge-none { background: #eceeea; color: var(--ink-soft); }
.badge-rejected, .badge-suspended { background: var(--danger-wash); color: var(--danger); }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pkg { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pkg-photo { aspect-ratio: 16 / 10; background: var(--tea-wash); object-fit: cover; width: 100%; }
.pkg-photo-empty { display: grid; place-items: center; color: var(--tea); font-size: 0.85rem; }
.pkg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pkg-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pkg-body h3 { font-size: 1rem; line-height: 1.3; }
.pkg-meta { color: var(--ink-soft); font-size: 0.86rem; }
.pkg-price { font-weight: 800; }
.pkg-note { font-size: 0.8rem; color: var(--danger); }
.pkg-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-soft); background: var(--white); border: 1.5px dashed var(--line); border-radius: 16px; }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

.photo-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-thumb { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(16, 38, 31, 0.75); color: #fff; font-size: 0.9rem; line-height: 1; }
.photo-thumb.is-removed { opacity: 0.35; }

.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-preview { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--tea-wash); display: grid; place-items: center; color: var(--tea-deep); font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }

/* Tables (team) */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }
.cell-sub { display: block; font-size: 0.82rem; color: var(--ink-faint); }

.invite-link { display: flex; gap: 8px; margin-top: 10px; }
.invite-link input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 0.82rem; }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }

/* Drawer (package editor) */
.drawer-bg { position: fixed; inset: 0; background: rgba(16, 38, 31, 0.45); z-index: 80; display: flex; justify-content: flex-end; }
.drawer { width: min(560px, 100%); height: 100%; background: var(--paper); overflow-y: auto; padding: 24px 24px 40px; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.3); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.2rem; line-height: 1; }
.drawer-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.9rem; border-left: 4px solid #5fd3a0; box-shadow: var(--shadow); transition: opacity 0.3s ease; }
.toast.error { border-left-color: #ff6b8a; }

/* Tour events */
.muted { color: var(--ink-faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink-soft); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pkg-date { font-weight: 700; color: var(--tea-deep); font-size: 0.9rem; }
.pkg-price .muted { font-weight: 500; font-size: 0.84rem; }
.pkg.is-cancelled .pkg-photo { filter: grayscale(1); opacity: 0.6; }
.pkg-actions { flex-wrap: wrap; }
.seats { display: grid; gap: 4px; font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }
.seats-bar { height: 6px; border-radius: 999px; background: var(--tea-wash); overflow: hidden; }
.seats-bar span { display: block; height: 100%; background: var(--tea); border-radius: inherit; }
.duration-hint { margin: -8px 0 14px; font-size: 0.84rem; color: var(--ink-faint); }
.badge-cancelled { background: var(--danger-wash); color: var(--danger); }
.badge-confirmed, .badge-completed { background: var(--tea-wash); color: var(--tea-deep); }
.badge-pinned { background: var(--ink); color: #fff; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover:not(:disabled) { background: #921a30; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; margin-bottom: 14px; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tea); flex-shrink: 0; }

/* Registrations */
.reg-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 4px; }
.reg-bar .btn { margin-bottom: 16px; }
.stats-tight .stat dd small { font-size: 0.9rem; font-weight: 600; color: var(--ink-faint); }
.reg-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.9rem; }
.table td .cell-sub a { color: inherit; }

/* Announcements */
.ann-list { display: grid; gap: 14px; }
.ann { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.ann.is-pinned { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--marigold); }
.ann-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ann-top h3 { font-size: 1.05rem; line-height: 1.3; }
.ann-badges { display: flex; gap: 6px; flex-shrink: 0; }
.ann-body { margin: 8px 0 10px; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ann-meta { font-size: 0.82rem; color: var(--ink-faint); }

/* Notifications */
.audience { border: none; margin-bottom: 8px; }
.audience legend { margin-bottom: 10px; }
.audience-event { margin: -6px 0 14px 28px; }
.sent-list { list-style: none; display: grid; gap: 0; }
.sent-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sent-list li:last-child { border-bottom: none; }
.sent-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sent-top .muted { font-size: 0.82rem; }
.sent-list p { margin: 4px 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Small confirm dialog */
.dialog-bg { align-items: center; justify-content: center; padding: 16px; }
.dialog { width: min(480px, 100%); background: var(--paper); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.dialog h2 { font-size: 1.2rem; margin-bottom: 6px; }
.dialog > p.muted { margin-bottom: 16px; font-size: 0.92rem; }

/* Tour plan editor */
.drawer-wide { width: min(820px, 100%); }
.drawer-lead { color: var(--ink-soft); font-size: 0.92rem; margin: -8px 0 16px; }
.plan-section { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 4px; margin-bottom: 14px; }
.plan-section h3 { font-size: 1rem; margin-bottom: 12px; }
.plan-section > .hint { margin: -6px 0 12px; }
.day-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--paper); }
.day-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.day-no { font-weight: 800; color: var(--tea-deep); }
.day-date { font-size: 0.82rem; color: var(--ink-faint); }
.day-card input, .day-card select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 0.88rem; color: var(--ink); min-width: 0; }
.day-card input:focus, .day-card select:focus { outline: none; border-color: var(--tea); box-shadow: 0 0 0 3px var(--tea-wash); }
.stop-list { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; counter-reset: stop; }
.stop-row { display: grid; grid-template-columns: 96px 110px minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.stop-row input.is-linked { border-color: var(--tea); background: var(--tea-wash); }
.stop-actions { display: flex; gap: 2px; }
.icon-btn { width: 28px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); font-size: 0.9rem; line-height: 1; color: var(--ink-soft); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn.danger { color: var(--danger); }
.day-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.86rem; }
.day-foot .label { font-weight: 600; margin: 0; }
.meal { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.meal input { width: 16px; height: 16px; accent-color: var(--tea); }
.day-stay { flex: 1 1 240px; }
.plan-check { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--marigold-wash); color: #6b4a00; font-size: 0.88rem; }
.plan-check ul { margin: 6px 0 0 18px; columns: 2; column-gap: 24px; }
.plan-check.is-complete { background: var(--tea-wash); color: var(--tea-deep); }
.pkg-plan-missing { font-size: 0.8rem; color: #7a5600; background: var(--marigold-wash); border-radius: 8px; padding: 6px 8px; }

/* Shared destination picker */
.place-picker { display: flex; gap: 8px; }
.place-picker input { flex: 1; min-width: 0; }
.place-picker .btn { flex-shrink: 0; }
.hint.hint-ok { color: var(--tea-deep); }
.hint.hint-warn { color: #7a5600; }
.icon-btn.add { color: var(--tea-deep); border-color: var(--tea); font-weight: 700; }
.dialog-wide { width: min(620px, 100%); max-height: 92vh; overflow-y: auto; }
.dialog .field select, .dialog .field input[type="file"] { width: 100%; }

/* Mobile */
@media (max-width: 860px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 16px; gap: 12px; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .side-nav button { flex-shrink: 0; }
  .side-foot { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 0; }
  .main { padding: 22px 16px 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .reg-bar { grid-template-columns: 1fr; gap: 0; }
  .place-picker { flex-direction: column; }
  .stop-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .stop-row [data-field="place"], .stop-row [data-field="note"] { grid-column: 1 / -1; }
  .stop-row .stop-actions { grid-row: 1; grid-column: 3; }
  .day-head { grid-template-columns: auto 1fr; }
  .day-head .day-title { grid-column: 1 / -1; }
  .plan-check ul { columns: 1; }
  .audience-event { margin-left: 0; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: none; padding: 0; }
  .table .actions { grid-column: 1 / -1; text-align: left; }
}

/* Tour form: tags and day descriptions */
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; cursor: pointer; background: var(--white); }
.tag-pick:has(input:checked) { border-color: var(--tea); background: color-mix(in srgb, var(--tea) 10%, var(--white)); }
.field .tag-pick input, .tag-pick input { width: 16px; height: 16px; margin: 0; padding: 0; display: inline-block; accent-color: var(--tea); flex-shrink: 0; }
.field .tag-pick { width: auto; margin: 0; font-weight: 500; color: var(--ink); }
.day-description { width: 100%; margin: 8px 0 4px; resize: vertical; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.guide-card { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.guide-card.is-off { opacity: 0.65; }
.guide-card img, .guide-initial { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.guide-initial { display: grid; place-items: center; background: var(--line); font-size: 1.6rem; font-weight: 700; color: var(--ink-soft); }
.guide-info { min-width: 0; }
.guide-info h3 { font-size: 1rem; margin-bottom: 2px; }
.guide-info p { margin: 2px 0; font-size: 0.85rem; }
.guide-photo-row { display: flex; gap: 14px; align-items: center; }
.guide-photo-row img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* Messages */
.nav-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--tea); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; margin-left: 6px; }
.inbox { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 14px; align-items: start; }
.inbox-list { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.inbox-item { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font: inherit; color: inherit; }
.inbox-item:hover, .inbox-item.is-open { background: color-mix(in srgb, var(--tea) 7%, var(--white)); }
.inbox-item.is-unread strong { font-weight: 800; }
.inbox-item .nav-badge { position: absolute; right: 12px; bottom: 12px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.inbox-tour { font-size: 0.8rem; color: var(--tea); }
.inbox-preview { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 28px; }
.inbox-thread { background: var(--white); border: 1px solid var(--line); border-radius: 16px; min-height: 320px; display: flex; flex-direction: column; }
.inbox-thread .empty { border: 0; }
.thread-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.thread-messages { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 14px; }
.bubble p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .muted { font-size: 0.75rem; }
.bubble.is-traveler { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.bubble.is-agency { align-self: flex-end; background: color-mix(in srgb, var(--tea) 14%, var(--white)); }
.thread-reply { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.thread-reply textarea { flex: 1; resize: vertical; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 40vh; }
}

.guide-hire { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.guide-hire legend { font-weight: 700; font-size: 0.9rem; padding: 0 6px; }
.section-title { font-size: 1.1rem; margin-bottom: 4px; }
