/* ========================================
   Booking page
   Depends on the --hp-* tokens from home.css
   ======================================== */

/* Hero */
.bk-hero {
    position: relative;
    padding: 44px 0 56px;
    background: var(--hp-navy);
    color: #fff;
}

.bk-hero > .container {
    z-index: 3;
}

.bk-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.bk-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.4);
}

.bk-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.bk-breadcrumb a:hover {
    color: var(--hp-orange);
}

.bk-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Steps */
.bk-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.bk-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
}

.bk-steps li + li::before {
    content: "";
    width: clamp(24px, 6vw, 64px);
    height: 2px;
    margin: 0 14px 0 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.bk-steps li.is-done + li::before {
    background: var(--hp-orange);
}

.bk-step-dot {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.bk-steps li.is-done {
    color: rgba(255, 255, 255, 0.85);
}

.bk-steps li.is-done .bk-step-dot {
    border-color: var(--hp-orange);
    background: var(--hp-orange);
    color: var(--hp-navy);
}

.bk-steps li.is-active {
    color: #fff;
}

.bk-steps li.is-active .bk-step-dot {
    border-color: var(--hp-orange);
    color: var(--hp-orange);
    box-shadow: 0 0 0 5px rgba(255, 166, 51, 0.18);
}

/* Page layout */
.bk-page {
    padding: 40px 0 80px;
    background: var(--hp-soft);
}

.bk-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
.bk-card {
    padding: 26px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
    box-shadow: var(--hp-shadow);
}

.bk-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bk-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hp-orange-soft);
    color: var(--hp-orange-dark);
    font-size: 1.05rem;
}

.bk-card-title {
    margin: 0;
    color: var(--hp-ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Extras */
.bk-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-extra {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-sm);
    transition: border-color 0.2s var(--hp-ease), background-color 0.2s var(--hp-ease);
}

.bk-extra:hover {
    border-color: #d5dbe7;
}

.bk-extra.is-selected {
    border-color: var(--hp-orange);
    background: #fffaf2;
}

.bk-extra-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--hp-soft);
    color: var(--hp-navy-2);
    font-size: 1.05rem;
    transition: background-color 0.2s var(--hp-ease), color 0.2s var(--hp-ease);
}

.bk-extra.is-selected .bk-extra-icon {
    background: var(--hp-orange);
    color: #fff;
}

.bk-extra-info {
    flex: 1 1 auto;
    min-width: 0;
}

.bk-extra-title {
    margin: 0 0 2px;
    color: var(--hp-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.bk-extra-price {
    color: var(--hp-muted);
    font-size: 0.85rem;
}

.bk-extra-price strong {
    color: var(--hp-orange-dark);
    font-weight: 700;
}

/* Switch */
.bk-switch {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.bk-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-switch-track {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d5dbe7;
    transition: background-color 0.2s var(--hp-ease);
}

.bk-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.25s var(--hp-ease);
}

.bk-switch input:checked + .bk-switch-track {
    background: var(--hp-orange);
}

.bk-switch input:checked + .bk-switch-track::after {
    transform: translateX(22px);
}

.bk-switch input:focus-visible + .bk-switch-track {
    outline: 3px solid rgba(255, 166, 51, 0.4);
    outline-offset: 2px;
}

/* Stepper */
.bk-stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: #fff;
}

.bk-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hp-soft);
    color: var(--hp-ink);
    font-size: 0.75rem;
    transition: background-color 0.2s var(--hp-ease), color 0.2s var(--hp-ease);
}

.bk-stepper-btn:hover:not(:disabled) {
    background: var(--hp-orange);
    color: #fff;
}

.bk-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bk-stepper-value {
    min-width: 32px;
    color: var(--hp-ink);
    font-weight: 700;
    text-align: center;
}

