/* ============================================================
   Booking Wizard v2 — Mobile-first modern booking UI
   ============================================================ */

.booking-v2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.booking-v2 *,
.booking-v2 *::before,
.booking-v2 *::after {
    box-sizing: border-box;
}

/* ---- Step Progress ---- */
.booking-v2 .step-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 24px 16px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-v2 .step-progress .step {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.booking-v2 .step-progress .step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    margin-right: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.booking-v2 .step-progress .step.active .num {
    background: #54b1ba;
    color: #fff;
}

.booking-v2 .step-progress .step.done .num {
    background: #3a8a92;
    color: #fff;
}

.booking-v2 .step-progress .step.active {
    color: #333;
}

.booking-v2 .step-progress .step.done {
    color: #3a8a92;
}

.booking-v2 .step-progress .step-divider {
    width: 24px;
    height: 1px;
    background: #ddd;
    margin: 0 8px;
    flex-shrink: 0;
}

.booking-v2 .step-progress .step.done + .step-divider {
    background: #3a8a92;
}

/* ---- Step Content ---- */
.booking-v2 .step-content {
    padding: 24px 20px;
}

.booking-v2 .step-content .step-panel {
    display: none;
}

.booking-v2 .step-content .step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-v2 .step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.booking-v2 .step-content p.sub {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
}

/* ---- Flatpickr overwrite ---- */
.booking-v2 .flatpickr-wrap {
    margin: 0 auto 16px;
    max-width: 400px;
}

.booking-v2 .flatpickr-wrap .flatpickr-input {
    display: none;
}

.booking-v2 .flatpickr-calendar {
    box-shadow: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    width: 100% !important;
    max-width: 400px;
}

.booking-v2 .flatpickr-calendar.static {
    position: static !important;
    top: auto !important;
    left: auto !important;
}

.booking-v2 .flatpickr-months,
.booking-v2 .flatpickr-innerContainer {
    width: 100%;
}

.booking-v2 .flatpickr-day.selected,
.booking-v2 .flatpickr-day.startRange,
.booking-v2 .flatpickr-day.endRange,
.booking-v2 .flatpickr-day.inRange {
    background: #54b1ba;
    border-color: #54b1ba;
}

.booking-v2 .flatpickr-day.selected:hover,
.booking-v2 .flatpickr-day.startRange:hover,
.booking-v2 .flatpickr-day.endRange:hover {
    background: #3a8a92;
    border-color: #3a8a92;
}

.booking-v2 .flatpickr-day.inRange {
    background: #d4f0f2;
    border-color: #d4f0f2;
    box-shadow: none;
}

.booking-v2 .flatpickr-day.disabled {
    background: #fff0f0;
    color: #d0a0a0 !important;
    cursor: not-allowed;
}

.booking-v2 .flatpickr-day.today {
    border-color: #54b1ba;
}

.booking-v2 .flatpickr-day.today:hover {
    background: #54b1ba;
    color: #fff;
}

.booking-v2 .flatpickr-day.today.selected,
.booking-v2 .flatpickr-day.today.startRange,
.booking-v2 .flatpickr-day.today.endRange {
    background: #54b1ba;
    color: #fff;
}

.booking-v2 .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
}

/* ---- Selected Range Summary ---- */
.booking-v2 .range-summary {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 0 0 20px;
    font-size: 14px;
    color: #555;
}

.booking-v2 .range-summary .range-box {
    background: #f5f8fa;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.booking-v2 .range-summary .range-box .label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.booking-v2 .range-summary .range-box .value {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-top: 2px;
}

.booking-v2 .range-summary .range-box .nights {
    font-size: 12px;
    color: #54b1ba;
    font-weight: 600;
    margin-top: 2px;
}

.booking-v2 .range-error {
    text-align: center;
    color: #e74c3c;
    font-size: 13px;
    margin: 0 0 12px;
    display: none;
}

/* ---- Guest Counters ---- */
.booking-v2 .guest-counters {
    max-width: 360px;
    margin: 0 auto 20px;
}

.booking-v2 .guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.booking-v2 .guest-row:last-child {
    border-bottom: none;
}

.booking-v2 .guest-row .guest-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.booking-v2 .guest-row .guest-label small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.booking-v2 .guest-row .counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-v2 .guest-row .counter button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #54b1ba;
    background: #fff;
    color: #54b1ba;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.booking-v2 .guest-row .counter button:hover {
    background: #54b1ba;
    color: #fff;
}

.booking-v2 .guest-row .counter button:active {
    transform: scale(0.92);
}

.booking-v2 .guest-row .counter button:disabled {
    border-color: #ddd;
    color: #ddd;
    cursor: not-allowed;
    background: #fafafa;
}

.booking-v2 .guest-row .counter button:disabled:hover {
    background: #fafafa;
    color: #ddd;
}

.booking-v2 .guest-row .counter .count {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    min-width: 32px;
    text-align: center;
}

/* ---- Guest Error ---- */
.booking-v2 .guest-error {
    text-align: center;
    color: #e74c3c;
    font-size: 13px;
    margin: 0 0 12px;
    display: none;
}

/* ---- Price Display ---- */
.booking-v2 .price-box {
    background: #f5f8fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 0 20px;
}

.booking-v2 .price-box .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.booking-v2 .price-box .price-row.total {
    border-top: 2px solid #ddd;
    margin-top: 6px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #222;
}

