/*
 * Travefy-style itinerary workspace — shared between
 * CreateBooking.razor and BookingPresetEditor.razor.
 *
 * Components:
 *   • .itin-workspace / .itin-palette / .itin-timeline   ← layout
 *   • .itin-palette-item                                 ← service tile
 *   • .itin-day-block / .itin-day-hdr / .itin-day-items  ← per-day timeline
 *   • .sc-card and friends                               ← stop card
 *   • SortableJS drag classes                            ← .itin-dnd-*
 */

/* ══════════════════════════════════════════════════════════════════════
   MODERN SERVICE CARD
══════════════════════════════════════════════════════════════════════ */
.sc-card {
    display: flex;
    background: #fff;
    border: 1.5px solid #e9eef5;
    border-radius: 14px;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s, transform .18s;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    position: relative;
}
.sc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 22px rgba(15,23,42,.07);
}
.sc-stripe {
    width: 5px;
    flex-shrink: 0;
    background: #cbd5e1;
}

/* ── Drag handle ────────────────────────────────────────────────────── */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
    background: linear-gradient(to right, #fafbfc, #fff);
    border-right: 1px solid #f1f5f9;
    cursor: grab;
    opacity: 0;
    color: #cbd5e1;
    transition: opacity .15s, color .15s, background .15s;
    user-select: none;
    -webkit-user-select: none;
}
.sc-card:hover .drag-handle { opacity: 1; }
.drag-handle:hover { color: #64748b; background: #f8fafc; }
.drag-handle:active { cursor: grabbing; }

.sc-body {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

/* ── Header: time-rail + icon + name + delete ─────────────────────── */
.sc-head {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.sc-time-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: .25rem .4rem;
    background: #0f172a;
    color: #fff;
    border-radius: 9px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
}
.sc-time-val {
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.sc-time-lbl {
    font-size: .5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .55;
    margin-top: .12rem;
}
.sc-icon-badge {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}
.sc-title-zone {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.sc-name {
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-sub {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    color: #64748b;
    font-weight: 500;
    flex-wrap: wrap;
}
.sc-sub-tag {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .68rem;
}
.sc-sub-dot { color: #cbd5e1; font-weight: 800; }
.sc-sub-loc {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #475569;
}
.sc-sub-loc svg { color: #94a3b8; }
.sc-del-btn {
    background: #fff;
    border: 1.5px solid #fee2e2;
    color: #dc2626;
    width: 30px; height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .12s;
}
.sc-del-btn:hover { background: #fee2e2; transform: scale(1.05); }

/* ── Form fields grid ─────────────────────────────────────────────── */
.sc-fields {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .5rem;
}
.sc-f-type    { grid-column: span 3; }
.sc-f-city    { grid-column: span 4; }
.sc-f-time    { grid-column: span 5; }
.sc-f-partner { grid-column: span 8; }
.sc-f-date    { grid-column: span 4; }
.sc-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sc-field-wide { flex: 2; }

.sc-lbl {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin: 0;
}
.sc-input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .38rem .6rem;
    font-size: .82rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
.sc-input:hover  { border-color: #cbd5e1; }
.sc-input:focus  { border-color: #0f172a; background: #fff; box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.sc-input-custom {
    margin-top: .35rem;
    background: #fffbeb;
    border-color: #fde68a;
}
select.sc-input { cursor: pointer; }

/* Highlight a select that holds a value not present in the options list
   (typically a partner/city imported from a PDF or older booking that
   no longer matches the database). User should re-pick. */
select.sc-input.sc-input-unknown {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}
select.sc-input.sc-input-unknown:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217,119,6,.15);
}

/* ── Notes (instructions) field ───────────────────────────────────── */
.sc-notes {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: .4rem .65rem;
    transition: border-color .12s, background .12s;
}
.sc-notes:focus-within { border-color: #0f172a; background: #fff; box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.sc-notes-icon { color: #94a3b8; flex-shrink: 0; }
.sc-notes-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: .85rem;
    color: #0f172a;
    font-family: inherit;
    min-width: 0;
}
.sc-notes-input::placeholder { color: #94a3b8; }

/* ── Sections (accommodation, payment) ────────────────────────────── */
.sc-section {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: .55rem .7rem .65rem;
}
.sc-section-hdr {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .4rem;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #475569;
}
.sc-section-hdr svg { color: #94a3b8; }

.sc-accom-row {
    display: grid;
    grid-template-columns: 70px 70px 1fr;
    gap: .5rem;
}

/* ── Payment section ──────────────────────────────────────────────── */
.sc-pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: .5rem;
    align-items: end;
}
.sc-money { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sc-money-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
    transition: border-color .12s, box-shadow .12s;
}
.sc-money-input:focus-within { border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.sc-money-input input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: .38rem .55rem;
    font-size: .85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.sc-money-cur {
    padding: 0 .55rem;
    font-size: .7rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid #e2e8f0;
}
.sc-money-paid .sc-money-input input { color: #16a34a; }
.sc-money-paid .sc-money-input:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.1); }
.sc-money-owed .sc-money-input input { color: #dc2626; }
.sc-money-owed .sc-money-input:focus-within { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.sc-receipt-wrap { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

/* Inline partner contact link */
.sc-partner-contact {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: .4rem;
}
.sc-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    text-decoration: none;
    transition: all .12s;
}
.sc-contact-link:hover {
    background: #059669;
    color: #fff;
    transform: scale(1.08);
}

/* ── Status toggle buttons ────────────────────────────────────────── */
.sc-status {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    padding-top: .15rem;
    border-top: 1px dashed #f1f5f9;
    margin-top: .1rem;
}
.sc-status-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.sc-status-btn:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.sc-status-btn svg { transition: transform .15s; }
.sc-status-btn:hover svg { transform: scale(1.1); }
.sc-status-btn.sc-active-contact {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}
.sc-status-btn.sc-active-confirm {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}
.sc-status-check { animation: scPop .25s ease; }
@keyframes scPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── SortableJS drag states ─────────────────────────────────────────── */
.itin-dnd-ghost {
    opacity: .35;
    background: #e0f2fe !important;
    border: 2px dashed #38bdf8 !important;
    border-radius: 14px;
    box-shadow: none !important;
}
.itin-dnd-chosen {
    box-shadow: 0 12px 32px rgba(0,0,0,.18) !important;
    transform: rotate(1.5deg) scale(1.02);
    z-index: 9999;
}
.itin-dnd-dragging {
    opacity: .92;
}
body.itin-dnd-active .itin-day-items {
    min-height: 48px;
    border-radius: 10px;
    transition: background .15s;
}
body.itin-dnd-active .itin-day-items:empty,
body.itin-dnd-active .sortable-drag ~ .itin-day-items {
    background: #f0f9ff;
    border: 2px dashed #bae6fd;
}

/* ══════════════════════════════════════════════════════════════════════
   WORKSPACE — palette + timeline
══════════════════════════════════════════════════════════════════════ */
.itin-workspace {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.itin-timeline {
    flex: 1;
    min-width: 0;
}

/* ── Palette (sidebar) ────────────────────────────────────────────── */
.itin-palette {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.itin-palette-hdr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #f1f5f9;
}
.itin-palette-title {
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: .85rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.itin-palette-hint {
    font-size: .65rem;
    color: #94a3b8;
    font-weight: 600;
}
.itin-palette-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.itin-palette-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .65rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: grab;
    transition: all .12s;
    user-select: none;
}
.itin-palette-item:hover {
    background: #fff;
    border-color: #94a3b8;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.itin-palette-item:active { cursor: grabbing; }
.itin-pi-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.itin-pi-label {
    flex: 1;
    font-size: .82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.itin-pi-grip {
    font-size: .85rem;
    color: #cbd5e1;
    line-height: 1;
}

/* Palette drag visuals */
.pal-ghost    { opacity: .25; }
.pal-chosen   { background: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.18) !important; transform: scale(1.05); border-color: #0f172a !important; }
.pal-dragging { cursor: grabbing !important; }

/* ── Empty drop hint inside a day ─────────────────────────────────── */
.itin-drop-hint {
    text-align: center;
    padding: 1.4rem 1rem;
    font-size: .82rem;
    color: #94a3b8;
    font-weight: 600;
    background: #fafbfc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    pointer-events: none;
    transition: all .15s;
}
.itin-drop-arrow {
    display: inline-block;
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-right: .35rem;
}
body.itin-dnd-from-palette .itin-day-empty {
    background: #f0f9ff;
    border-radius: 12px;
    outline: 2px dashed #38bdf8;
    outline-offset: -2px;
}
body.itin-dnd-from-palette .itin-day-empty .itin-drop-hint {
    color: #0369a1;
    background: transparent;
    border-color: transparent;
}

/* ── Day delete button ────────────────────────────────────────────── */
.itin-day-del-btn {
    background: #fff;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    width: 28px; height: 28px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: all .12s;
}
.itin-day-del-btn:hover { background: #fee2e2; }

.itin-day-block {
    margin-bottom: 1.25rem;
    position: relative;
}
.itin-day-block + .itin-day-block::before {
    content: '';
    display: block;
    width: 2px;
    height: 1.25rem;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
    margin: -1.25rem 0 0 1.6rem;
    margin-bottom: 0;
}

.itin-day-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem .6rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f172a;
    border-radius: 0 12px 12px 0;
    margin-bottom: .65rem;
    gap: .75rem;
    flex-wrap: wrap;
}
.itin-day-hdr-left {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.itin-day-pill {
    background: #0f172a;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: .25rem .7rem;
    border-radius: 20px;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.itin-day-date {
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.itin-day-badge {
    font-size: .7rem;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: .15rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}
.itin-day-items {
    padding: .35rem 0 1.1rem 1.5rem;
    min-height: 70px;
    border-radius: 10px;
    position: relative;
}
.itin-day-items::after {
    content: '';
    display: block;
    height: .9rem;
    margin-top: .25rem;
    border-radius: 8px;
    border: 1.5px dashed transparent;
    transition: border-color .15s, background .15s;
}
body.itin-dnd-active .itin-day-items::after {
    border-color: #cbd5e1;
    background: #f8fafc;
}
body.itin-dnd-from-palette .itin-day-items::after {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.itin-add-day-wrap {
    padding: .5rem 0 .25rem;
    text-align: center;
}
.itin-add-day-btn {
    background: none;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: .65rem 0;
    font-size: .85rem;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
    transition: all .15s;
    width: 100%;
    max-width: 340px;
}
.itin-add-day-btn:hover {
    background: #f8fafc;
    border-color: #6b7280;
    color: #374151;
}

/* ── Tablet & below: palette becomes a horizontal scroll strip ───── */
@media (max-width: 900px) {
    .itin-workspace { flex-direction: column; gap: .85rem; }
    .itin-palette {
        width: 100%;
        position: static;
        max-height: none;
        padding: .75rem;
    }
    .itin-palette-hdr { margin-bottom: .55rem; padding-bottom: .45rem; }
    .itin-palette-list {
        flex-direction: row;
        overflow-x: auto;
        gap: .45rem;
        padding-bottom: .25rem;
        -webkit-overflow-scrolling: touch;
    }
    .itin-palette-list::-webkit-scrollbar { height: 4px; }
    .itin-palette-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
    .itin-palette-item {
        flex-shrink: 0;
        min-width: 130px;
        padding: .45rem .55rem;
    }
    .itin-pi-grip { display: none; }
}

@media (max-width: 700px) {
    .sc-fields { grid-auto-flow: dense; }
    .sc-f-type    { grid-column: span 6; }
    .sc-f-city    { grid-column: span 6; }
    .sc-f-time    { grid-column: span 6; }
    .sc-f-date    { grid-column: span 6; }
    .sc-f-partner { grid-column: 1 / -1; }
    .sc-pay-row { grid-template-columns: 1fr 1fr; }
    .sc-receipt-wrap { grid-column: 1 / -1; }
    .sc-accom-row { grid-template-columns: 1fr 1fr; }
    .sc-accom-row .sc-field-wide { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
    .itin-day-hdr { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .itin-day-date { font-size: .8rem; }
    .itin-day-items { padding-left: 0; }
    .itin-pi-icon { width: 26px; height: 26px; font-size: .85rem; }
    .itin-pi-label { font-size: .75rem; }
    .itin-palette-item { min-width: 120px; }
    .drag-handle { opacity: 1; }
}

@media (max-width: 500px) {
    .sc-body { padding: .85rem; gap: .85rem; }
    .sc-head { gap: .55rem; }
    .sc-time-rail { min-width: 50px; padding: .3rem .35rem; }
    .sc-time-val { font-size: .92rem; }
    .sc-icon-badge { width: 36px; height: 36px; font-size: 1.05rem; }
    .sc-name { font-size: .95rem; }
    .sc-fields > * { grid-column: span 12; }
}

@media (hover: none) {
    .drag-handle { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   DAY-DELETE CONFIRM MODAL (shared between booking & preset editors)
══════════════════════════════════════════════════════════════════════ */
.day-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dcFade .15s ease;
}
@keyframes dcFade  { from { opacity: 0 } to { opacity: 1 } }
@keyframes dcSlide { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

.day-confirm-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    animation: dcSlide .2s ease;
    overflow: hidden;
}

.day-confirm-hdr {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.day-confirm-icon {
    width: 56px; height: 56px;
    margin: 0 auto .65rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.day-confirm-title {
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}
.day-confirm-sub {
    font-size: .8rem;
    color: #94a3b8;
    margin-top: .35rem;
    font-weight: 500;
}

.day-confirm-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.day-confirm-action {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    width: 100%;
    padding: .85rem 1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    text-align: left;
}
.day-confirm-action:not(.day-confirm-action-static):hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    background: #f8fafc;
}
.day-confirm-action:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.day-confirm-action-static { cursor: default; }
.day-confirm-action-danger { border-color: #fecaca; }
.day-confirm-action-danger:hover { background: #fef2f2; border-color: #fca5a5; }

.day-confirm-action-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 9px;
}

.day-confirm-action-title {
    font-weight: 700;
    font-size: .87rem;
    color: #0f172a;
    margin-bottom: .15rem;
}
.day-confirm-action-desc {
    font-size: .72rem;
    color: #64748b;
    line-height: 1.4;
}

.day-confirm-move-row {
    display: flex;
    gap: .5rem;
    margin-top: .65rem;
}
.day-confirm-move-row .sc-input { flex: 1; }
.day-confirm-move-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: .35rem 1rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .12s;
}
.day-confirm-move-btn:hover:not(:disabled) { background: #1e293b; transform: translateY(-1px); }
.day-confirm-move-btn:disabled { opacity: .35; cursor: not-allowed; }

.day-confirm-cancel {
    padding: .85rem 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.day-confirm-cancel button {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    padding: .45rem 1.5rem;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .12s;
    font-family: inherit;
}
.day-confirm-cancel button:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

@media (max-width: 480px) {
    .day-confirm-overlay { align-items: flex-end; padding: 0; }
    .day-confirm-modal { border-radius: 18px 18px 0 0; max-width: 100%; max-height: 90vh; overflow-y: auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   TOUR OVERVIEW + LOGISTICS CARDS (used by CreateBooking + EditBooking)
══════════════════════════════════════════════════════════════════════ */
.ovw-card {
    background: #fff;
    border: 1.5px solid #e9eef5;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.ovw-card-hdr {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    background: linear-gradient(to right, #fafbfc, #fff);
    border-bottom: 1px solid #f1f5f9;
}
.ovw-card-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15,23,42,.12);
}
.ovw-icon-overview  { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.ovw-icon-transport { background: linear-gradient(135deg, #f97316, #c2410c); }

.ovw-card-title {
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.ovw-card-sub {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: .15rem;
}
.ovw-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ovw-section { display: flex; flex-direction: column; gap: .55rem; }
.ovw-section-hdr {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #475569;
    padding-top: .65rem;
    margin-top: .15rem;
    border-top: 1px dashed #e2e8f0;
}
.ovw-section-hdr svg { color: #94a3b8; }
.ovw-row {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}
.ovw-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .65rem;
}

.sc-input-lg {
    font-size: 1rem;
    padding: .55rem .8rem;
    font-weight: 600;
    line-height: 1.3;
}
.sc-field-locked .sc-input {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}
.sc-lbl-tag {
    display: inline-block;
    margin-left: .25rem;
    padding: 1px 5px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 4px;
    font-size: .55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Booking source picker ─────────────────────────────────────────── */
.bk-source-picker {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.bk-source-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .8rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    --bk-color: #0f172a;
    --bk-color-soft: rgba(15,23,42,.08);
}
.bk-source-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.bk-source-active {
    border-color: var(--bk-color);
    color: var(--bk-color);
    background: #fff;
    box-shadow: 0 0 0 3px var(--bk-color-soft), 0 4px 14px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.bk-source-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.bk-source-img {
    height: 18px;
    width: auto;
    max-width: 90px;
    display: block;
    object-fit: contain;
}
.bk-source-btn:has(.bk-source-img):not(:has(.bk-source-name)) {
    padding: .35rem .85rem;
    min-height: 38px;
}
.bk-source-btn:has(.bk-source-img):not(:has(.bk-source-name)) .bk-source-img {
    height: 20px;
}
.bk-source-img-app {
    height: 18px !important;
    width: 18px !important;
    max-width: 18px;
    border-radius: 5px;
}
.bk-source-name { white-space: nowrap; letter-spacing: -.01em; }

@media (max-width: 600px) {
    .ovw-card-hdr  { padding: .7rem .85rem; gap: .55rem; }
    .ovw-card-icon { width: 34px; height: 34px; border-radius: 9px; }
    .ovw-card-title{ font-size: .92rem; }
    .ovw-card-sub  { font-size: .68rem; }
    .ovw-card-body { padding: .85rem .85rem .9rem; gap: .85rem; }
    .ovw-row > .sc-field { flex: 1 1 100% !important; }
    .ovw-grid { grid-template-columns: repeat(6, 1fr); gap: .5rem; }
    .ovw-grid > .sc-field[style*="span 5"],
    .ovw-grid > .sc-field[style*="span 4"] { grid-column: 1 / -1 !important; }
    .ovw-grid > .sc-field[style*="span 3"] { grid-column: span 3 !important; }
    .ovw-grid > .sc-field[style*="span 2"] { grid-column: span 3 !important; }
    .ovw-grid > .sc-field[style*="span 1"] { grid-column: span 3 !important; }
    .bk-source-picker { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .bk-source-btn { flex-shrink: 0; }
    .sc-input-lg { font-size: .9rem; padding: .42rem .65rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE CHROME (.create-bk-page) — used by Create + Edit + PresetEditor
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .create-bk-page { padding-left: .75rem !important; padding-right: .75rem !important; }
    .create-bk-page h2 { font-size: 1.25rem; }
    .create-bk-page .card-body.p-4 { padding: 1rem !important; }
    .create-bk-page .card-body { padding: 1rem !important; }
    .create-bk-page .form-control-lg,
    .create-bk-page .form-select-lg {
        font-size: .95rem;
        padding: .45rem .75rem;
        height: auto;
    }
    .create-bk-page .btn-success.btn-lg {
        width: 100%;
        border-radius: 12px;
    }
    .create-bk-page .d-flex.justify-content-end {
        justify-content: stretch !important;
    }
    .create-bk-page .alert { font-size: .82rem; padding: .5rem .75rem; }
}

/* ══ Pricing & Payment summary (create / edit booking) ══════════════════ */
.bk-money-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .6rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.bk-money-cell {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.bk-money-lbl {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #94a3b8;
}

.bk-money-val {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.bk-money-pos { color: #15803d; }
.bk-money-neg { color: #b91c1c; }