/* Form */
.bk-label {
    display: block;
    margin-bottom: 6px;
    color: var(--hp-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.bk-required {
    color: #e11d48;
}

.bk-input {
    position: relative;
}

.bk-input > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--hp-muted);
    font-size: 0.95rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.bk-page .form-control {
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-sm);
    background: #fbfcfe;
    color: var(--hp-ink);
    font-size: 0.95rem;
    box-shadow: none;
    transition: border-color 0.2s var(--hp-ease), box-shadow 0.2s var(--hp-ease), background-color 0.2s var(--hp-ease);
}

.bk-input .form-control {
    padding-left: 44px;
}

.bk-page .form-control::placeholder {
    color: #9aa5b8;
}

.bk-page .form-control:focus {
    border-color: var(--hp-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 166, 51, 0.15);
}

.bk-page .form-control.is-invalid {
    border-color: #e11d48;
    background-image: none;
}

.bk-page .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.bk-textarea {
    resize: vertical;
}

.bk-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: #e11d48;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Terms checkbox */
.bk-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-soft);
    color: var(--hp-text);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.bk-check.is-invalid {
    border-color: #e11d48;
    background: #fff5f7;
}

.bk-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-check-box {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #c4cddd;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    font-size: 0.7rem;
    transition: all 0.2s var(--hp-ease);
}

.bk-check input:checked + .bk-check-box {
    border-color: var(--hp-orange);
    background: var(--hp-orange);
    color: #fff;
}

.bk-check input:focus-visible + .bk-check-box {
    outline: 3px solid rgba(255, 166, 51, 0.4);
    outline-offset: 2px;
}

.bk-check .terms-text a {
    color: var(--hp-orange-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Note */
.bk-alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #ffe2b8;
    border-radius: var(--hp-radius);
    background: var(--hp-orange-soft);
    color: #6b4a1a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bk-alert-icon {
    flex: 0 0 auto;
    color: var(--hp-orange-dark);
    font-size: 1.2rem;
}

.bk-alert-title {
    display: block;
    margin-bottom: 4px;
    color: var(--hp-ink);
}

.bk-alert-body p:last-child {
    margin-bottom: 0;
}

/* Submit */
.bk-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-radius: var(--hp-radius);
    background: var(--hp-navy);
    box-shadow: var(--hp-shadow-lg);
}

.bk-submit-total {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.bk-submit-total strong {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.bk-submit-btn {
    min-width: 220px;
    margin-left: auto;
}

.bk-submit-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.bk-submit-hint {
    display: flex;
    flex: 1 0 100%;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.bk-submit-hint i {
    color: #4ade80;
}

/* Summary */
.bk-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 992px) and (min-height: 940px) {
    .bk-summary {
        position: sticky;
        top: 100px;
    }
}

.bk-summary-toggle {
    display: none;
}

.bk-summary-title {
    margin-bottom: 18px;
}

.bk-car {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bk-car-media {
    position: relative;
    display: block;
    flex: 0 0 120px;
    overflow: hidden;
    border-radius: var(--hp-radius-sm);
    background: var(--hp-soft);
    aspect-ratio: 4 / 3;
}

.bk-car-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--hp-ease);
}

.bk-car-media:hover img {
    transform: scale(1.06);
}

.bk-car-zoom {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(11, 23, 54, 0.7);
    color: #fff;
    font-size: 0.7rem;
}

.bk-car-type {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--hp-orange-soft);
    color: var(--hp-orange-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bk-car-title {
    margin: 0;
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.bk-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.bk-specs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--hp-soft);
    color: var(--hp-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.bk-specs i {
    color: var(--hp-orange-dark);
    font-size: 0.75rem;
}

.bk-rates {
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--hp-line);
}

.bk-rate {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 0.9rem;
}

.bk-rate dt {
    color: var(--hp-muted);
    font-weight: 500;
}

.bk-rate dd {
    margin: 0;
    color: var(--hp-ink);
    font-weight: 700;
}

.bk-rate.is-subtotal {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--hp-line);
}

.bk-rate.is-subtotal dt {
    color: var(--hp-ink);
    font-weight: 700;
}

.bk-rate.is-subtotal dd {
    font-size: 1.05rem;
}

/* Trip */
.bk-trip {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--hp-line);
}

