/* PlayAzul Reservas — Modal CSS */
.paz-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.paz-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.paz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.paz-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.paz-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.paz-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.paz-modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: #1B2B5B;
    margin: 0 0 4px 0;
}

.paz-modal__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0 0 24px 0;
}

/* Empty state */
.paz-modal__empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 22px;
}

/* Grid of available cabanas */
.paz-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.paz-modal__card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
}

.paz-modal__card:hover {
    border-color: #1B2B5B;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.paz-modal__card--selected {
    border-color: #f5c518;
    box-shadow: 0 0 0 2px rgba(245,197,24,0.3);
}

.paz-modal__card-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.paz-modal__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.paz-modal__card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 100px;
    padding: 2px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #1B2B5B;
}

.paz-modal__card-body {
    padding: 16px;
}

.paz-modal__card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: #1B2B5B;
    margin: 0 0 4px 0;
}

.paz-modal__card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    margin: 0 0 12px 0;
    line-height: 18px;
}

.paz-modal__card-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.paz-modal__card-price-per {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
}

.paz-modal__card-price-total {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1B2B5B;
}

.paz-modal__card-btn {
    width: 100%;
    background: #f5c518;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.paz-modal__card-btn:hover {
    background: #e0b400;
}

/* Booking form inside modal */
.paz-modal__booking-form {
    border-top: 1px solid #eee;
    padding-top: 24px;
    margin-top: 8px;
}

.paz-modal__form-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: #1B2B5B;
    margin: 0 0 4px 0;
}

.paz-modal__form-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #f5c518;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.paz-modal__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.paz-modal__field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.paz-modal__field input,
.paz-modal__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: 0.2s;
}

.paz-modal__field input:focus,
.paz-modal__field textarea:focus {
    border-color: #1B2B5B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27,43,91,0.1);
}

.paz-modal__field--full {
    grid-column: 1 / -1;
}

.paz-modal__submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f5c518 0%, #e6a817 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(240,177,0,0.3);
}

.paz-modal__submit-btn:hover {
    background: linear-gradient(135deg, #e6a817 0%, #d49a10 100%);
    box-shadow: 0 6px 16px rgba(240,177,0,0.4);
}

.paz-modal__submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* ═══════ Step indicator ═══════ */
.paz-modal__steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.paz-modal__step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.paz-modal__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #888;
    font-size: 11px;
    font-weight: 700;
}

.paz-modal__step--active .paz-modal__step-num {
    background: #1B2B5B;
    color: #fff;
}

.paz-modal__step--active {
    color: #1B2B5B;
}

.paz-modal__steps-divider {
    width: 24px;
    height: 1px;
    background: #e5e7eb;
}

/* Trust line below CTA */
.paz-modal__cta-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 10px 0 0;
    font-size: 12px;
    color: #555;
}

.paz-modal__cta-trust svg { flex-shrink: 0; }

/* Success */
.paz-modal__success {
    text-align: center;
    padding: 40px 20px;
}

.paz-modal__success-icon {
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.paz-modal__success h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1B2B5B;
    margin: 0 0 12px 0;
}

.paz-modal__success p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 22px;
    margin: 0 0 8px 0;
}

.paz-modal__success-id {
    font-weight: 600;
    color: #1B2B5B !important;
    font-size: 16px !important;
    margin-bottom: 24px !important;
}

/* Availability badge */
.paz-modal__card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(27,43,91,0.85);
    color: #fff;
    border-radius: 100px;
    padding: 3px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Image placeholder */
.paz-modal__card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8dfd4 0%, #d4c8b8 100%);
}

/* Capacity line */
.paz-modal__card-cap {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #999;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Toast notification */
.paz-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1B2B5B;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.paz-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════ Direct Booking Summary ═══════ */
.paz-modal__direct-summary {
    background: #f8f7f4;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
}

.paz-modal__direct-cabin-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #1B2B5B;
    margin-bottom: 8px;
}

.paz-modal__direct-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.paz-modal__direct-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #1B2B5B;
}

.paz-modal__direct-price strong {
    font-weight: 700;
}

/* ═══════ Payment Step ═══════ */
.paz-modal__payment-step {
    text-align: center;
    padding: 20px 0;
}

.paz-modal__payment-header {
    margin-bottom: 8px;
}

.paz-modal__payment-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1B2B5B;
    margin: 0 0 8px 0;
}

.paz-modal__payment-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
    line-height: 22px;
}

.paz-modal__payment-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f5c518, #1B2B5B);
    border-radius: 2px;
    margin: 20px auto;
}

.paz-modal__payment-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: #1B2B5B;
    margin: 0 0 8px 0;
}

.paz-modal__payment-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 20px;
    margin: 0 auto 20px;
    max-width: 400px;
}

.paz-modal__payment-qr {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.paz-modal__payment-qr img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 8px;
    display: block;
}

.paz-modal__payment-upload {
    max-width: 400px;
    margin: 0 auto;
}

.paz-modal__payment-upload-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1B2B5B;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.paz-modal__payment-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 28px 20px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 16px;
    background: #fafaf8;
}

.paz-modal__payment-dropzone:hover,
.paz-modal__payment-dropzone--hover {
    border-color: #1B2B5B;
    background: #f4f1eb;
}

.paz-modal__payment-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.paz-modal__payment-dropzone-inner span {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
}

.paz-modal__payment-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.paz-modal__payment-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    display: block;
}

.paz-modal__payment-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: 0.2s;
    padding: 0;
}

.paz-modal__payment-remove:hover {
    background: #b91c1c;
}

/* WhatsApp confirm button */
.paz-modal__wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    padding: 14px 20px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.paz-modal__wa-btn:hover {
    background: #1ebe5a;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    color: #fff;
    text-decoration: none;
}

.paz-modal__wa-btn svg {
    flex-shrink: 0;
}

/* Anticipo info box */
.paz-modal__anticipo-box {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 16px auto 0;
    max-width: 400px;
}

.paz-modal__anticipo-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.paz-modal__anticipo-amount {
    font-size: 32px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
    margin-bottom: 6px;
}

.paz-modal__anticipo-detail {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .paz-modal__content { padding: 24px; }
    .paz-modal__grid { grid-template-columns: 1fr; }
    .paz-modal__form-grid { grid-template-columns: 1fr; }
    .paz-modal__title { font-size: 22px; }
    .paz-modal__payment-qr img { max-width: 180px; max-height: 180px; }
    .paz-modal__payment-title { font-size: 18px; }
    .paz-modal__anticipo-amount { font-size: 26px; }
    .paz-modal__steps { font-size: 11px; gap: 6px; }
    .paz-modal__steps-divider { width: 16px; }
}

/* ═══════ WhatsApp FAB collision fix (mobile) ═══════ */
/* Push FAB above any sticky bottom CTA bars on small screens */
@media (max-width: 768px) {
    #wa,
    #wa > div,
    body > .nta-wa-wrapper,
    .nta-wa-float,
    .nta-whatsapp-float {
        bottom: 88px !important;
    }
}

/* Hide the WhatsApp FAB while our reservation modal is open */
body.paz-modal-open #wa,
body.paz-modal-open .nta-wa-wrapper,
body.paz-modal-open .nta-wa-float,
body.paz-modal-open .nta-whatsapp-float {
    display: none !important;
}
