/* ========================================
   ELEKTRA WEB IFRAME BOOKING WIDGET
   ======================================== */

.elektra-booking-widget {
    width: 100% !important;
    min-height: 900px !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    position: relative;
}

#elektra-booking-iframe {
    width: 100% !important;
    height: 900px !important;
    min-height: 900px !important;
    border: none !important;
    display: block !important;
    background: #fff;
}

/* Loading state for iframe */
.elektra-booking-widget::before {
    content: 'Loading booking system...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    z-index: 0;
}

.elektra-booking-widget iframe {
    position: relative;
    z-index: 1;
}

/* Responsive iframe */
@media (max-width: 768px) {
    .elektra-booking-widget,
    #elektra-booking-iframe {
        min-height: 1000px !important;
        height: 1000px !important;
    }
}

/* ========================================
   BOOKING RESULTS STYLES
   ======================================== */

.booking-results {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.booking-results h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.available-rooms {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.room-option {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.room-option__info {
    flex: 1;
}

.room-option__info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.room-option__info p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.room-option__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.room-option__features li {
    color: #555;
    font-size: 14px;
}

.room-option__booking {
    text-align: right;
    min-width: 200px;
}

.room-option__price {
    margin-bottom: 15px;
}

.price-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.price-amount {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2c5aa0;
    line-height: 1.2;
}

.price-per-night {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.book-room-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.book-room-btn:hover {
    background: #1e3d70;
}

.book-room-btn.loading {
    background: #999;
    cursor: not-allowed;
}

/* ========================================
   BOOKING MESSAGES
   ======================================== */

.booking-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
}

.booking-message--error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.booking-message--info {
    background: #e8f4fd;
    color: #0066cc;
    border-left: 4px solid #0066cc;
}

.booking-message--success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

/* ========================================
   BOOKING FORM MODAL
   ======================================== */

.booking-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-form-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.booking-form-modal__content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.booking-form-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.booking-form-modal__close:hover {
    color: #333;
}

.booking-form-modal h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

body.modal-open {
    overflow: hidden;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
}

.form-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 25px 0;
}

.form-summary p {
    margin: 8px 0;
    color: #555;
    font-size: 15px;
}

.form-summary .total-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
    color: #2c5aa0;
}

.submit-reservation-btn {
    width: 100%;
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-reservation-btn:hover {
    background: #1e3d70;
}

.submit-reservation-btn.loading {
    background: #999;
    cursor: not-allowed;
}

/* ========================================
   RESERVATION SUCCESS
   ======================================== */

.reservation-success {
    text-align: center;
    padding: 20px;
}

.reservation-success__icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 25px;
}

.reservation-success h3 {
    color: #333;
    margin-bottom: 20px;
}

.reservation-success p {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.reservation-success strong {
    color: #2c5aa0;
    font-size: 18px;
}

.reservation-success__contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.reservation-success__contact p {
    margin: 8px 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .room-option {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .room-option__booking {
        text-align: left;
        min-width: auto;
    }
    
    .booking-form-modal__content {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 28px;
    }
}