.bk-trip-title {
    margin: 0 0 14px;
    color: var(--hp-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.bk-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-timeline li {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.bk-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 2px;
    left: 15px;
    border-left: 2px dashed #d5dbe7;
}

.bk-timeline-dot {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: var(--hp-orange);
    font-size: 0.8rem;
}

.bk-timeline li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bk-timeline-label {
    color: var(--hp-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bk-timeline strong {
    color: var(--hp-ink);
    font-size: 0.95rem;
}

.bk-timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-text);
    font-size: 0.85rem;
}

.bk-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--hp-radius-sm);
    background: var(--hp-soft);
    color: var(--hp-text);
    font-size: 0.875rem;
}

.bk-duration strong {
    color: var(--hp-ink);
}

/* Total card */
.bk-total-card {
    padding: 20px 22px;
    border-radius: var(--hp-radius);
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-2) 100%);
    box-shadow: var(--hp-shadow-lg);
    color: #fff;
}

.bk-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bk-total-row span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
}

.bk-total-row strong {
    color: var(--hp-orange);
    font-size: 1.6rem;
    font-weight: 800;
}

.bk-total-row.is-card {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bk-total-row.is-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.bk-total-row.is-card strong {
    color: #fff;
    font-size: 1.05rem;
}

/* Empty state */
.booking-empty-section {
    padding: 64px 0 88px;
    background: var(--hp-soft);
}

.booking-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 32px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
    box-shadow: var(--hp-shadow);
    text-align: center;
}

.booking-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--hp-orange-soft);
    color: var(--hp-orange-dark);
    font-size: 2rem;
}

.booking-empty-title {
    margin: 0 0 12px;
    color: var(--hp-ink);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    line-height: 1.25;
}

.booking-empty-text {
    margin: 0 0 28px;
    color: var(--hp-text);
    font-size: 1rem;
    line-height: 1.65;
}

.booking-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .bk-page {
        padding: 24px 0 56px;
    }

    .bk-summary {
        position: static;
    }

    .bk-card.bk-summary-card {
        padding: 0;
    }

    .bk-summary-title {
        display: none;
    }

    .bk-summary-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 18px 20px;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .bk-summary-toggle .bk-card-title {
        flex: 1 1 auto;
        font-size: 1.05rem;
    }

    .bk-summary-toggle-total {
        color: var(--hp-orange-dark);
        font-weight: 800;
    }

    .bk-summary-toggle > i {
        color: var(--hp-muted);
        transition: transform 0.25s var(--hp-ease);
    }

    .bk-summary-toggle[aria-expanded="true"] > i {
        transform: rotate(180deg);
    }

    .bk-summary-body {
        display: none;
        padding: 0 20px 20px;
    }

    .bk-summary-body.is-open {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .bk-hero {
        padding: 32px 0 40px;
    }

    .bk-steps {
        flex-wrap: nowrap;
        margin-top: 22px;
    }

    .bk-steps li + li::before {
        width: 18px;
        margin: 0 8px 0 2px;
    }

    .bk-steps li:not(.is-active) .bk-step-label {
        display: none;
    }

    .bk-card {
        padding: 20px 16px;
    }

    .bk-extra {
        flex-wrap: wrap;
        padding: 12px;
    }

    .bk-extra-info {
        flex-basis: calc(100% - 58px);
    }

    .bk-extra .bk-switch,
    .bk-extra .bk-stepper {
        margin-left: 58px;
    }

    .bk-submit {
        padding: 20px 16px;
    }

    .bk-submit-btn {
        width: 100%;
        margin-left: 0;
    }

    .booking-empty {
        padding: 36px 20px;
    }

    .booking-empty-actions .hp-btn {
        width: 100%;
    }
}
