/* /Pages/Itinerary/ItineraryEditor.razor.rz.scp.css */
/* Itinerary editor look. Scoped to .itn-editor; ::deep reaches the step components rendered inside. */

.itn-editor[b-pyfzq2336c] { --itn: var(--primary-rgb, 99, 91, 255); }

/* ── Summary banner ── */
.itn-hero[b-pyfzq2336c] {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding: 1.25rem 1.5rem; margin-bottom: 1rem; border-radius: 14px; color: #fff;
    background: linear-gradient(120deg, rgb(var(--itn)) 0%, rgba(var(--itn), .72) 100%);
    box-shadow: 0 6px 18px rgba(var(--itn), .25);
}
.itn-hero-title[b-pyfzq2336c] { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.itn-hero-chips[b-pyfzq2336c] { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.itn-hero-chips span[b-pyfzq2336c] { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; background: rgba(255,255,255,.2); }
.itn-hero-total[b-pyfzq2336c] { text-align: right; }
.itn-hero-total .lbl[b-pyfzq2336c] { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.itn-hero-total .val[b-pyfzq2336c] { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }

/* ── Stepper ── */
.itn-stepper[b-pyfzq2336c] { display: flex; gap: .25rem; overflow-x: auto; padding: .25rem .1rem .75rem; margin-bottom: .25rem; scrollbar-width: thin; }
.itn-step[b-pyfzq2336c] {
    position: relative; flex: 1 0 auto; display: flex; align-items: center; gap: .5rem; white-space: nowrap;
    padding: .55rem .9rem; border: 1px solid var(--default-border, rgba(0,0,0,.1)); border-radius: 10px;
    background: var(--custom-white, #fff); color: inherit; font-size: .8rem; font-weight: 500; transition: all .15s;
}
.itn-step .dot[b-pyfzq2336c] {
    width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: .75rem; font-weight: 700; background: rgba(127,127,127,.15);
}
.itn-step:hover[b-pyfzq2336c] { border-color: rgba(var(--itn), .5); }
.itn-step.done .dot[b-pyfzq2336c] { background: rgba(34,197,94,.18); color: #16a34a; }
.itn-step.active[b-pyfzq2336c] { border-color: rgb(var(--itn)); background: rgba(var(--itn), .1); box-shadow: 0 0 0 3px rgba(var(--itn), .12); }
.itn-step.active .dot[b-pyfzq2336c] { background: rgb(var(--itn)); color: #fff; }

/* ── Step panel + live summary side by side ── */
.itn-layout[b-pyfzq2336c] { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1rem; align-items: start; }
.itn-summary[b-pyfzq2336c] { position: sticky; top: 70px; margin: 0; border-radius: 14px; border: 1px solid var(--default-border, rgba(0,0,0,.08)); }
.itn-sum-row[b-pyfzq2336c] { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px dashed var(--default-border, rgba(0,0,0,.1)); font-size: .85rem; }
.itn-sum-row:last-of-type[b-pyfzq2336c] { border-bottom: 0; }
@media (max-width: 991.98px) { .itn-layout[b-pyfzq2336c] { grid-template-columns: 1fr; } .itn-summary[b-pyfzq2336c] { position: static; } }

/* ── Panel + content ── */
.itn-panel[b-pyfzq2336c] { border-radius: 14px; border: 1px solid var(--default-border, rgba(0,0,0,.08)); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.itn-panel > .card-footer[b-pyfzq2336c] {
    position: sticky; bottom: 0; z-index: 5; border-radius: 0 0 14px 14px;
    /* styles.css forces .custom-card .card-footer transparent !important — the sticky bar must beat it or fields show through */
    background-color: inherit !important; border-top: 1px solid var(--default-border, rgba(0,0,0,.08));
}

/* section titles inside a step get an accent bar */
.itn-panel[b-pyfzq2336c]  .fw-medium.mb-2 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 600 !important; }
.itn-panel[b-pyfzq2336c]  .fw-medium.mb-2::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: rgb(var(--itn)); }

/* nested cards (hotels, packages, days) read as soft tiles */
.itn-panel[b-pyfzq2336c]  .card.custom-card { border-radius: 12px; border: 1px solid var(--default-border, rgba(0,0,0,.08)); box-shadow: none; background: rgba(127,127,127,.03); }
.itn-panel[b-pyfzq2336c]  .card.custom-card.border-warning { border-color: #f59e0b; background: rgba(245,158,11,.06); }

/* quieter labels, rounder inputs */
.itn-panel[b-pyfzq2336c]  .form-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: .3rem; }
.itn-panel[b-pyfzq2336c]  .form-control, .itn-panel[b-pyfzq2336c]  .form-select { border-radius: 8px; }
.itn-panel[b-pyfzq2336c]  .form-control:focus, .itn-panel[b-pyfzq2336c]  .form-select:focus { border-color: rgb(var(--itn)); box-shadow: 0 0 0 3px rgba(var(--itn), .15); }

@media (max-width: 575.98px) {
    .itn-hero[b-pyfzq2336c] { padding: 1rem; }
    .itn-hero-total[b-pyfzq2336c] { text-align: left; }
    .itn-step .lbl[b-pyfzq2336c] { display: none; }
    .itn-step.active .lbl[b-pyfzq2336c] { display: inline; }
}