.booking-v2 .price-box .price-row.total .amount {
    color: #54b1ba;
    font-size: 22px;
}

.booking-v2 .price-box .price-row .amount {
    font-weight: 700;
}

/* ---- Form Fields ---- */
.booking-v2 .form-fields {
    max-width: 400px;
    margin: 0 auto;
}

.booking-v2 .form-group {
    margin-bottom: 16px;
}

.booking-v2 .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.booking-v2 .form-group input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.booking-v2 .form-group input:focus {
    outline: none;
    border-color: #54b1ba;
    box-shadow: 0 0 0 3px rgba(84,177,186,0.15);
}

.booking-v2 .form-group input.error {
    border-color: #e74c3c;
}

.booking-v2 .form-group .field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* ---- Buttons ---- */
.booking-v2 .btn-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.booking-v2 .btn-row.center {
    justify-content: center;
}

.booking-v2 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    min-height: 48px;
}

.booking-v2 .btn:active {
    transform: scale(0.97);
}

.booking-v2 .btn-primary {
    background: #54b1ba;
    color: #fff;
    flex: 1;
}

.booking-v2 .btn-primary:hover {
    background: #3a8a92;
}

.booking-v2 .btn-primary:disabled {
    background: #b0d8dd;
    cursor: not-allowed;
}

.booking-v2 .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.booking-v2 .btn-secondary:hover {
    background: #e0e0e0;
}

.booking-v2 .btn-full {
    width: 100%;
}

/* ---- Summary (Step 4) ---- */
.booking-v2 .summary-details {
    max-width: 400px;
    margin: 0 auto 20px;
}

.booking-v2 .summary-details .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.booking-v2 .summary-details .summary-row:last-child {
    border-bottom: none;
}

.booking-v2 .summary-details .summary-row .s-label {
    color: #888;
}

.booking-v2 .summary-details .summary-row .s-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* ---- Success Screen ---- */
.booking-v2 .success-screen {
    text-align: center;
    padding: 40px 20px;
}

.booking-v2 .success-screen .check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.booking-v2 .success-screen h3 {
    color: #27ae60;
}

.booking-v2 .success-screen p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .booking-v2 {
        border-radius: 0;
        box-shadow: none;
        margin: 0 -16px;
    }

    .booking-v2 .step-progress .step .label-text {
        display: none;
    }

    .booking-v2 .step-content {
        padding: 20px 16px;
    }

    .booking-v2 .range-summary {
        flex-direction: column;
        align-items: center;
    }

    .booking-v2 .range-summary .range-box {
        max-width: 100%;
        width: 100%;
    }

    .booking-v2 .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .booking-v2 .step-progress .step .num {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 0;
    }
}

@media (min-width: 577px) {
    .booking-v2 .step-progress .step .label-text {
        display: inline;
    }
}

/* ---- Apartman info header ---- */
.booking-v2 .apartment-header {
    text-align: center;
    padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.booking-v2 .apartment-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.booking-v2 .apartment-header .price-from {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ---- Booking Tabs ---- */
.booking-tabs {
    border-bottom: 2px solid #54b1ba;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0;
}

.booking-tabs .nav-item {
    margin-bottom: -2px;
}

.booking-tabs .nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    transition: all 0.2s;
}

.booking-tabs .nav-link:hover {
    color: #54b1ba;
}

.booking-tabs .nav-link.active {
    color: #54b1ba;
    background: #fff;
    border-color: #54b1ba;
}

.booking-tabs .nav-link:focus {
    outline: none;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .tab-pane.active {
    display: block;
}

/* ---- Availability Badge ---- */
.availability-badge {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.availability-badge.show {
    display: inline-block;
}

.availability-badge.free {
    background: #d4edda;
    color: #155724;
}

.availability-badge.soon {
    background: #fff3cd;
    color: #856404;
}

.availability-badge.full {
    background: #f8d7da;
    color: #721c24;
}

.room-wrapper {
    position: relative;
}

.our-rooms-wrapper {
    position: relative;
}

/* ---- Homepage Widget ---- */
.widget-error {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.widget-error.show {
    display: block;
    animation: widgetErrorIn 0.3s ease;
}

.widget-error .error-box {
    display: inline-block;
    background: #fce4e4;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 12px 20px;
    color: #c0392b;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.12);
}

.widget-error .error-box::before {
    content: '\26A0\FE0F\00A0';
}

@keyframes widgetErrorIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn-form1-submit:disabled {
    background: #b0d8dd;
    cursor: not-allowed;
}

/* ---- Search Results Cards ---- */
.search-result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-result-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.result-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 20px;
}

.result-card-left {
    flex: 1;
    min-width: 0;
}

.result-card-left h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.result-card-left .result-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 6px;
    line-height: 1.5;
}

.result-card-left .result-meta {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.result-card-right {
    text-align: center;
    flex-shrink: 0;
    min-width: 120px;
}

.result-card-right .result-price {
    font-size: 22px;
    font-weight: 800;
    color: #54b1ba;
    line-height: 1.1;
}

.result-card-right .result-price-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.result-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    background: #54b1ba;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.result-btn:hover {
    background: #3a8a92;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 576px) {
    .result-card-body {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .result-card-right {
        min-width: auto;
        width: 100%;
    }

    .result-btn {
        width: 100%;
    }
}
