/* ═══════════════════════════════════════════════════════════
   SITHIYAM GROUP TRIPS — Operator Screen Styles
   Follows design-tokens.css v6.1 + v6-overrides.css conventions
   ═══════════════════════════════════════════════════════════ */

/* ── Screen container ────────────────────────────────────────── */
#s-group-trips {
  padding: 0;
  overflow-y: auto;
  height: 100%;
  background: var(--bg-base, #0D0D0D);
}

/* ── Loading ─────────────────────────────────────────────────── */
.grp-loading {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: var(--text-muted, #888);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
}

/* ── List view ───────────────────────────────────────────────── */
.grp-list-wrap {
  padding: 32px 32px 64px;
  max-width: 1200px;
}

.grp-list-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
}
.grp-screen-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted, #888); margin-bottom: 4px;
}
.grp-screen-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px; font-weight: 600; color: var(--text-primary, #F7F0DE);
  line-height: 1.1;
}

/* ── Filter chips ───────────────────────────────────────────── */
.grp-filter-chips, .grp-reg-filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.grp-chip {
  background: var(--surface-2, #1C1C1C); border: 1px solid var(--border, #2A2A2A);
  color: var(--text-secondary, #AAA); border-radius: 20px;
  padding: 5px 14px; font-family: 'DM Sans', sans-serif; font-size: 12px;
  cursor: pointer; transition: all .15s;
}
.grp-chip:hover { border-color: var(--accent, #C9A84C); color: var(--text-primary, #F7F0DE); }
.grp-chip.active { background: var(--accent, #C9A84C); border-color: var(--accent, #C9A84C); color: #0D0D0D; font-weight: 600; }
.grp-chip-count { opacity: .7; margin-left: 4px; }

/* ── Cards grid ─────────────────────────────────────────────── */
.grp-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.grp-card {
  background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A);
  border-radius: 12px; padding: 20px; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.grp-card:hover { border-color: var(--accent, #C9A84C); transform: translateY(-2px); }
.grp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.grp-card-serial {
  font-family: 'Syne', monospace, sans-serif; font-size: 11px;
  letter-spacing: 0.08em; color: var(--accent, #C9A84C); text-transform: uppercase;
}
.grp-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 600; color: var(--text-primary, #F7F0DE);
  margin-bottom: 8px; line-height: 1.3;
}
.grp-card-meta {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted, #888);
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px;
}
.grp-card-token { font-size: 10px; letter-spacing: .05em; opacity: .6; }
.grp-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border, #2A2A2A); padding-top: 12px;
}
.grp-card-pax { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-secondary, #AAA); }
.grp-card-cur { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted, #888); }

/* ── Status badges ───────────────────────────────────────────── */
.grp-status-badge {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: 4px; padding: 2px 7px;
}
.grp-status-draft      { background: #2A2A2A; color: #888; }
.grp-status-open       { background: rgba(74,222,128,.15); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.grp-status-confirmed  { background: rgba(201,168,76,.15); color: #C9A84C; border: 1px solid rgba(201,168,76,.3); }
.grp-status-cancelled  { background: rgba(239,68,68,.1); color: #ef4444; border: 1px solid rgba(239,68,68,.25); }

/* ── Empty states ────────────────────────────────────────────── */
.grp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.grp-empty-icon { font-size: 40px; color: var(--text-muted, #888); margin-bottom: 16px; }
.grp-empty-text { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-muted, #888); }
.grp-empty-small { padding: 16px 0; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-muted, #888); }

/* ── Detail view ─────────────────────────────────────────────── */
.grp-detail-wrap { padding: 24px 32px 80px; max-width: 1200px; }
.grp-detail-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.grp-detail-header-right { display: flex; gap: 10px; }
.grp-back-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-muted, #888);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .15s;
}
.grp-back-btn:hover { color: var(--text-primary, #F7F0DE); }

/* ── Info band ───────────────────────────────────────────────── */
.grp-info-band {
  background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 24px;
}
.grp-info-serial { font-family: 'Syne', monospace, sans-serif; font-size: 12px; letter-spacing: .08em; color: var(--accent, #C9A84C); margin-bottom: 4px; }
.grp-info-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--text-primary, #F7F0DE); margin-bottom: 10px; }
.grp-info-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.grp-info-meta { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-secondary, #AAA); }
.grp-reg-link-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.grp-reg-link-label { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted, #888); }
.grp-reg-link {
  font-family: monospace; font-size: 12px; color: var(--accent, #C9A84C);
  background: rgba(201,168,76,.08); border-radius: 4px; padding: 3px 8px;
  word-break: break-all;
}

/* ── Settings form ───────────────────────────────────────────── */
.grp-settings-details { margin-bottom: 24px; }
.grp-settings-summary {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-secondary, #AAA); cursor: pointer; padding: 10px 0; list-style: none;
}
.grp-settings-summary:hover { color: var(--text-primary, #F7F0DE); }
.grp-settings-form {
  background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A);
  border-radius: 10px; padding: 20px; margin-top: 8px;
}

/* ── Sections ────────────────────────────────────────────────── */
.grp-section { margin-bottom: 28px; }
.grp-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border, #2A2A2A); padding-bottom: 10px;
}
.grp-section-title {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-secondary, #AAA); text-transform: uppercase; letter-spacing: .06em;
}

/* ── Routes & packages ───────────────────────────────────────── */
.grp-route-block {
  background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A);
  border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
.grp-route-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.grp-route-name { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-primary, #F7F0DE); }
.grp-route-actions { display: flex; gap: 8px; }
.grp-route-desc { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted, #888); margin-bottom: 12px; }

.grp-pkg-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.grp-pkg-card {
  background: var(--surface-2, #1C1C1C); border: 1px solid var(--border, #2A2A2A);
  border-radius: 8px; padding: 12px 14px; min-width: 180px; flex: 1 1 180px;
}
.grp-pkg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.grp-pkg-name { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-primary, #F7F0DE); }
.grp-pkg-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: var(--accent, #C9A84C); margin-bottom: 4px; }
.grp-pkg-desc { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted, #888); margin-bottom: 8px; }

.grp-tier-badge { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-radius: 3px; padding: 2px 5px; }
.grp-tier-flex    { background: rgba(96,165,250,.15); color: #60a5fa; }
.grp-tier-premium { background: rgba(201,168,76,.15); color: #C9A84C; }
.grp-tier-custom  { background: rgba(167,139,250,.15); color: #a78bfa; }

/* ── Stats ───────────────────────────────────────────────────── */
.grp-stats-section { background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.grp-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; margin-bottom: 18px; }
.grp-stat-box { text-align: center; }
.grp-stat-label { font-family: 'DM Sans', sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted, #888); margin-bottom: 4px; }
.grp-stat-val { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--text-primary, #F7F0DE); }

.grp-progress-wrap { padding-top: 14px; border-top: 1px solid var(--border, #2A2A2A); }
.grp-progress-label { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-secondary, #AAA); margin-bottom: 8px; }
.grp-progress-bar { height: 6px; background: var(--surface-2, #1C1C1C); border-radius: 3px; overflow: hidden; }
.grp-progress-fill { height: 100%; background: #C9A84C; border-radius: 3px; transition: width .4s; }
.grp-progress-fill.grp-progress-met { background: #4ade80; }

/* ── Registrations table ─────────────────────────────────────── */
.grp-table-wrap { overflow-x: auto; }
.grp-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 12px; }
.grp-table th {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, #2A2A2A);
  color: var(--text-muted, #888); font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.grp-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-secondary, #AAA); vertical-align: middle; }
.grp-table tr:hover td { background: rgba(255,255,255,.02); }
.grp-row-cancelled td { opacity: .45; }
.grp-reg-name { color: var(--text-primary, #F7F0DE); font-weight: 500; }
.grp-wa-link { color: #4ade80; text-decoration: none; }
.grp-wa-link:hover { text-decoration: underline; }

.grp-reg-status { border-radius: 3px; padding: 2px 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.grp-reg-pending    { background: rgba(251,191,36,.12); color: #fbbf24; }
.grp-reg-confirmed  { background: rgba(74,222,128,.12); color: #4ade80; }
.grp-reg-waitlisted { background: rgba(167,139,250,.12); color: #a78bfa; }
.grp-reg-cancelled  { background: rgba(239,68,68,.1); color: #ef4444; }

.grp-pay-input {
  width: 80px; background: var(--surface-2, #1C1C1C); border: 1px solid var(--border, #2A2A2A);
  color: var(--text-primary, #F7F0DE); border-radius: 4px; padding: 3px 6px;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
}
.grp-pay-cell { white-space: nowrap; }
.grp-actions-cell { white-space: nowrap; }

/* ── Form elements ───────────────────────────────────────────── */
.grp-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.grp-label {
  display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #888);
}
.grp-label-full { flex: 1 1 100%; }
.grp-input {
  background: var(--surface-2, #1C1C1C); border: 1px solid var(--border, #2A2A2A);
  color: var(--text-primary, #F7F0DE); border-radius: 6px; padding: 8px 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; transition: border-color .15s;
}
.grp-input:focus { outline: none; border-color: var(--accent, #C9A84C); }
.grp-textarea { resize: vertical; min-height: 70px; }
select.grp-input { appearance: auto; }

/* ── Buttons ─────────────────────────────────────────────────── */
.grp-btn-primary {
  background: var(--accent, #C9A84C); color: #0D0D0D; border: none; border-radius: 6px;
  padding: 9px 18px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: opacity .15s;
}
.grp-btn-primary:hover { opacity: .85; }
.grp-btn-secondary {
  background: transparent; border: 1px solid var(--border, #2A2A2A);
  color: var(--text-secondary, #AAA); border-radius: 6px;
  padding: 9px 18px; font-family: 'DM Sans', sans-serif; font-size: 12px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.grp-btn-secondary:hover { border-color: var(--text-secondary, #AAA); color: var(--text-primary, #F7F0DE); }
.grp-btn-confirm {
  background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.35);
  color: #4ade80; border-radius: 6px; padding: 9px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.grp-btn-confirm:hover { background: rgba(74,222,128,.25); }
.grp-btn-small {
  background: transparent; border: 1px solid var(--border, #2A2A2A);
  color: var(--text-secondary, #AAA); border-radius: 5px; padding: 5px 12px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; cursor: pointer; transition: all .15s;
}
.grp-btn-small:hover { border-color: var(--accent, #C9A84C); color: var(--accent, #C9A84C); }
.grp-btn-tiny {
  background: transparent; border: 1px solid var(--border, #2A2A2A);
  color: var(--text-muted, #888); border-radius: 4px; padding: 3px 8px;
  font-family: 'DM Sans', sans-serif; font-size: 10px; cursor: pointer; transition: all .15s;
}
.grp-btn-tiny:hover { color: var(--text-primary, #F7F0DE); border-color: var(--text-muted, #888); }
.grp-btn-danger { color: #ef4444 !important; }
.grp-btn-danger:hover { border-color: #ef4444 !important; }

/* ── Modal ───────────────────────────────────────────────────── */
.grp-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.grp-modal {
  background: var(--surface-1, #161616); border: 1px solid var(--border, #2A2A2A);
  border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.grp-modal-sm { max-width: 420px; }
.grp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0; margin-bottom: 16px;
}
.grp-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--text-primary, #F7F0DE);
}
.grp-modal-close {
  background: none; border: none; color: var(--text-muted, #888);
  font-size: 16px; cursor: pointer; padding: 0; transition: color .15s;
}
.grp-modal-close:hover { color: var(--text-primary, #F7F0DE); }
.grp-modal-body { padding: 0 22px; display: flex; flex-direction: column; gap: 14px; }
.grp-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 18px 22px 22px; border-top: 1px solid var(--border, #2A2A2A); margin-top: 14px;
}

/* ── Quote preview (inside create modal) ─────────────────────── */
.grp-quote-preview {
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.grp-qp-row { display: flex; gap: 10px; align-items: baseline; }
.grp-qp-label {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent, #C9A84C); min-width: 80px;
}
.grp-qp-val {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text-primary, #F7F0DE);
}

/* ── Publish flow banner ─────────────────────────────────────── */
.grp-publish-banner {
  background: rgba(201,168,76,.05); border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.grp-publish-steps {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.grp-publish-step {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text-muted, #888); padding: 4px 10px;
  border: 1px solid var(--border, #2A2A2A); border-radius: 20px;
}
.grp-publish-step.grp-step-done  { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.06); }
.grp-publish-step.grp-step-active { color: var(--accent, #C9A84C); border-color: rgba(201,168,76,.4); background: rgba(201,168,76,.08); }
.grp-publish-step-arrow { color: var(--text-muted, #555); font-size: 14px; }
.grp-btn-publish-big {
  background: var(--accent, #C9A84C); color: #0B0806;
  border: none; border-radius: 8px; padding: 12px 24px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: opacity .15s; align-self: flex-start;
}
.grp-btn-publish-big:hover { opacity: .88; }
.grp-publish-hint {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text-muted, #888); margin: 0; line-height: 1.6;
}

/* ── Itinerary snapshot ──────────────────────────────────────── */
.grp-itin-details { margin-bottom: 24px; }
.grp-itin-meta {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 8px;
}
.grp-itin-tag {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border, #2A2A2A);
  border-radius: 4px; padding: 3px 8px; color: var(--text-muted, #888);
}
.grp-itin-days {
  display: flex; flex-direction: column; gap: 0;
}
.grp-itin-day {
  display: flex; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.grp-itin-day:last-child { border-bottom: none; }
.grp-itin-day-num {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #C9A84C);
  min-width: 44px; padding-top: 2px;
}
.grp-itin-day-body { flex: 1; }
.grp-itin-city {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px; color: var(--text-primary, #F7F0DE); margin-bottom: 2px;
}
.grp-itin-acts {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  color: var(--text-muted, #666); line-height: 1.5;
}
