/* ============================================================
   TravelCraft Portal — style.css
   ============================================================ */

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

:root {
    --bg:         #f1f5f9;
    --sidebar-bg: #0f172a;
    --sidebar-w:  240px;
    --primary:    #2563eb;
    --primary-d:  #1d4ed8;
    --primary-l:  #dbeafe;
    --purple:     #7c3aed;
    --purple-l:   #ede9fe;
    --green:      #16a34a;
    --green-l:    #dcfce7;
    --orange:     #ea580c;
    --orange-l:   #ffedd5;
    --red:        #dc2626;
    --red-l:      #fee2e2;
    --yellow:     #d97706;
    --text:       #1e293b;
    --text-muted: #64748b;
    --border:     #e2e8f0;
    --card-bg:    #ffffff;
    --radius:     0.75rem;
    --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    font-size: 15px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: #3b82f6; font-size: 1.3rem; }
.sidebar-nav { list-style: none; padding: .75rem 0; flex: 1; }
.sidebar-nav li { margin: .2rem 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    color: #94a3b8;
    transition: all .15s;
    border-radius: 0;
    font-size: .9rem;
    font-weight: 500;
}
.nav-link i { width: 1.1rem; text-align: center; }
.nav-link:hover, .nav-link.active {
    background: rgba(59,130,246,.15);
    color: #93c5fd;
    text-decoration: none;
}
.nav-link.active { color: #60a5fa; border-right: 3px solid #3b82f6; }
.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.su-name { color: #fff; font-weight: 600; font-size: .9rem; }
.su-role { color: #64748b; font-size: .78rem; margin-bottom: .5rem; }
.su-logout {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #f87171;
    font-size: .82rem;
    font-weight: 500;
}
.su-logout:hover { color: #fca5a5; text-decoration: none; }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    padding: 1.5rem 2rem;
    flex: 1;
    max-width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
}
.main-content.full-width { margin-left: 0; max-width: 100%; }

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.page-sub   { color: var(--text-muted); font-size: .88rem; margin-top: .2rem; }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.card-header h3, .card-header h4 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-body.p-0 { padding: 0; }
.card-accent {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-color: #bfdbfe;
}
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: .75rem; }
.mt-3 { margin-top: 1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-l); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: .65rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.label-sm { font-size: .8rem; color: var(--text-muted); font-weight: 500; margin-bottom: .3rem; }
.form-control {
    width: 100%;
    padding: .5rem .75rem;
    border: 1.5px solid var(--border);
    border-radius: .5rem;
    font-size: .9rem;
    color: var(--text);
    background: #fff;
    transition: border .15s, box-shadow .15s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea.form-control { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Toggle switch */
.toggle-label {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    font-weight: 400 !important;
    color: var(--text) !important;
}
.toggle-label input[type=checkbox] { display: none; }
.toggle-switch {
    width: 42px; height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px; left: 3px;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-label input:checked + .toggle-switch { background: var(--primary); }
.toggle-label input:checked + .toggle-switch::after { left: 21px; }

/* Password eye */
.input-eye { position: relative; }
.input-eye .form-control { padding-right: 2.5rem; }
.eye-btn {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--text-muted);
    font-size: .9rem;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 500;
}
.alert-success { background: var(--green-l);  color: #166534; }
.alert-error   { background: var(--red-l);    color: #991b1b; }
.alert-info    { background: var(--primary-l); color: #1e40af; }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}
.stat-blue   { background: #eff6ff; border-color: #bfdbfe; }
.stat-green  { background: var(--green-l); border-color: #bbf7d0; }
.stat-purple { background: var(--purple-l); border-color: #ddd6fe; }
.stat-orange { background: var(--orange-l); border-color: #fdba74; }
.stat-icon { font-size: 1.5rem; width: 3rem; text-align: center; }
.stat-blue .stat-icon   { color: var(--primary); }
.stat-green .stat-icon  { color: var(--green); }
.stat-purple .stat-icon { color: var(--purple); }
.stat-orange .stat-icon { color: var(--orange); }
.stat-number { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-label  { font-size: .8rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }

/* ── Row layouts ──────────────────────────────────────────── */
.row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

/* ── Progress bars ────────────────────────────────────────── */
.progress-row { display: flex; align-items: center; gap .75rem; margin-bottom: .75rem; }
.pr-label { display: flex; justify-content: space-between; font-size: .85rem; min-width: 100px; gap: .5rem; }
.pr-count { color: var(--text-muted); }
.progress-bar-wrap { flex: 1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.pr-pct { font-size: .8rem; color: var(--text-muted); min-width: 36px; text-align: right; }

/* ── Quick Actions ────────────────────────────────────────── */
.quick-actions { display: flex; flex-direction: column; gap: .75rem; }
.qa-btn {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all .15s;
    color: var(--text);
    text-decoration: none !important;
}
.qa-btn:hover { border-color: var(--primary); background: var(--primary-l); }
.qa-btn i { font-size: 1.2rem; color: var(--primary); width: 1.5rem; text-align: center; }
.qa-btn strong { display: block; font-size: .9rem; }
.qa-btn small { color: var(--text-muted); font-size: .8rem; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: #f8fafc; padding: .65rem 1rem; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1.5px solid var(--border); }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.action-btns { display: flex; gap: .4rem; align-items: center; }

/* ── Badges ───────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-quick   { background: #dbeafe; color: #1d4ed8; }
.badge-advance { background: var(--purple-l); color: var(--purple); }
.badge-custom  { background: var(--orange-l); color: var(--orange); }
.badge-admin   { background: #fef9c3; color: #854d0e; }

/* ── Text utilities ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }

/* ── Login ────────────────────────────────────────────────── */
.login-body { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card { background: #fff; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 2.5rem 2rem; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo i { font-size: 2.5rem; color: var(--primary); }
.login-logo h1 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text); margin: .5rem 0 .3rem; }
.login-logo p  { color: var(--text-muted); font-size: .88rem; }
.login-form { margin-top: 1rem; }
.login-hint { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
.login-hint code { background: var(--bg); padding: .1rem .4rem; border-radius: .3rem; }

/* ── Builder steps ────────────────────────────────────────── */
.builder-step { margin-bottom: 1.5rem; }
.step-header { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.step-num {
    width: 2rem; height: 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
}
.step-header h3 { font-size: 1.05rem; font-weight: 600; }

/* ── Checklist ────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: .5rem; max-height: 360px; overflow-y: auto; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .6rem .75rem;
    border: 1.5px solid var(--border);
    border-radius: .5rem;
    cursor: pointer;
    transition: all .15s;
    font-size: .875rem;
}
.check-item:hover { border-color: var(--primary); background: var(--primary-l); }
.check-item input { margin-top: .15rem; cursor: pointer; accent-color: var(--primary); }
.check-item input:checked ~ span { font-weight: 600; }

/* ── Cost breakdown ───────────────────────────────────────── */
.cost-breakdown { font-size: .9rem; }
.cb-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid rgba(37,99,235,.1); }
.cb-row:last-child { border-bottom: none; }
.cb-row.total { font-weight: 700; font-size: 1.05rem; color: var(--primary); margin-top: .4rem; }

/* ── Price estimate ───────────────────────────────────────── */
.price-estimate-label { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price-estimate-value { font-size: 2.2rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }

/* ── Template preview ─────────────────────────────────────── */
.template-preview { padding: .25rem 0; }
.tp-title  { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.tp-meta   { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.tp-price  { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.tp-note   { font-size: .78rem; color: var(--text-muted); margin-top: .4rem; font-style: italic; }
.tp-match  { display: inline-flex; align-items: center; gap: .35rem; background: var(--green-l); color: var(--green); font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; }

/* ── Empty states ─────────────────────────────────────────── */
.empty-state-sm { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.empty-state-sm i { font-size: 2rem; margin-bottom: .75rem; display: block; opacity: .4; }
.empty-state-sm p { font-size: .88rem; }

/* ── Activity/Transfer selectors ──────────────────────────── */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.act-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem;
    transition: all .15s;
    position: relative;
}
.act-item.selected { border-color: var(--primary); background: var(--primary-l); }
.act-item.used { opacity: .45; pointer-events: none; }
.act-item-name { font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.act-item-price { font-size: .8rem; color: var(--green); font-weight: 600; }
.act-day-sel { margin-top: .65rem; }
.act-day-sel label { font-size: .78rem; color: var(--text-muted); margin-bottom: .3rem; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs-nav {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: .45rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .15s;
    border: 1px solid transparent;
    text-decoration: none;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-l); text-decoration: none; }
.tab-btn.active { color: var(--primary); background: var(--primary-l); border-color: #bfdbfe; font-weight: 600; }

/* ── Manage layout ────────────────────────────────────────── */
.manage-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }

/* ── Hotel detail ─────────────────────────────────────────── */
.hotel-detail-box {
    margin-top: .75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: .5rem;
    padding: .85rem 1rem;
    font-size: .88rem;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-box { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.05rem; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); }
.modal-body { padding: 1.25rem; }

/* ── View page ────────────────────────────────────────────── */
.view-body { background: #e8ecf0; flex-direction: column; align-items: center; margin: 0; display: block; }
.view-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .65rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}
.view-topbar-actions { margin-left: auto; display: flex; gap: .5rem; }
.copy-feedback { color: var(--green); font-size: .85rem; font-weight: 600; }

/* Package Document */
.package-doc {
    max-width: 900px;
    margin: 1.5rem auto;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,.12);
    border-radius: .75rem;
    overflow: hidden;
}
.pkg-header {
    background: linear-gradient(135deg, #8BCBFC 0%, #1e3a8a 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
}
.pkg-brand { display: flex; align-items: center; gap: .6rem; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; }
.pkg-brand i { color: #93c5fd; }
.pkg-meta-right { text-align: right; font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.8; }
.pkg-ref { font-weight: 700; color: #fff; }
.pkg-expiry.expired { color: #fca5a5; }

.pkg-title-section { padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid var(--border); }
.pkg-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; line-height: 1.3; }
.pkg-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.pkg-tag { display: inline-flex; align-items: center; gap: .3rem; background: #f1f5f9; border: 1px solid var(--border); padding: .25rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--text); }
.pkg-price-tag { display: flex; align-items: baseline; gap: .5rem; }
.ppt-label  { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ppt-value  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); }
.ppt-onwards { font-size: .85rem; color: var(--text-muted); }

.pkg-client-bar { padding: 1rem 2rem; background: #f8fafc; border-bottom: 1px solid var(--border); display: flex; gap: 2rem; flex-wrap: wrap; }
.pcb-item { display: flex; flex-direction: column; gap: .1rem; }
.pcb-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.pcb-value { font-size: .9rem; font-weight: 600; }

.pkg-highlights { padding: 1.25rem 2rem; background: linear-gradient(135deg, #eff6ff, #eef2ff); border-bottom: 1px solid #e0e7ff; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ph-item { display: flex; align-items: flex-start; gap: .65rem; }
.ph-item i { color: var(--primary); font-size: 1.1rem; margin-top: .15rem; }
.ph-item strong { display: block; font-size: .85rem; }
.ph-item small { color: var(--text-muted); font-size: .78rem; }

.pkg-section { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.pkg-section:last-child { border-bottom: none; }
.pkg-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.pkg-overview { line-height: 1.8; color: #374151; font-size: .95rem; }
.pkg-why-book { margin-top: 1.25rem; }
.pkg-why-book h3 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.pwb-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.pwb-item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--primary); font-weight: 600; }

/* Inclusions & Exclusions */
.inc-exc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ie-header { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; padding: .65rem .85rem; border-radius: .4rem .4rem 0 0; }
.ie-header.inc { background: #dcfce7; color: #166534; }
.ie-header.exc { background: #fee2e2; color: #991b1b; }
.ie-list { list-style: none; border: 1px solid var(--border); border-top: none; border-radius: 0 0 .4rem .4rem; overflow: hidden; }
.ie-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .85rem; border-bottom: 1px solid var(--border); font-size: .875rem; line-height: 1.5; }
.ie-list li:last-child { border-bottom: none; }
.inc-list i { color: var(--green); margin-top: .15rem; flex-shrink: 0; }
.exc-list i { color: var(--red); margin-top: .15rem; flex-shrink: 0; }

/* Itinerary */
.itin-day { margin-bottom: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.itin-day-header { display: flex; align-items: stretch; background: #1e3a8a; }
.itin-day-num { background: var(--primary); color: #fff; padding: .85rem 1.1rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; white-space: nowrap; }
.itin-day-title { padding: .85rem 1.1rem; font-weight: 700; font-size: .95rem; color: #fff; display: flex; align-items: center; }
.itin-day-body { padding: 1.1rem; line-height: 1.8; font-size: .9rem; color: #374151; }
.itin-overnight { margin-top: .85rem; padding: .6rem .85rem; background: #f0fdf4; border-left: 3px solid var(--green); border-radius: 0 .4rem .4rem 0; font-size: .85rem; color: #166534; font-weight: 600; display: flex; align-items: center; gap: .5rem; }

.pkg-footer { padding: 1.25rem 2rem; background: #f8fafc; border-top: 1px solid var(--border); }
.pf-disclaimer { font-size: .78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .5rem; }
.pf-agent { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Print styles ─────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .view-body { background: #fff; }
    .package-doc { box-shadow: none; border-radius: 0; margin: 0; max-width: 100%; }
    .pkg-highlights { grid-template-columns: repeat(4, 1fr); }
    .itin-day { page-break-inside: avoid; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .row-2col { grid-template-columns: 1fr; }
    .manage-layout { grid-template-columns: 1fr; }
    .pkg-highlights { grid-template-columns: 1fr 1fr; }
    .inc-exc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --sidebar-w: 0; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; max-width: 100%; padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .pkg-title { font-size: 1.3rem; }
    .pkg-highlights { grid-template-columns: 1fr; }
}
