/* Frontend CSS styles */
.booking-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dates-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.date-field, 
.apartment-field {
    flex: 1;
}

.date-field label, 
.apartment-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.date-field input[type="date"], 
.apartment-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#openPopup {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 41px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#openPopup:hover {
    background-color: #005a87;
}

.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-calendar {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

#calendar {
    margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dates-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #openPopup {
        width: 100%;
    }
    
    #calendar-popup {
        width: 95%;
        padding: 15px;
    }
}

#calendar-popup {
    touch-action: manipulation;
}

#calendar {
    touch-action: manipulation;
}