/* Resort Check Availability Widget Styles */
.dvc-resort-check-availability-widget {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Date Picker Styles */
.dvc-resort-date-picker {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dvc-date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.dvc-date-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dvc-date-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.dvc-date-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.dvc-date-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Search Button */
.dvc-resort-search-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    height: fit-content;
}

.dvc-resort-search-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.dvc-resort-search-btn:active {
    transform: translateY(0);
}

.dvc-resort-search-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Indicator */
.dvc-resort-loading {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.dvc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dvc-loading-text {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Results Header */
.dvc-results-header {
    margin-bottom: 24px;
    text-align: center;
}

.dvc-results-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.dvc-results-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

/* Room Results Container - matching check availability structure */
.room-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resort-roomtype-container {
    margin-bottom: 0;
    display:flex;
    flex-direction: column;
}

/* Room Container - matching check availability structure */
.room-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.room-container:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.room-container:hover {
    background-color: #f8f9fa;
}

/* Room Info Container */
.room-info-container {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
}

.room-thumbnail {
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.room-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.room-name .room-info {
    color: #2c3e50;
}

.sleep-info {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sleep-info a {
    color: #007cba;
    text-decoration: none;
}

.sleep-info a:hover {
    color: #005a87;
}

/* Pricing Section */
.pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.price-text {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

/* Booking Buttons */
.booking-btn {
    display: flex;
}

.book-now-btn {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.book-now-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.sold-out-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    min-width: 80px;
}

.sold-out-btn:hover {
    background: #5a6268;
}

/* Error Messages */
.dvc-resort-error {
    background: #fadbd8;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    color: #721c24;
    display: none;
}

.dvc-error-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.dvc-error-message {
    margin: 0;
    font-size: 14px;
}

/* No Results */
.dvc-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.dvc-no-results h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 20px;
}

.dvc-no-results p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dvc-date-inputs {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dvc-resort-search-btn {
        width: 100%;
        justify-self: stretch;
    }
    
    .room-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .room-info-container {
        justify-content: flex-start;
    }
    
    .pricing {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .dvc-resort-date-picker {
        padding: 16px;
    }
    
    .room-info-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .room-thumbnail {
        align-self: center;
    }
}